Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var File_cool_proto protoreflect.FileDescriptor
View Source
var File_user_proto protoreflect.FileDescriptor
Functions ¶
func RegisterCoolServer ¶
func RegisterCoolServer(s *grpc.Server, srv CoolServer)
func RegisterUserServer ¶
func RegisterUserServer(s *grpc.Server, srv UserServer)
Types ¶
type CoolClient ¶
type CoolClient interface { Ping(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error) Cool(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error) }
CoolClient is the client API for Cool service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewCoolClient ¶
func NewCoolClient(cc grpc.ClientConnInterface) CoolClient
type CoolServer ¶
type CoolServer interface { Ping(context.Context, *Request) (*Response, error) Cool(context.Context, *Request) (*Response, error) }
CoolServer is the server API for Cool service.
type Req ¶
type Req struct { Ping string `protobuf:"bytes,1,opt,name=ping,proto3" json:"ping,omitempty"` // contains filtered or unexported fields }
func (*Req) Descriptor
deprecated
func (*Req) ProtoMessage ¶
func (*Req) ProtoMessage()
func (*Req) ProtoReflect ¶
func (x *Req) ProtoReflect() protoreflect.Message
type Request ¶
type Request struct { Ping string `protobuf:"bytes,1,opt,name=ping,proto3" json:"ping,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 Resp ¶
type Resp struct { Pong string `protobuf:"bytes,1,opt,name=pong,proto3" json:"pong,omitempty"` // contains filtered or unexported fields }
func (*Resp) Descriptor
deprecated
func (*Resp) ProtoMessage ¶
func (*Resp) ProtoMessage()
func (*Resp) ProtoReflect ¶
func (x *Resp) ProtoReflect() protoreflect.Message
type Response ¶
type Response struct { Pong string `protobuf:"bytes,1,opt,name=pong,proto3" json:"pong,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 UnimplementedCoolServer ¶
type UnimplementedCoolServer struct { }
UnimplementedCoolServer can be embedded to have forward compatible implementations.
type UnimplementedUserServer ¶
type UnimplementedUserServer struct { }
UnimplementedUserServer can be embedded to have forward compatible implementations.
type UserClient ¶
type UserClient interface { Ping(ctx context.Context, in *Req, opts ...grpc.CallOption) (*Resp, error) Cool(ctx context.Context, in *Req, opts ...grpc.CallOption) (*Resp, error) }
UserClient is the client API for User service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewUserClient ¶
func NewUserClient(cc grpc.ClientConnInterface) UserClient
Click to show internal directories.
Click to hide internal directories.