Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterTraceServiceServer(s grpc.ServiceRegistrar, srv TraceServiceServer)
- type TraceServiceClient
- type TraceServiceServer
- type TraceService_ConfigClient
- type TraceService_ConfigServer
- type TraceService_ExportClient
- type TraceService_ExportServer
- type UnimplementedTraceServiceServer
- type UnsafeTraceServiceServer
Constants ¶
const ( TraceService_Config_FullMethodName = "/opencensus.proto.agent.trace.v1.TraceService/Config" TraceService_Export_FullMethodName = "/opencensus.proto.agent.trace.v1.TraceService/Export" )
Variables ¶
var TraceService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "opencensus.proto.agent.trace.v1.TraceService", HandlerType: (*TraceServiceServer)(nil), Methods: []grpc.MethodDesc{}, Streams: []grpc.StreamDesc{ { StreamName: "Config", Handler: _TraceService_Config_Handler, ServerStreams: true, ClientStreams: true, }, { StreamName: "Export", Handler: _TraceService_Export_Handler, ServerStreams: true, ClientStreams: true, }, }, Metadata: "opencensus/proto/agent/trace/v1/trace_service.proto", }
TraceService_ServiceDesc is the grpc.ServiceDesc for TraceService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterTraceServiceServer ¶
func RegisterTraceServiceServer(s grpc.ServiceRegistrar, srv TraceServiceServer)
Types ¶
type TraceServiceClient ¶
type TraceServiceClient interface { // After initialization, this RPC must be kept alive for the entire life of // the application. The agent pushes configs down to applications via a // stream. Config(ctx context.Context, opts ...grpc.CallOption) (TraceService_ConfigClient, error) // 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) (TraceService_ExportClient, error) }
TraceServiceClient is the client API for TraceService 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 NewTraceServiceClient ¶
func NewTraceServiceClient(cc grpc.ClientConnInterface) TraceServiceClient
type TraceServiceServer ¶
type TraceServiceServer interface { // After initialization, this RPC must be kept alive for the entire life of // the application. The agent pushes configs down to applications via a // stream. Config(TraceService_ConfigServer) error // For performance reasons, it is recommended to keep this RPC // alive for the entire life of the application. Export(TraceService_ExportServer) error }
TraceServiceServer is the server API for TraceService service. All implementations should embed UnimplementedTraceServiceServer for forward compatibility
type TraceService_ConfigClient ¶
type TraceService_ConfigClient interface { Send(*v1.CurrentLibraryConfig) error Recv() (*v1.UpdatedLibraryConfig, error) grpc.ClientStream }
type TraceService_ConfigServer ¶
type TraceService_ConfigServer interface { Send(*v1.UpdatedLibraryConfig) error Recv() (*v1.CurrentLibraryConfig, error) grpc.ServerStream }
type TraceService_ExportClient ¶
type TraceService_ExportClient interface { Send(*v1.ExportTraceServiceRequest) error Recv() (*v1.ExportTraceServiceResponse, error) grpc.ClientStream }
type TraceService_ExportServer ¶
type TraceService_ExportServer interface { Send(*v1.ExportTraceServiceResponse) error Recv() (*v1.ExportTraceServiceRequest, error) grpc.ServerStream }
type UnimplementedTraceServiceServer ¶
type UnimplementedTraceServiceServer struct { }
UnimplementedTraceServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedTraceServiceServer) Config ¶
func (UnimplementedTraceServiceServer) Config(TraceService_ConfigServer) error
func (UnimplementedTraceServiceServer) Export ¶
func (UnimplementedTraceServiceServer) Export(TraceService_ExportServer) error
type UnsafeTraceServiceServer ¶
type UnsafeTraceServiceServer interface {
// contains filtered or unexported methods
}
UnsafeTraceServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TraceServiceServer will result in compilation errors.