Versions in this module Expand all Collapse all v1 v1.0.0 Dec 5, 2022 Changes in this version + var ErrIntOverflowApi = fmt.Errorf("proto: integer overflow") + var ErrInvalidLengthApi = fmt.Errorf("proto: negative length found during unmarshaling") + var PathUserCard = "/user.api.User/Card" + var PathUserInfo = "/user.api.User/Info" + var UserErrCode_name = map[int32]string + var UserErrCode_value = map[string]int32 + var UserNotExist = ecode.New(-404) + var UserUpdateNameFailed = ecode.New(10000) + func RegisterUserBMServer(e *bm.Engine, server UserBMServer) + func RegisterUserServer(s *grpc.Server, srv UserServer) + type Info struct + Face string + Mid int64 + Name string + Sex string + Sign string + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*Info) Descriptor() ([]byte, []int) + func (*Info) ProtoMessage() + func (m *Info) GetFace() string + func (m *Info) GetMid() int64 + func (m *Info) GetName() string + func (m *Info) GetSex() string + func (m *Info) GetSign() string + func (m *Info) Marshal() (dAtA []byte, err error) + func (m *Info) MarshalTo(dAtA []byte) (int, error) + func (m *Info) Reset() + func (m *Info) Size() (n int) + func (m *Info) String() string + func (m *Info) Unmarshal(dAtA []byte) error + func (m *Info) XXX_DiscardUnknown() + func (m *Info) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Info) XXX_Merge(src proto.Message) + func (m *Info) XXX_Size() int + func (m *Info) XXX_Unmarshal(b []byte) error + type InfoReply struct + Info *Info + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*InfoReply) Descriptor() ([]byte, []int) + func (*InfoReply) ProtoMessage() + func (m *InfoReply) GetInfo() *Info + func (m *InfoReply) Marshal() (dAtA []byte, err error) + func (m *InfoReply) MarshalTo(dAtA []byte) (int, error) + func (m *InfoReply) Reset() + func (m *InfoReply) Size() (n int) + func (m *InfoReply) String() string + func (m *InfoReply) Unmarshal(dAtA []byte) error + func (m *InfoReply) XXX_DiscardUnknown() + func (m *InfoReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *InfoReply) XXX_Merge(src proto.Message) + func (m *InfoReply) XXX_Size() int + func (m *InfoReply) XXX_Unmarshal(b []byte) error + type UserBMServer interface + Card func(ctx context.Context, req *UserReq) (resp *google_protobuf1.Empty, err error) + Info func(ctx context.Context, req *UserReq) (resp *InfoReply, err error) + var UserSvc UserBMServer + type UserClient interface + Info func(ctx context.Context, in *UserReq, opts ...grpc.CallOption) (*InfoReply, error) + func NewUserClient(cc *grpc.ClientConn) UserClient + type UserErrCode int32 + const UserErrCode_OK + const UserErrCode_UserNotExist + const UserErrCode_UserUpdateNameFailed + func (UserErrCode) EnumDescriptor() ([]byte, []int) + func (x UserErrCode) String() string + type UserReq struct + Mid int64 + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*UserReq) Descriptor() ([]byte, []int) + func (*UserReq) ProtoMessage() + func (m *UserReq) GetMid() int64 + func (m *UserReq) Marshal() (dAtA []byte, err error) + func (m *UserReq) MarshalTo(dAtA []byte) (int, error) + func (m *UserReq) Reset() + func (m *UserReq) Size() (n int) + func (m *UserReq) String() string + func (m *UserReq) Unmarshal(dAtA []byte) error + func (m *UserReq) XXX_DiscardUnknown() + func (m *UserReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *UserReq) XXX_Merge(src proto.Message) + func (m *UserReq) XXX_Size() int + func (m *UserReq) XXX_Unmarshal(b []byte) error + type UserServer interface + Info func(context.Context, *UserReq) (*InfoReply, error)