Documentation ¶
Index ¶
- Variables
- func RegisterHiDotServer(s *grpc.Server, srv HiDotServer)
- type HelloRequest
- type HelloResponse
- type HiDotClient
- type HiDotServer
- type HiDot_BothSidesClient
- type HiDot_BothSidesServer
- type HiDot_ClientStreamClient
- type HiDot_ClientStreamServer
- type HiDot_ServerStreamClient
- type HiDot_ServerStreamServer
- type HiReq
- type HiRes
- type UnimplementedHiDotServer
- func (*UnimplementedHiDotServer) BothSides(HiDot_BothSidesServer) error
- func (*UnimplementedHiDotServer) ClientStream(HiDot_ClientStreamServer) error
- func (*UnimplementedHiDotServer) Hi(context.Context, *HiReq) (*HiRes, error)
- func (*UnimplementedHiDotServer) ServerStream(*HelloRequest, HiDot_ServerStreamServer) error
- func (*UnimplementedHiDotServer) Write(context.Context, *WriteReq) (*WriteRes, error)
- type WriteReq
- type WriteRes
Constants ¶
This section is empty.
Variables ¶
View Source
var File_hi_proto protoreflect.FileDescriptor
Functions ¶
func RegisterHiDotServer ¶
func RegisterHiDotServer(s *grpc.Server, srv HiDotServer)
Types ¶
type HelloRequest ¶
type HelloRequest struct { Greeting string `protobuf:"bytes,1,opt,name=greeting,proto3" json:"greeting,omitempty"` // contains filtered or unexported fields }
func (*HelloRequest) Descriptor
deprecated
func (*HelloRequest) Descriptor() ([]byte, []int)
Deprecated: Use HelloRequest.ProtoReflect.Descriptor instead.
func (*HelloRequest) GetGreeting ¶
func (x *HelloRequest) GetGreeting() 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 { Reply string `protobuf:"bytes,1,opt,name=reply,proto3" json:"reply,omitempty"` // contains filtered or unexported fields }
func (*HelloResponse) Descriptor
deprecated
func (*HelloResponse) Descriptor() ([]byte, []int)
Deprecated: Use HelloResponse.ProtoReflect.Descriptor instead.
func (*HelloResponse) GetReply ¶
func (x *HelloResponse) GetReply() 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 HiDotClient ¶
type HiDotClient interface { Hi(ctx context.Context, in *HiReq, opts ...grpc.CallOption) (*HiRes, error) Write(ctx context.Context, in *WriteReq, opts ...grpc.CallOption) (*WriteRes, error) ServerStream(ctx context.Context, in *HelloRequest, opts ...grpc.CallOption) (HiDot_ServerStreamClient, error) ClientStream(ctx context.Context, opts ...grpc.CallOption) (HiDot_ClientStreamClient, error) BothSides(ctx context.Context, opts ...grpc.CallOption) (HiDot_BothSidesClient, error) }
HiDotClient is the client API for HiDot service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewHiDotClient ¶
func NewHiDotClient(cc grpc.ClientConnInterface) HiDotClient
type HiDotServer ¶
type HiDotServer interface { Hi(context.Context, *HiReq) (*HiRes, error) Write(context.Context, *WriteReq) (*WriteRes, error) ServerStream(*HelloRequest, HiDot_ServerStreamServer) error ClientStream(HiDot_ClientStreamServer) error BothSides(HiDot_BothSidesServer) error }
HiDotServer is the server API for HiDot service.
type HiDot_BothSidesClient ¶
type HiDot_BothSidesClient interface { Send(*HelloRequest) error Recv() (*HelloResponse, error) grpc.ClientStream }
type HiDot_BothSidesServer ¶
type HiDot_BothSidesServer interface { Send(*HelloResponse) error Recv() (*HelloRequest, error) grpc.ServerStream }
type HiDot_ClientStreamClient ¶
type HiDot_ClientStreamClient interface { Send(*HelloRequest) error CloseAndRecv() (*HelloResponse, error) grpc.ClientStream }
type HiDot_ClientStreamServer ¶
type HiDot_ClientStreamServer interface { SendAndClose(*HelloResponse) error Recv() (*HelloRequest, error) grpc.ServerStream }
type HiDot_ServerStreamClient ¶
type HiDot_ServerStreamClient interface { Recv() (*HelloResponse, error) grpc.ClientStream }
type HiDot_ServerStreamServer ¶
type HiDot_ServerStreamServer interface { Send(*HelloResponse) error grpc.ServerStream }
type HiReq ¶
type HiReq struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*HiReq) Descriptor
deprecated
func (*HiReq) ProtoMessage ¶
func (*HiReq) ProtoMessage()
func (*HiReq) ProtoReflect ¶
func (x *HiReq) ProtoReflect() protoreflect.Message
type HiRes ¶
type HiRes struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*HiRes) Descriptor
deprecated
func (*HiRes) ProtoMessage ¶
func (*HiRes) ProtoMessage()
func (*HiRes) ProtoReflect ¶
func (x *HiRes) ProtoReflect() protoreflect.Message
type UnimplementedHiDotServer ¶
type UnimplementedHiDotServer struct { }
UnimplementedHiDotServer can be embedded to have forward compatible implementations.
func (*UnimplementedHiDotServer) BothSides ¶
func (*UnimplementedHiDotServer) BothSides(HiDot_BothSidesServer) error
func (*UnimplementedHiDotServer) ClientStream ¶
func (*UnimplementedHiDotServer) ClientStream(HiDot_ClientStreamServer) error
func (*UnimplementedHiDotServer) ServerStream ¶
func (*UnimplementedHiDotServer) ServerStream(*HelloRequest, HiDot_ServerStreamServer) error
type WriteReq ¶
type WriteReq struct { Data string `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*WriteReq) Descriptor
deprecated
func (*WriteReq) ProtoMessage ¶
func (*WriteReq) ProtoMessage()
func (*WriteReq) ProtoReflect ¶
func (x *WriteReq) ProtoReflect() protoreflect.Message
type WriteRes ¶
type WriteRes struct { Data string `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*WriteRes) Descriptor
deprecated
func (*WriteRes) ProtoMessage ¶
func (*WriteRes) ProtoMessage()
func (*WriteRes) ProtoReflect ¶
func (x *WriteRes) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.