mirror of
https://github.com/XTLS/Xray-core.git
synced 2024-12-12 06:46:04 +03:00
19 lines
295 B
Go
19 lines
295 B
Go
|
package extension
|
||
|
|
||
|
import (
|
||
|
"context"
|
||
|
|
||
|
"github.com/golang/protobuf/proto"
|
||
|
"github.com/xtls/xray-core/features"
|
||
|
)
|
||
|
|
||
|
type Observatory interface {
|
||
|
features.Feature
|
||
|
|
||
|
GetObservation(ctx context.Context) (proto.Message, error)
|
||
|
}
|
||
|
|
||
|
func ObservatoryType() interface{} {
|
||
|
return (*Observatory)(nil)
|
||
|
}
|