github.com/v2fly/v2ray-core/v4@v4.45.2/features/extension/observatory.go (about)

     1  package extension
     2  
     3  import (
     4  	"context"
     5  
     6  	"github.com/golang/protobuf/proto"
     7  
     8  	"github.com/v2fly/v2ray-core/v4/features"
     9  )
    10  
    11  type Observatory interface {
    12  	features.Feature
    13  
    14  	GetObservation(ctx context.Context) (proto.Message, error)
    15  }
    16  
    17  func ObservatoryType() interface{} {
    18  	return (*Observatory)(nil)
    19  }