Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var File_hello_proto protoreflect.FileDescriptor
Functions ¶
func RegisterHelloServiceServer ¶
func RegisterHelloServiceServer(s *grpc.Server, srv HelloServiceServer)
Types ¶
type HelloServiceClient ¶
type HelloServiceClient interface { Hello(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error) Channel(ctx context.Context, opts ...grpc.CallOption) (HelloService_ChannelClient, error) }
HelloServiceClient is the client API for HelloService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewHelloServiceClient ¶
func NewHelloServiceClient(cc grpc.ClientConnInterface) HelloServiceClient
type HelloServiceServer ¶
type HelloServiceServer interface { Hello(context.Context, *Request) (*Response, error) Channel(HelloService_ChannelServer) error }
HelloServiceServer is the server API for HelloService service.
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 UnimplementedHelloServiceServer ¶
type UnimplementedHelloServiceServer struct { }
UnimplementedHelloServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedHelloServiceServer) Channel ¶
func (*UnimplementedHelloServiceServer) Channel(HelloService_ChannelServer) error
Click to show internal directories.
Click to hide internal directories.