Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProviderServer ¶
type ProviderServer struct { api.UnimplementedProviderServiceServer // contains filtered or unexported fields }
ProviderServer is a gRPC server of provider.Interface.
func NewProviderServer ¶
func NewProviderServer(metricProvider provider.Interface) *ProviderServer
NewProviderServer create a new instance of ProviderServer
func (*ProviderServer) Query ¶
func (s *ProviderServer) Query(ctx context.Context, req *api.QueryRequest) (*api.QueryResponse, error)
func (*ProviderServer) QueryLatest ¶
func (s *ProviderServer) QueryLatest(ctx context.Context, req *api.QueryLatestRequest) (*api.QueryLatestResponse, error)
func (*ProviderServer) RegisterTo ¶
func (s *ProviderServer) RegisterTo(sr grpc.ServiceRegistrar)
RegisterTo register the service to the server
Click to show internal directories.
Click to hide internal directories.