Documentation ¶
Index ¶
- Variables
- func RegisterUserService(s server.Service, svr UserService)
- func UserService_GetAccountByUserName_Handler(svr interface{}, ctx context.Context, f server.FilterFunc) (interface{}, error)
- type GetAccountByUserNameRequest
- func (*GetAccountByUserNameRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetAccountByUserNameRequest) GetMetadata() *common.Metadata
- func (x *GetAccountByUserNameRequest) GetUsername() string
- func (*GetAccountByUserNameRequest) ProtoMessage()
- func (x *GetAccountByUserNameRequest) ProtoReflect() protoreflect.Message
- func (x *GetAccountByUserNameRequest) Reset()
- func (x *GetAccountByUserNameRequest) String() string
- type GetAccountByUserNameResponse
- func (*GetAccountByUserNameResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetAccountByUserNameResponse) GetCreateTsSec() int64
- func (x *GetAccountByUserNameResponse) GetErrCode() int32
- func (x *GetAccountByUserNameResponse) GetErrMsg() string
- func (x *GetAccountByUserNameResponse) GetPasswordHash() string
- func (x *GetAccountByUserNameResponse) GetUserId() string
- func (x *GetAccountByUserNameResponse) GetUsername() string
- func (*GetAccountByUserNameResponse) ProtoMessage()
- func (x *GetAccountByUserNameResponse) ProtoReflect() protoreflect.Message
- func (x *GetAccountByUserNameResponse) Reset()
- func (x *GetAccountByUserNameResponse) String() string
- type UnimplementedUser
- type UserClientProxy
- type UserClientProxyImpl
- type UserService
Constants ¶
This section is empty.
Variables ¶
View Source
var File_user_proto protoreflect.FileDescriptor
View Source
var NewUserClientProxy = func(opts ...client.Option) UserClientProxy { return &UserClientProxyImpl{client: client.DefaultClient, opts: opts} }
View Source
var UserServer_ServiceDesc = server.ServiceDesc{ ServiceName: "demo.account.User", HandlerType: ((*UserService)(nil)), Methods: []server.Method{ { Name: "/demo.account.User/GetAccountByUserName", Func: UserService_GetAccountByUserName_Handler, }, }, }
UserServer_ServiceDesc descriptor for server.RegisterService.
Functions ¶
func RegisterUserService ¶
func RegisterUserService(s server.Service, svr UserService)
RegisterUserService registers service.
func UserService_GetAccountByUserName_Handler ¶
func UserService_GetAccountByUserName_Handler(svr interface{}, ctx context.Context, f server.FilterFunc) (interface{}, error)
Types ¶
type GetAccountByUserNameRequest ¶
type GetAccountByUserNameRequest struct { Metadata *common.Metadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` // contains filtered or unexported fields }
func (*GetAccountByUserNameRequest) Descriptor
deprecated
func (*GetAccountByUserNameRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetAccountByUserNameRequest.ProtoReflect.Descriptor instead.
func (*GetAccountByUserNameRequest) GetMetadata ¶
func (x *GetAccountByUserNameRequest) GetMetadata() *common.Metadata
func (*GetAccountByUserNameRequest) GetUsername ¶
func (x *GetAccountByUserNameRequest) GetUsername() string
func (*GetAccountByUserNameRequest) ProtoMessage ¶
func (*GetAccountByUserNameRequest) ProtoMessage()
func (*GetAccountByUserNameRequest) ProtoReflect ¶
func (x *GetAccountByUserNameRequest) ProtoReflect() protoreflect.Message
func (*GetAccountByUserNameRequest) Reset ¶
func (x *GetAccountByUserNameRequest) Reset()
func (*GetAccountByUserNameRequest) String ¶
func (x *GetAccountByUserNameRequest) String() string
type GetAccountByUserNameResponse ¶
type GetAccountByUserNameResponse struct { ErrCode int32 `protobuf:"varint,1,opt,name=err_code,json=errCode,proto3" json:"err_code"` ErrMsg string `protobuf:"bytes,2,opt,name=err_msg,json=errMsg,proto3" json:"err_msg,omitempty"` UserId string `protobuf:"bytes,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` Username string `protobuf:"bytes,4,opt,name=username,proto3" json:"username,omitempty"` PasswordHash string `protobuf:"bytes,5,opt,name=password_hash,json=passwordHash,proto3" json:"password_hash,omitempty"` CreateTsSec int64 `protobuf:"varint,6,opt,name=create_ts_sec,json=createTsSec,proto3" json:"create_ts_sec,omitempty"` // contains filtered or unexported fields }
func (*GetAccountByUserNameResponse) Descriptor
deprecated
func (*GetAccountByUserNameResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetAccountByUserNameResponse.ProtoReflect.Descriptor instead.
func (*GetAccountByUserNameResponse) GetCreateTsSec ¶
func (x *GetAccountByUserNameResponse) GetCreateTsSec() int64
func (*GetAccountByUserNameResponse) GetErrCode ¶
func (x *GetAccountByUserNameResponse) GetErrCode() int32
func (*GetAccountByUserNameResponse) GetErrMsg ¶
func (x *GetAccountByUserNameResponse) GetErrMsg() string
func (*GetAccountByUserNameResponse) GetPasswordHash ¶
func (x *GetAccountByUserNameResponse) GetPasswordHash() string
func (*GetAccountByUserNameResponse) GetUserId ¶
func (x *GetAccountByUserNameResponse) GetUserId() string
func (*GetAccountByUserNameResponse) GetUsername ¶
func (x *GetAccountByUserNameResponse) GetUsername() string
func (*GetAccountByUserNameResponse) ProtoMessage ¶
func (*GetAccountByUserNameResponse) ProtoMessage()
func (*GetAccountByUserNameResponse) ProtoReflect ¶
func (x *GetAccountByUserNameResponse) ProtoReflect() protoreflect.Message
func (*GetAccountByUserNameResponse) Reset ¶
func (x *GetAccountByUserNameResponse) Reset()
func (*GetAccountByUserNameResponse) String ¶
func (x *GetAccountByUserNameResponse) String() string
type UnimplementedUser ¶
type UnimplementedUser struct{}
func (*UnimplementedUser) GetAccountByUserName ¶
func (s *UnimplementedUser) GetAccountByUserName(ctx context.Context, req *GetAccountByUserNameRequest) (*GetAccountByUserNameResponse, error)
type UserClientProxy ¶
type UserClientProxy interface {
GetAccountByUserName(ctx context.Context, req *GetAccountByUserNameRequest, opts ...client.Option) (rsp *GetAccountByUserNameResponse, err error)
}
UserClientProxy defines service client proxy
type UserClientProxyImpl ¶
type UserClientProxyImpl struct {
// contains filtered or unexported fields
}
func (*UserClientProxyImpl) GetAccountByUserName ¶
func (c *UserClientProxyImpl) GetAccountByUserName(ctx context.Context, req *GetAccountByUserNameRequest, opts ...client.Option) (*GetAccountByUserNameResponse, error)
type UserService ¶
type UserService interface {
GetAccountByUserName(ctx context.Context, req *GetAccountByUserNameRequest) (*GetAccountByUserNameResponse, error)
}
UserService defines service.
Click to show internal directories.
Click to hide internal directories.