mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-04-17 21:15:50 +00:00
24 lines
366 B
Go
24 lines
366 B
Go
|
|
package extension
|
||
|
|
|
||
|
|
import (
|
||
|
|
"context"
|
||
|
|
|
||
|
|
"github.com/xtls/xray-core/features"
|
||
|
|
"google.golang.org/protobuf/proto"
|
||
|
|
)
|
||
|
|
|
||
|
|
type Observatory interface {
|
||
|
|
features.Feature
|
||
|
|
|
||
|
|
GetObservation(ctx context.Context) (proto.Message, error)
|
||
|
|
}
|
||
|
|
|
||
|
|
type BurstObservatory interface {
|
||
|
|
Observatory
|
||
|
|
Check(tag []string)
|
||
|
|
}
|
||
|
|
|
||
|
|
func ObservatoryType() interface{} {
|
||
|
|
return (*Observatory)(nil)
|
||
|
|
}
|