mirror of
https://github.com/XTLS/Xray-core.git
synced 2024-11-22 05:06:07 +03:00
5c366db847
Co-authored-by: Shelikhoo <xiaokangwang@outlook.com>
20 lines
296 B
Go
20 lines
296 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)
|
|
}
|