Documentation ¶
Overview ¶
Package user_agent is a generated protocol buffer package.
It is generated from these files:
user.proto
It has these top-level messages:
Error ReqMsg ResMsg
Package user_agent is a generated protocol buffer package.
It is generated from these files:
user.proto
It has these top-level messages:
Error ReqMsg ResMsg
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterUserHandler ¶
func RegisterUserHandler(s server.Server, hdlr UserHandler, opts ...server.HandlerOption) error
Types ¶
type Error ¶
type Error struct { Code int32 `protobuf:"varint,1,opt,name=code" json:"code,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg" json:"msg,omitempty"` }
func (*Error) Descriptor ¶
func (*Error) ProtoMessage ¶
func (*Error) ProtoMessage()
type ReqMsg ¶
type ReqMsg struct {
UserName string `protobuf:"bytes,1,opt,name=user_name,json=userName" json:"user_name,omitempty"`
}
func (*ReqMsg) Descriptor ¶
func (*ReqMsg) GetUserName ¶
func (*ReqMsg) ProtoMessage ¶
func (*ReqMsg) ProtoMessage()
type ResMsg ¶
type ResMsg struct { Error *Error `protobuf:"bytes,1,opt,name=error" json:"error,omitempty"` Info string `protobuf:"bytes,2,opt,name=info" json:"info,omitempty"` }
func (*ResMsg) Descriptor ¶
func (*ResMsg) ProtoMessage ¶
func (*ResMsg) ProtoMessage()
type UserHandler ¶
type UserService ¶
type UserService interface {
RpcUserInfo(ctx context.Context, in *ReqMsg, opts ...client.CallOption) (*ResMsg, error)
}
func NewUserService ¶
func NewUserService(name string, c client.Client) UserService
Click to show internal directories.
Click to hide internal directories.