Documentation ¶
Index ¶
- Variables
- func RegisterGreeterxiaochaoServer(s grpc.ServiceRegistrar, srv GreeterxiaochaoServer)
- type GreeterxiaochaoClient
- type GreeterxiaochaoServer
- type Greeterxiaochao_HelloxiaoClientStreamClient
- type Greeterxiaochao_HelloxiaoClientStreamServer
- type Greeterxiaochao_HelloxiaoServerStreamClient
- type Greeterxiaochao_HelloxiaoServerStreamServer
- type Greeterxiaochao_HelloxiaoStreamClient
- type Greeterxiaochao_HelloxiaoStreamServer
- type HelloRequest
- func (*HelloRequest) Descriptor() ([]byte, []int)deprecated
- func (x *HelloRequest) GetCount() int32
- func (x *HelloRequest) GetName() []string
- func (*HelloRequest) ProtoMessage()
- func (x *HelloRequest) ProtoReflect() protoreflect.Message
- func (x *HelloRequest) Reset()
- func (x *HelloRequest) String() string
- type HelloResponse
- func (*HelloResponse) Descriptor() ([]byte, []int)deprecated
- func (x *HelloResponse) GetGreeting() []string
- func (x *HelloResponse) GetMsg() string
- func (*HelloResponse) ProtoMessage()
- func (x *HelloResponse) ProtoReflect() protoreflect.Message
- func (x *HelloResponse) Reset()
- func (x *HelloResponse) String() string
- type Status
- type UnimplementedGreeterxiaochaoServer
- func (UnimplementedGreeterxiaochaoServer) Helloxiao(context.Context, *HelloRequest) (*HelloResponse, error)
- func (UnimplementedGreeterxiaochaoServer) HelloxiaoClientStream(Greeterxiaochao_HelloxiaoClientStreamServer) error
- func (UnimplementedGreeterxiaochaoServer) HelloxiaoServerStream(*HelloRequest, Greeterxiaochao_HelloxiaoServerStreamServer) error
- func (UnimplementedGreeterxiaochaoServer) HelloxiaoStream(Greeterxiaochao_HelloxiaoStreamServer) error
- type UnsafeGreeterxiaochaoServer
Constants ¶
This section is empty.
Variables ¶
var ( Status_name = map[int32]string{ 0: "A", 1: "B", 2: "C", 3: "D", } Status_value = map[string]int32{ "A": 0, "B": 1, "C": 2, "D": 3, } )
Enum value maps for Status.
var File_holle_proto protoreflect.FileDescriptor
var Greeterxiaochao_ServiceDesc = grpc.ServiceDesc{ ServiceName: "rpc.Greeterxiaochao", HandlerType: (*GreeterxiaochaoServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Helloxiao", Handler: _Greeterxiaochao_Helloxiao_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "HelloxiaoServerStream", Handler: _Greeterxiaochao_HelloxiaoServerStream_Handler, ServerStreams: true, }, { StreamName: "HelloxiaoClientStream", Handler: _Greeterxiaochao_HelloxiaoClientStream_Handler, ClientStreams: true, }, { StreamName: "HelloxiaoStream", Handler: _Greeterxiaochao_HelloxiaoStream_Handler, ServerStreams: true, ClientStreams: true, }, }, Metadata: "holle.proto", }
Greeterxiaochao_ServiceDesc is the grpc.ServiceDesc for Greeterxiaochao service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterGreeterxiaochaoServer ¶
func RegisterGreeterxiaochaoServer(s grpc.ServiceRegistrar, srv GreeterxiaochaoServer)
Types ¶
type GreeterxiaochaoClient ¶
type GreeterxiaochaoClient interface { Helloxiao(ctx context.Context, in *HelloRequest, opts ...grpc.CallOption) (*HelloResponse, error) HelloxiaoServerStream(ctx context.Context, in *HelloRequest, opts ...grpc.CallOption) (Greeterxiaochao_HelloxiaoServerStreamClient, error) HelloxiaoClientStream(ctx context.Context, opts ...grpc.CallOption) (Greeterxiaochao_HelloxiaoClientStreamClient, error) HelloxiaoStream(ctx context.Context, opts ...grpc.CallOption) (Greeterxiaochao_HelloxiaoStreamClient, error) }
GreeterxiaochaoClient is the client API for Greeterxiaochao 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 NewGreeterxiaochaoClient ¶
func NewGreeterxiaochaoClient(cc grpc.ClientConnInterface) GreeterxiaochaoClient
type GreeterxiaochaoServer ¶
type GreeterxiaochaoServer interface { Helloxiao(context.Context, *HelloRequest) (*HelloResponse, error) HelloxiaoServerStream(*HelloRequest, Greeterxiaochao_HelloxiaoServerStreamServer) error HelloxiaoClientStream(Greeterxiaochao_HelloxiaoClientStreamServer) error HelloxiaoStream(Greeterxiaochao_HelloxiaoStreamServer) error // contains filtered or unexported methods }
GreeterxiaochaoServer is the server API for Greeterxiaochao service. All implementations must embed UnimplementedGreeterxiaochaoServer for forward compatibility
type Greeterxiaochao_HelloxiaoClientStreamClient ¶
type Greeterxiaochao_HelloxiaoClientStreamClient interface { Send(*HelloRequest) error CloseAndRecv() (*HelloResponse, error) grpc.ClientStream }
type Greeterxiaochao_HelloxiaoClientStreamServer ¶
type Greeterxiaochao_HelloxiaoClientStreamServer interface { SendAndClose(*HelloResponse) error Recv() (*HelloRequest, error) grpc.ServerStream }
type Greeterxiaochao_HelloxiaoServerStreamClient ¶
type Greeterxiaochao_HelloxiaoServerStreamClient interface { Recv() (*HelloResponse, error) grpc.ClientStream }
type Greeterxiaochao_HelloxiaoServerStreamServer ¶
type Greeterxiaochao_HelloxiaoServerStreamServer interface { Send(*HelloResponse) error grpc.ServerStream }
type Greeterxiaochao_HelloxiaoStreamClient ¶
type Greeterxiaochao_HelloxiaoStreamClient interface { Send(*HelloRequest) error Recv() (*HelloResponse, error) grpc.ClientStream }
type Greeterxiaochao_HelloxiaoStreamServer ¶
type Greeterxiaochao_HelloxiaoStreamServer interface { Send(*HelloResponse) error Recv() (*HelloRequest, error) grpc.ServerStream }
type HelloRequest ¶
type HelloRequest struct { Name []string `protobuf:"bytes,1,rep,name=name,proto3" json:"name,omitempty"` Count int32 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"` // contains filtered or unexported fields }
func (*HelloRequest) Descriptor
deprecated
func (*HelloRequest) Descriptor() ([]byte, []int)
Deprecated: Use HelloRequest.ProtoReflect.Descriptor instead.
func (*HelloRequest) GetCount ¶
func (x *HelloRequest) GetCount() int32
func (*HelloRequest) GetName ¶
func (x *HelloRequest) GetName() []string
func (*HelloRequest) ProtoMessage ¶
func (*HelloRequest) ProtoMessage()
func (*HelloRequest) ProtoReflect ¶
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 { Greeting []string `protobuf:"bytes,1,rep,name=greeting,proto3" json:"greeting,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` // contains filtered or unexported fields }
func (*HelloResponse) Descriptor
deprecated
func (*HelloResponse) Descriptor() ([]byte, []int)
Deprecated: Use HelloResponse.ProtoReflect.Descriptor instead.
func (*HelloResponse) GetGreeting ¶
func (x *HelloResponse) GetGreeting() []string
func (*HelloResponse) GetMsg ¶
func (x *HelloResponse) GetMsg() string
func (*HelloResponse) ProtoMessage ¶
func (*HelloResponse) ProtoMessage()
func (*HelloResponse) ProtoReflect ¶
func (x *HelloResponse) ProtoReflect() protoreflect.Message
func (*HelloResponse) Reset ¶
func (x *HelloResponse) Reset()
func (*HelloResponse) String ¶
func (x *HelloResponse) String() string
type Status ¶
type Status int32
func (Status) Descriptor ¶
func (Status) Descriptor() protoreflect.EnumDescriptor
func (Status) EnumDescriptor
deprecated
func (Status) Number ¶
func (x Status) Number() protoreflect.EnumNumber
func (Status) Type ¶
func (Status) Type() protoreflect.EnumType
type UnimplementedGreeterxiaochaoServer ¶
type UnimplementedGreeterxiaochaoServer struct { }
UnimplementedGreeterxiaochaoServer must be embedded to have forward compatible implementations.
func (UnimplementedGreeterxiaochaoServer) Helloxiao ¶
func (UnimplementedGreeterxiaochaoServer) Helloxiao(context.Context, *HelloRequest) (*HelloResponse, error)
func (UnimplementedGreeterxiaochaoServer) HelloxiaoClientStream ¶
func (UnimplementedGreeterxiaochaoServer) HelloxiaoClientStream(Greeterxiaochao_HelloxiaoClientStreamServer) error
func (UnimplementedGreeterxiaochaoServer) HelloxiaoServerStream ¶
func (UnimplementedGreeterxiaochaoServer) HelloxiaoServerStream(*HelloRequest, Greeterxiaochao_HelloxiaoServerStreamServer) error
func (UnimplementedGreeterxiaochaoServer) HelloxiaoStream ¶
func (UnimplementedGreeterxiaochaoServer) HelloxiaoStream(Greeterxiaochao_HelloxiaoStreamServer) error
type UnsafeGreeterxiaochaoServer ¶
type UnsafeGreeterxiaochaoServer interface {
// contains filtered or unexported methods
}
UnsafeGreeterxiaochaoServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to GreeterxiaochaoServer will result in compilation errors.