Documentation ¶
Index ¶
Constants ¶
const (
MetricsService_Export_FullMethodName = "/opencensus.proto.agent.metrics.v1.MetricsService/Export"
)
Variables ¶
var MetricsService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "opencensus.proto.agent.metrics.v1.MetricsService", HandlerType: (*MetricsServiceServer)(nil), Methods: []grpc.MethodDesc{}, Streams: []grpc.StreamDesc{ { StreamName: "Export", Handler: _MetricsService_Export_Handler, ServerStreams: true, ClientStreams: true, }, }, Metadata: "opencensus/proto/agent/metrics/v1/metrics_service.proto", }
MetricsService_ServiceDesc is the grpc.ServiceDesc for MetricsService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterMetricsServiceServer ¶
func RegisterMetricsServiceServer(s grpc.ServiceRegistrar, srv MetricsServiceServer)
Types ¶
type MetricsServiceClient ¶
type MetricsServiceClient interface { // For performance reasons, it is recommended to keep this RPC // alive for the entire life of the application. Export(ctx context.Context, opts ...grpc.CallOption) (MetricsService_ExportClient, error) }
MetricsServiceClient is the client API for MetricsService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewMetricsServiceClient ¶
func NewMetricsServiceClient(cc grpc.ClientConnInterface) MetricsServiceClient
type MetricsServiceServer ¶
type MetricsServiceServer interface { // For performance reasons, it is recommended to keep this RPC // alive for the entire life of the application. Export(MetricsService_ExportServer) error }
MetricsServiceServer is the server API for MetricsService service. All implementations should embed UnimplementedMetricsServiceServer for forward compatibility
type MetricsService_ExportClient ¶
type MetricsService_ExportClient interface { Send(*v1.ExportMetricsServiceRequest) error Recv() (*v1.ExportMetricsServiceResponse, error) grpc.ClientStream }
type MetricsService_ExportServer ¶
type MetricsService_ExportServer interface { Send(*v1.ExportMetricsServiceResponse) error Recv() (*v1.ExportMetricsServiceRequest, error) grpc.ServerStream }
type UnimplementedMetricsServiceServer ¶
type UnimplementedMetricsServiceServer struct { }
UnimplementedMetricsServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedMetricsServiceServer) Export ¶
func (UnimplementedMetricsServiceServer) Export(MetricsService_ExportServer) error
type UnsafeMetricsServiceServer ¶
type UnsafeMetricsServiceServer interface {
// contains filtered or unexported methods
}
UnsafeMetricsServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MetricsServiceServer will result in compilation errors.