mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-11-23 12:02:58 -05:00
18 lines
299 B
Go
18 lines
299 B
Go
|
|
package extension
|
||
|
|
|
||
|
|
import (
|
||
|
|
"context"
|
||
|
|
"github.com/golang/protobuf/proto"
|
||
|
|
"github.com/v2fly/v2ray-core/v4/features"
|
||
|
|
)
|
||
|
|
|
||
|
|
type Observatory interface {
|
||
|
|
features.Feature
|
||
|
|
|
||
|
|
GetObservation(ctx context.Context) (proto.Message, error)
|
||
|
|
}
|
||
|
|
|
||
|
|
func ObservatoryType() interface{} {
|
||
|
|
return (*Observatory)(nil)
|
||
|
|
}
|