Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterSampleServiceServer(s grpc.ServiceRegistrar, srv SampleServiceServer)
- type SampleServiceClient
- type SampleServiceServer
- type UnimplementedSampleServiceServer
- func (UnimplementedSampleServiceServer) Echo(context.Context, *wrapperspb.StringValue) (*wrapperspb.StringValue, error)
- func (UnimplementedSampleServiceServer) Echox(context.Context, *wrapperspb.StringValue) (*wrapperspb.StringValue, error)
- func (UnimplementedSampleServiceServer) RaiseError(context.Context, *wrapperspb.UInt32Value) (*emptypb.Empty, error)
- type UnsafeSampleServiceServer
Constants ¶
const ( SampleService_Echo_FullMethodName = "/api.SampleService/Echo" SampleService_Echox_FullMethodName = "/api.SampleService/Echox" SampleService_RaiseError_FullMethodName = "/api.SampleService/RaiseError" )
Variables ¶
var File_service_proto protoreflect.FileDescriptor
var SampleService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "api.SampleService", HandlerType: (*SampleServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Echo", Handler: _SampleService_Echo_Handler, }, { MethodName: "Echox", Handler: _SampleService_Echox_Handler, }, { MethodName: "RaiseError", Handler: _SampleService_RaiseError_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "service.proto", }
SampleService_ServiceDesc is the grpc.ServiceDesc for SampleService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterSampleServiceServer ¶
func RegisterSampleServiceServer(s grpc.ServiceRegistrar, srv SampleServiceServer)
Types ¶
type SampleServiceClient ¶
type SampleServiceClient interface { Echo(ctx context.Context, in *wrapperspb.StringValue, opts ...grpc.CallOption) (*wrapperspb.StringValue, error) Echox(ctx context.Context, in *wrapperspb.StringValue, opts ...grpc.CallOption) (*wrapperspb.StringValue, error) RaiseError(ctx context.Context, in *wrapperspb.UInt32Value, opts ...grpc.CallOption) (*emptypb.Empty, error) }
SampleServiceClient is the client API for SampleService 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 NewSampleServiceClient ¶
func NewSampleServiceClient(cc grpc.ClientConnInterface) SampleServiceClient
type SampleServiceServer ¶
type SampleServiceServer interface { Echo(context.Context, *wrapperspb.StringValue) (*wrapperspb.StringValue, error) Echox(context.Context, *wrapperspb.StringValue) (*wrapperspb.StringValue, error) RaiseError(context.Context, *wrapperspb.UInt32Value) (*emptypb.Empty, error) // contains filtered or unexported methods }
SampleServiceServer is the server API for SampleService service. All implementations must embed UnimplementedSampleServiceServer for forward compatibility
type UnimplementedSampleServiceServer ¶
type UnimplementedSampleServiceServer struct { }
UnimplementedSampleServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedSampleServiceServer) Echo ¶
func (UnimplementedSampleServiceServer) Echo(context.Context, *wrapperspb.StringValue) (*wrapperspb.StringValue, error)
func (UnimplementedSampleServiceServer) Echox ¶
func (UnimplementedSampleServiceServer) Echox(context.Context, *wrapperspb.StringValue) (*wrapperspb.StringValue, error)
func (UnimplementedSampleServiceServer) RaiseError ¶
func (UnimplementedSampleServiceServer) RaiseError(context.Context, *wrapperspb.UInt32Value) (*emptypb.Empty, error)
type UnsafeSampleServiceServer ¶
type UnsafeSampleServiceServer interface {
// contains filtered or unexported methods
}
UnsafeSampleServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SampleServiceServer will result in compilation errors.