1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-07-01 11:35:23 +00:00
v2fly/features/extension/observatory.go

20 lines
301 B
Go
Raw Normal View History

2021-03-06 13:33:20 +00:00
package extension
import (
"context"
2021-04-08 19:55:25 +00:00
2021-03-06 13:33:20 +00:00
"github.com/golang/protobuf/proto"
2021-04-08 19:55:25 +00:00
2021-03-06 13:33:20 +00:00
"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)
}