1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-11-08 03:07:47 -05:00
v2fly/features/extension/observatory.go

19 lines
300 B
Go
Raw Normal View History

2021-03-06 08:33:20 -05:00
package extension
import (
"context"
2021-04-08 15:55:25 -04:00
2021-03-06 08:33:20 -05:00
"github.com/golang/protobuf/proto"
2021-04-08 15:55:25 -04:00
"github.com/v2fly/v2ray-core/v5/features"
2021-03-06 08:33:20 -05:00
)
type Observatory interface {
features.Feature
GetObservation(ctx context.Context) (proto.Message, error)
}
func ObservatoryType() interface{} {
return (*Observatory)(nil)
}