Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var File_service_proto protoreflect.FileDescriptor
var ServiceFooBar_ServiceDesc = grpc.ServiceDesc{ ServiceName: "encoder.ServiceFooBar", HandlerType: (*ServiceFooBarServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "foo", Handler: _ServiceFooBar_Foo_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "service.proto", }
ServiceFooBar_ServiceDesc is the grpc.ServiceDesc for ServiceFooBar service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterServiceFooBarServer ¶
func RegisterServiceFooBarServer(s grpc.ServiceRegistrar, srv ServiceFooBarServer)
Types ¶
type Request ¶
type Request struct { Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*Request) Descriptor
deprecated
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
func (*Request) ProtoReflect ¶
func (x *Request) ProtoReflect() protoreflect.Message
type Response ¶
type Response struct { Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*Response) Descriptor
deprecated
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) ProtoReflect ¶
func (x *Response) ProtoReflect() protoreflect.Message
type ServiceFooBarClient ¶
type ServiceFooBarClient interface {
Foo(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error)
}
ServiceFooBarClient is the client API for ServiceFooBar 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 NewServiceFooBarClient ¶
func NewServiceFooBarClient(cc grpc.ClientConnInterface) ServiceFooBarClient
type ServiceFooBarServer ¶
type ServiceFooBarServer interface { Foo(context.Context, *Request) (*Response, error) // contains filtered or unexported methods }
ServiceFooBarServer is the server API for ServiceFooBar service. All implementations must embed UnimplementedServiceFooBarServer for forward compatibility
type UnimplementedServiceFooBarServer ¶
type UnimplementedServiceFooBarServer struct { }
UnimplementedServiceFooBarServer must be embedded to have forward compatible implementations.
type UnsafeServiceFooBarServer ¶
type UnsafeServiceFooBarServer interface {
// contains filtered or unexported methods
}
UnsafeServiceFooBarServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ServiceFooBarServer will result in compilation errors.