Documentation ¶
Index ¶
- Variables
- func GoodByeService_GoodByeAgain_Handler(svr interface{}, ctx context.Context, f server.FilterFunc) (interface{}, error)
- func GoodByeService_GoodBye_Handler(svr interface{}, ctx context.Context, f server.FilterFunc) (interface{}, error)
- func RegisterGoodByeService(s server.Service, svr GoodByeService)
- type ByeAgainReply
- func (*ByeAgainReply) Descriptor() ([]byte, []int)deprecated
- func (x *ByeAgainReply) GetErrCode() string
- func (x *ByeAgainReply) GetErrMsg() string
- func (*ByeAgainReply) ProtoMessage()
- func (x *ByeAgainReply) ProtoReflect() protoreflect.Message
- func (x *ByeAgainReply) Reset()
- func (x *ByeAgainReply) String() string
- type ByeAgainRequest
- func (*ByeAgainRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ByeAgainRequest) GetMsg() string
- func (x *ByeAgainRequest) GetUid() string
- func (*ByeAgainRequest) ProtoMessage()
- func (x *ByeAgainRequest) ProtoReflect() protoreflect.Message
- func (x *ByeAgainRequest) Reset()
- func (x *ByeAgainRequest) String() string
- type ByeReply
- type ByeRequest
- type GoodByeClientProxy
- type GoodByeClientProxyImpl
- type GoodByeService
- type UnimplementedGoodBye
Constants ¶
This section is empty.
Variables ¶
View Source
var File_goodworld_proto protoreflect.FileDescriptor
View Source
var GoodByeServer_ServiceDesc = server.ServiceDesc{ ServiceName: "trpc.goodworld.GoodBye", HandlerType: ((*GoodByeService)(nil)), Methods: []server.Method{ { Name: "/trpc.goodworld.GoodBye/GoodBye", Func: GoodByeService_GoodBye_Handler, }, { Name: "/trpc.goodworld.GoodBye/GoodByeAgain", Func: GoodByeService_GoodByeAgain_Handler, }, }, }
GoodByeServer_ServiceDesc descriptor for server.RegisterService.
View Source
var NewGoodByeClientProxy = func(opts ...client.Option) GoodByeClientProxy { return &GoodByeClientProxyImpl{client: client.DefaultClient, opts: opts} }
Functions ¶
func GoodByeService_GoodByeAgain_Handler ¶
func GoodByeService_GoodByeAgain_Handler(svr interface{}, ctx context.Context, f server.FilterFunc) (interface{}, error)
func GoodByeService_GoodBye_Handler ¶
func GoodByeService_GoodBye_Handler(svr interface{}, ctx context.Context, f server.FilterFunc) (interface{}, error)
func RegisterGoodByeService ¶
func RegisterGoodByeService(s server.Service, svr GoodByeService)
RegisterGoodByeService registers service.
Types ¶
type ByeAgainReply ¶
type ByeAgainReply struct { ErrCode string `protobuf:"bytes,1,opt,name=errCode,proto3" json:"errCode,omitempty"` ErrMsg string `protobuf:"bytes,2,opt,name=errMsg,proto3" json:"errMsg,omitempty"` // contains filtered or unexported fields }
func (*ByeAgainReply) Descriptor
deprecated
func (*ByeAgainReply) Descriptor() ([]byte, []int)
Deprecated: Use ByeAgainReply.ProtoReflect.Descriptor instead.
func (*ByeAgainReply) GetErrCode ¶
func (x *ByeAgainReply) GetErrCode() string
func (*ByeAgainReply) GetErrMsg ¶
func (x *ByeAgainReply) GetErrMsg() string
func (*ByeAgainReply) ProtoMessage ¶
func (*ByeAgainReply) ProtoMessage()
func (*ByeAgainReply) ProtoReflect ¶
func (x *ByeAgainReply) ProtoReflect() protoreflect.Message
func (*ByeAgainReply) Reset ¶
func (x *ByeAgainReply) Reset()
func (*ByeAgainReply) String ¶
func (x *ByeAgainReply) String() string
type ByeAgainRequest ¶
type ByeAgainRequest struct { Uid string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` // contains filtered or unexported fields }
func (*ByeAgainRequest) Descriptor
deprecated
func (*ByeAgainRequest) Descriptor() ([]byte, []int)
Deprecated: Use ByeAgainRequest.ProtoReflect.Descriptor instead.
func (*ByeAgainRequest) GetMsg ¶
func (x *ByeAgainRequest) GetMsg() string
func (*ByeAgainRequest) GetUid ¶
func (x *ByeAgainRequest) GetUid() string
func (*ByeAgainRequest) ProtoMessage ¶
func (*ByeAgainRequest) ProtoMessage()
func (*ByeAgainRequest) ProtoReflect ¶
func (x *ByeAgainRequest) ProtoReflect() protoreflect.Message
func (*ByeAgainRequest) Reset ¶
func (x *ByeAgainRequest) Reset()
func (*ByeAgainRequest) String ¶
func (x *ByeAgainRequest) String() string
type ByeReply ¶
type ByeReply struct { Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"` // contains filtered or unexported fields }
func (*ByeReply) Descriptor
deprecated
func (*ByeReply) ProtoMessage ¶
func (*ByeReply) ProtoMessage()
func (*ByeReply) ProtoReflect ¶
func (x *ByeReply) ProtoReflect() protoreflect.Message
type ByeRequest ¶
type ByeRequest struct { Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"` // contains filtered or unexported fields }
func (*ByeRequest) Descriptor
deprecated
func (*ByeRequest) Descriptor() ([]byte, []int)
Deprecated: Use ByeRequest.ProtoReflect.Descriptor instead.
func (*ByeRequest) GetMsg ¶
func (x *ByeRequest) GetMsg() string
func (*ByeRequest) ProtoMessage ¶
func (*ByeRequest) ProtoMessage()
func (*ByeRequest) ProtoReflect ¶
func (x *ByeRequest) ProtoReflect() protoreflect.Message
func (*ByeRequest) Reset ¶
func (x *ByeRequest) Reset()
func (*ByeRequest) String ¶
func (x *ByeRequest) String() string
type GoodByeClientProxy ¶
type GoodByeClientProxy interface { GoodBye(ctx context.Context, req *ByeRequest, opts ...client.Option) (rsp *ByeReply, err error) GoodByeAgain(ctx context.Context, req *ByeAgainRequest, opts ...client.Option) (rsp *ByeAgainReply, err error) }
GoodByeClientProxy defines service client proxy
type GoodByeClientProxyImpl ¶
type GoodByeClientProxyImpl struct {
// contains filtered or unexported fields
}
func (*GoodByeClientProxyImpl) GoodBye ¶
func (c *GoodByeClientProxyImpl) GoodBye(ctx context.Context, req *ByeRequest, opts ...client.Option) (*ByeReply, error)
func (*GoodByeClientProxyImpl) GoodByeAgain ¶
func (c *GoodByeClientProxyImpl) GoodByeAgain(ctx context.Context, req *ByeAgainRequest, opts ...client.Option) (*ByeAgainReply, error)
type GoodByeService ¶
type GoodByeService interface { GoodBye(ctx context.Context, req *ByeRequest) (*ByeReply, error) GoodByeAgain(ctx context.Context, req *ByeAgainRequest) (*ByeAgainReply, error) }
GoodByeService defines service.
type UnimplementedGoodBye ¶
type UnimplementedGoodBye struct{}
func (*UnimplementedGoodBye) GoodBye ¶
func (s *UnimplementedGoodBye) GoodBye(ctx context.Context, req *ByeRequest) (*ByeReply, error)
func (*UnimplementedGoodBye) GoodByeAgain ¶
func (s *UnimplementedGoodBye) GoodByeAgain(ctx context.Context, req *ByeAgainRequest) (*ByeAgainReply, error)
Click to show internal directories.
Click to hide internal directories.