Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterMicroServiceServer(s grpc.ServiceRegistrar, srv MicroServiceServer)
- type MicroServiceClient
- type MicroServiceServer
- type Reply
- type Request
- func (*Request) Descriptor() ([]byte, []int)deprecated
- func (x *Request) GetV1() [][]byte
- func (x *Request) GetV2() []string
- func (x *Request) GetV3() int64
- func (*Request) ProtoMessage()
- func (x *Request) ProtoReflect() protoreflect.Message
- func (x *Request) Reset()
- func (x *Request) String() string
- type UnimplementedMicroServiceServer
- type UnsafeMicroServiceServer
Constants ¶
const (
MicroService_SayHello_FullMethodName = "/ms.MicroService/SayHello"
)
Variables ¶
var File_ms_proto protoreflect.FileDescriptor
var MicroService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "ms.MicroService", HandlerType: (*MicroServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "SayHello", Handler: _MicroService_SayHello_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "ms.proto", }
MicroService_ServiceDesc is the grpc.ServiceDesc for MicroService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterMicroServiceServer ¶
func RegisterMicroServiceServer(s grpc.ServiceRegistrar, srv MicroServiceServer)
Types ¶
type MicroServiceClient ¶
type MicroServiceClient interface {
SayHello(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Reply, error)
}
MicroServiceClient is the client API for MicroService 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 NewMicroServiceClient ¶
func NewMicroServiceClient(cc grpc.ClientConnInterface) MicroServiceClient
type MicroServiceServer ¶
type MicroServiceServer interface { SayHello(context.Context, *Request) (*Reply, error) // contains filtered or unexported methods }
MicroServiceServer is the server API for MicroService service. All implementations must embed UnimplementedMicroServiceServer for forward compatibility
type Reply ¶
type Reply struct { Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` V3 *uint64 `protobuf:"varint,2,opt,name=v3,proto3,oneof" json:"v3,omitempty"` // contains filtered or unexported fields }
func (*Reply) Descriptor
deprecated
func (*Reply) ProtoMessage ¶
func (*Reply) ProtoMessage()
func (*Reply) ProtoReflect ¶
func (x *Reply) ProtoReflect() protoreflect.Message
type Request ¶
type Request struct { V1 [][]byte `protobuf:"bytes,1,rep,name=v1,proto3" json:"v1,omitempty"` V2 []string `protobuf:"bytes,2,rep,name=v2,proto3" json:"v2,omitempty"` V3 *int64 `protobuf:"varint,3,opt,name=v3,proto3,oneof" json:"v3,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 UnimplementedMicroServiceServer ¶
type UnimplementedMicroServiceServer struct { }
UnimplementedMicroServiceServer must be embedded to have forward compatible implementations.
type UnsafeMicroServiceServer ¶
type UnsafeMicroServiceServer interface {
// contains filtered or unexported methods
}
UnsafeMicroServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MicroServiceServer will result in compilation errors.