Documentation ¶
Index ¶
- Variables
- func RegisterBaggageServiceServer(s grpc.ServiceRegistrar, srv BaggageServiceServer)
- func RegisterHelloServiceServer(s grpc.ServiceRegistrar, srv HelloServiceServer)
- type BaggageServiceClient
- type BaggageServiceServer
- type HelloRequest
- type HelloResponse
- func (*HelloResponse) Descriptor() ([]byte, []int)deprecated
- func (x *HelloResponse) GetMetadata() map[string]string
- func (x *HelloResponse) GetPayload() string
- func (x *HelloResponse) GetSpanContext() map[string]string
- func (*HelloResponse) ProtoMessage()
- func (x *HelloResponse) ProtoReflect() protoreflect.Message
- func (x *HelloResponse) Reset()
- func (x *HelloResponse) String() string
- type HelloServiceClient
- type HelloServiceServer
- type UnimplementedBaggageServiceServer
- type UnimplementedHelloServiceServer
- type UnsafeBaggageServiceServer
- type UnsafeHelloServiceServer
Constants ¶
This section is empty.
Variables ¶
var BaggageService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "zipkin.testing.BaggageService", HandlerType: (*BaggageServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Handler1", Handler: _BaggageService_Handler1_Handler, }, { MethodName: "Handler2", Handler: _BaggageService_Handler2_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/testing/baggage.proto", }
BaggageService_ServiceDesc is the grpc.ServiceDesc for BaggageService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_proto_testing_baggage_proto protoreflect.FileDescriptor
var File_proto_testing_service_proto protoreflect.FileDescriptor
var HelloService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "zipkin.testing.HelloService", HandlerType: (*HelloServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Hello", Handler: _HelloService_Hello_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/testing/service.proto", }
HelloService_ServiceDesc is the grpc.ServiceDesc for HelloService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterBaggageServiceServer ¶ added in v0.4.0
func RegisterBaggageServiceServer(s grpc.ServiceRegistrar, srv BaggageServiceServer)
func RegisterHelloServiceServer ¶
func RegisterHelloServiceServer(s grpc.ServiceRegistrar, srv HelloServiceServer)
Types ¶
type BaggageServiceClient ¶ added in v0.4.0
type BaggageServiceClient interface { Handler1(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error) Handler2(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error) }
BaggageServiceClient is the client API for BaggageService 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 NewBaggageServiceClient ¶ added in v0.4.0
func NewBaggageServiceClient(cc grpc.ClientConnInterface) BaggageServiceClient
type BaggageServiceServer ¶ added in v0.4.0
type BaggageServiceServer interface { Handler1(context.Context, *emptypb.Empty) (*emptypb.Empty, error) Handler2(context.Context, *emptypb.Empty) (*emptypb.Empty, error) // contains filtered or unexported methods }
BaggageServiceServer is the server API for BaggageService service. All implementations must embed UnimplementedBaggageServiceServer for forward compatibility
type HelloRequest ¶
type HelloRequest struct { Payload string `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` // contains filtered or unexported fields }
func (*HelloRequest) Descriptor
deprecated
func (*HelloRequest) Descriptor() ([]byte, []int)
Deprecated: Use HelloRequest.ProtoReflect.Descriptor instead.
func (*HelloRequest) GetPayload ¶
func (x *HelloRequest) GetPayload() string
func (*HelloRequest) ProtoMessage ¶
func (*HelloRequest) ProtoMessage()
func (*HelloRequest) ProtoReflect ¶ added in v0.2.3
func (x *HelloRequest) ProtoReflect() protoreflect.Message
func (*HelloRequest) Reset ¶
func (x *HelloRequest) Reset()
func (*HelloRequest) String ¶
func (x *HelloRequest) String() string
type HelloResponse ¶
type HelloResponse struct { Payload string `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` Metadata map[string]string `` /* 157-byte string literal not displayed */ SpanContext map[string]string `` /* 182-byte string literal not displayed */ // contains filtered or unexported fields }
func (*HelloResponse) Descriptor
deprecated
func (*HelloResponse) Descriptor() ([]byte, []int)
Deprecated: Use HelloResponse.ProtoReflect.Descriptor instead.
func (*HelloResponse) GetMetadata ¶
func (x *HelloResponse) GetMetadata() map[string]string
func (*HelloResponse) GetPayload ¶
func (x *HelloResponse) GetPayload() string
func (*HelloResponse) GetSpanContext ¶ added in v0.1.5
func (x *HelloResponse) GetSpanContext() map[string]string
func (*HelloResponse) ProtoMessage ¶
func (*HelloResponse) ProtoMessage()
func (*HelloResponse) ProtoReflect ¶ added in v0.2.3
func (x *HelloResponse) ProtoReflect() protoreflect.Message
func (*HelloResponse) Reset ¶
func (x *HelloResponse) Reset()
func (*HelloResponse) String ¶
func (x *HelloResponse) String() string
type HelloServiceClient ¶
type HelloServiceClient interface {
Hello(ctx context.Context, in *HelloRequest, opts ...grpc.CallOption) (*HelloResponse, error)
}
HelloServiceClient is the client API for HelloService 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 NewHelloServiceClient ¶
func NewHelloServiceClient(cc grpc.ClientConnInterface) HelloServiceClient
type HelloServiceServer ¶
type HelloServiceServer interface { Hello(context.Context, *HelloRequest) (*HelloResponse, error) // contains filtered or unexported methods }
HelloServiceServer is the server API for HelloService service. All implementations must embed UnimplementedHelloServiceServer for forward compatibility
type UnimplementedBaggageServiceServer ¶ added in v0.4.0
type UnimplementedBaggageServiceServer struct { }
UnimplementedBaggageServiceServer must be embedded to have forward compatible implementations.
type UnimplementedHelloServiceServer ¶ added in v0.2.3
type UnimplementedHelloServiceServer struct { }
UnimplementedHelloServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedHelloServiceServer) Hello ¶ added in v0.2.3
func (UnimplementedHelloServiceServer) Hello(context.Context, *HelloRequest) (*HelloResponse, error)
type UnsafeBaggageServiceServer ¶ added in v0.4.1
type UnsafeBaggageServiceServer interface {
// contains filtered or unexported methods
}
UnsafeBaggageServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to BaggageServiceServer will result in compilation errors.
type UnsafeHelloServiceServer ¶ added in v0.4.1
type UnsafeHelloServiceServer interface {
// contains filtered or unexported methods
}
UnsafeHelloServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to HelloServiceServer will result in compilation errors.