github.com/xraypb/Xray-core@v1.8.1/features/extension/observatory.go (about)

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