1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-12-26 20:15:26 -05:00

structure for observatory

This commit is contained in:
Shelikhoo
2021-03-06 13:33:20 +00:00
parent 42451a851f
commit 6f913b31e2
7 changed files with 481 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
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)
}