Versions in this module Expand all Collapse all v2 v2.3.3 Mar 12, 2021 Changes in this version + var File_proto_user_user_proto protoreflect.FileDescriptor + func NewUserEndpoints() []*api.Endpoint + func RegisterUserHandler(s server.Server, hdlr UserHandler, opts ...server.HandlerOption) error + type ConfigReq struct + Configs string + Id uint32 + UserID uint32 + func (*ConfigReq) Descriptor() ([]byte, []int) + func (*ConfigReq) ProtoMessage() + func (x *ConfigReq) GetConfigs() string + func (x *ConfigReq) GetId() uint32 + func (x *ConfigReq) GetUserID() uint32 + func (x *ConfigReq) ProtoReflect() protoreflect.Message + func (x *ConfigReq) Reset() + func (x *ConfigReq) String() string + type ConfigResp struct + Configs string + Id uint32 + UserID uint32 + func (*ConfigResp) Descriptor() ([]byte, []int) + func (*ConfigResp) ProtoMessage() + func (x *ConfigResp) GetConfigs() string + func (x *ConfigResp) GetId() uint32 + func (x *ConfigResp) GetUserID() uint32 + func (x *ConfigResp) ProtoReflect() protoreflect.Message + func (x *ConfigResp) Reset() + func (x *ConfigResp) String() string + type DeleteResp struct + func (*DeleteResp) Descriptor() ([]byte, []int) + func (*DeleteResp) ProtoMessage() + func (x *DeleteResp) ProtoReflect() protoreflect.Message + func (x *DeleteResp) Reset() + func (x *DeleteResp) String() string + type IdReq struct + Id uint32 + func (*IdReq) Descriptor() ([]byte, []int) + func (*IdReq) ProtoMessage() + func (x *IdReq) GetId() uint32 + func (x *IdReq) ProtoReflect() protoreflect.Message + func (x *IdReq) Reset() + func (x *IdReq) String() string + type InitializeReq struct + Email string + Password string + PhoneNumber string + Routes string + UserName string + func (*InitializeReq) Descriptor() ([]byte, []int) + func (*InitializeReq) ProtoMessage() + func (x *InitializeReq) GetEmail() string + func (x *InitializeReq) GetPassword() string + func (x *InitializeReq) GetPhoneNumber() string + func (x *InitializeReq) GetRoutes() string + func (x *InitializeReq) GetUserName() string + func (x *InitializeReq) ProtoReflect() protoreflect.Message + func (x *InitializeReq) Reset() + func (x *InitializeReq) String() string + type InitializeResp struct + func (*InitializeResp) Descriptor() ([]byte, []int) + func (*InitializeResp) ProtoMessage() + func (x *InitializeResp) ProtoReflect() protoreflect.Message + func (x *InitializeResp) Reset() + func (x *InitializeResp) String() string + type InitializedResp struct + Initialized bool + func (*InitializedResp) Descriptor() ([]byte, []int) + func (*InitializedResp) ProtoMessage() + func (x *InitializedResp) GetInitialized() bool + func (x *InitializedResp) ProtoReflect() protoreflect.Message + func (x *InitializedResp) Reset() + func (x *InitializedResp) String() string + type Nop struct + func (*Nop) Descriptor() ([]byte, []int) + func (*Nop) ProtoMessage() + func (x *Nop) ProtoReflect() protoreflect.Message + func (x *Nop) Reset() + func (x *Nop) String() string + type Parameter struct + Key string + Value string + func (*Parameter) Descriptor() ([]byte, []int) + func (*Parameter) ProtoMessage() + func (x *Parameter) GetKey() string + func (x *Parameter) GetValue() string + func (x *Parameter) ProtoReflect() protoreflect.Message + func (x *Parameter) Reset() + func (x *Parameter) String() string + type Query struct + Limit uint32 + Offset uint32 + Page uint32 + PerPage uint32 + QueryParams []*Parameter + QueryString string + func (*Query) Descriptor() ([]byte, []int) + func (*Query) ProtoMessage() + func (x *Query) GetLimit() uint32 + func (x *Query) GetOffset() uint32 + func (x *Query) GetPage() uint32 + func (x *Query) GetPerPage() uint32 + func (x *Query) GetQueryParams() []*Parameter + func (x *Query) GetQueryString() string + func (x *Query) ProtoReflect() protoreflect.Message + func (x *Query) Reset() + func (x *Query) String() string + type ResetReq struct + Newpassword string + Oldpassword string + UserID uint32 + func (*ResetReq) Descriptor() ([]byte, []int) + func (*ResetReq) ProtoMessage() + func (x *ResetReq) GetNewpassword() string + func (x *ResetReq) GetOldpassword() string + func (x *ResetReq) GetUserID() uint32 + func (x *ResetReq) ProtoReflect() protoreflect.Message + func (x *ResetReq) Reset() + func (x *ResetReq) String() string + type ResetResp struct + func (*ResetResp) Descriptor() ([]byte, []int) + func (*ResetResp) ProtoMessage() + func (x *ResetResp) ProtoReflect() protoreflect.Message + func (x *ResetResp) Reset() + func (x *ResetResp) String() string + type SigninReq struct + Password string + PhoneNumber string + func (*SigninReq) Descriptor() ([]byte, []int) + func (*SigninReq) ProtoMessage() + func (x *SigninReq) GetPassword() string + func (x *SigninReq) GetPhoneNumber() string + func (x *SigninReq) ProtoReflect() protoreflect.Message + func (x *SigninReq) Reset() + func (x *SigninReq) String() string + type SignoutReq struct + UserID uint32 + func (*SignoutReq) Descriptor() ([]byte, []int) + func (*SignoutReq) ProtoMessage() + func (x *SignoutReq) GetUserID() uint32 + func (x *SignoutReq) ProtoReflect() protoreflect.Message + func (x *SignoutReq) Reset() + func (x *SignoutReq) String() string + type SignoutResp struct + func (*SignoutResp) Descriptor() ([]byte, []int) + func (*SignoutResp) ProtoMessage() + func (x *SignoutResp) ProtoReflect() protoreflect.Message + func (x *SignoutResp) Reset() + func (x *SignoutResp) String() string + type SignupReq struct + Email string + Password string + PhoneNumber string + Role uint32 + UserName string + func (*SignupReq) Descriptor() ([]byte, []int) + func (*SignupReq) ProtoMessage() + func (x *SignupReq) GetEmail() string + func (x *SignupReq) GetPassword() string + func (x *SignupReq) GetPhoneNumber() string + func (x *SignupReq) GetRole() uint32 + func (x *SignupReq) GetUserName() string + func (x *SignupReq) ProtoReflect() protoreflect.Message + func (x *SignupReq) Reset() + func (x *SignupReq) String() string + type SignupResp struct + func (*SignupResp) Descriptor() ([]byte, []int) + func (*SignupResp) ProtoMessage() + func (x *SignupResp) ProtoReflect() protoreflect.Message + func (x *SignupResp) Reset() + func (x *SignupResp) String() string + type TokenReq struct + Token string + func (*TokenReq) Descriptor() ([]byte, []int) + func (*TokenReq) ProtoMessage() + func (x *TokenReq) GetToken() string + func (x *TokenReq) ProtoReflect() protoreflect.Message + func (x *TokenReq) Reset() + func (x *TokenReq) String() string + type UpdateReq struct + Email string + PhoneNumber string + Role uint32 + Routes string + Token string + UserID uint32 + UserName string + func (*UpdateReq) Descriptor() ([]byte, []int) + func (*UpdateReq) ProtoMessage() + func (x *UpdateReq) GetEmail() string + func (x *UpdateReq) GetPhoneNumber() string + func (x *UpdateReq) GetRole() uint32 + func (x *UpdateReq) GetRoutes() string + func (x *UpdateReq) GetToken() string + func (x *UpdateReq) GetUserID() uint32 + func (x *UpdateReq) GetUserName() string + func (x *UpdateReq) ProtoReflect() protoreflect.Message + func (x *UpdateReq) Reset() + func (x *UpdateReq) String() string + type UserHandler interface + DeleteConfig func(context.Context, *ConfigReq, *ConfigResp) error + DeleteUser func(context.Context, *IdReq, *DeleteResp) error + GetConfig func(context.Context, *ConfigReq, *ConfigResp) error + GetUser func(context.Context, *IdReq, *UserResp) error + GetUserByToken func(context.Context, *TokenReq, *UserResp) error + GetUsers func(context.Context, *Query, *UsersResp) error + Initialize func(context.Context, *InitializeReq, *InitializeResp) error + Initialized func(context.Context, *Nop, *InitializedResp) error + Reset func(context.Context, *ResetReq, *ResetResp) error + SaveConfig func(context.Context, *ConfigReq, *ConfigResp) error + Signin func(context.Context, *SigninReq, *UserResp) error + Signout func(context.Context, *SignoutReq, *SignoutResp) error + Signup func(context.Context, *SignupReq, *SignupResp) error + Update func(context.Context, *UpdateReq, *UserResp) error + type UserResp struct + Email string + PhoneNumber string + Role uint32 + Token string + UserID uint32 + UserName string + func (*UserResp) Descriptor() ([]byte, []int) + func (*UserResp) ProtoMessage() + func (x *UserResp) GetEmail() string + func (x *UserResp) GetPhoneNumber() string + func (x *UserResp) GetRole() uint32 + func (x *UserResp) GetToken() string + func (x *UserResp) GetUserID() uint32 + func (x *UserResp) GetUserName() string + func (x *UserResp) ProtoReflect() protoreflect.Message + func (x *UserResp) Reset() + func (x *UserResp) String() string + type UserService interface + DeleteConfig func(ctx context.Context, in *ConfigReq, opts ...client.CallOption) (*ConfigResp, error) + DeleteUser func(ctx context.Context, in *IdReq, opts ...client.CallOption) (*DeleteResp, error) + GetConfig func(ctx context.Context, in *ConfigReq, opts ...client.CallOption) (*ConfigResp, error) + GetUser func(ctx context.Context, in *IdReq, opts ...client.CallOption) (*UserResp, error) + GetUserByToken func(ctx context.Context, in *TokenReq, opts ...client.CallOption) (*UserResp, error) + GetUsers func(ctx context.Context, in *Query, opts ...client.CallOption) (*UsersResp, error) + Initialize func(ctx context.Context, in *InitializeReq, opts ...client.CallOption) (*InitializeResp, error) + Initialized func(ctx context.Context, in *Nop, opts ...client.CallOption) (*InitializedResp, error) + Reset func(ctx context.Context, in *ResetReq, opts ...client.CallOption) (*ResetResp, error) + SaveConfig func(ctx context.Context, in *ConfigReq, opts ...client.CallOption) (*ConfigResp, error) + Signin func(ctx context.Context, in *SigninReq, opts ...client.CallOption) (*UserResp, error) + Signout func(ctx context.Context, in *SignoutReq, opts ...client.CallOption) (*SignoutResp, error) + Signup func(ctx context.Context, in *SignupReq, opts ...client.CallOption) (*SignupResp, error) + Update func(ctx context.Context, in *UpdateReq, opts ...client.CallOption) (*UserResp, error) + func NewUserService(name string, c client.Client) UserService + type UsersResp struct + Currpages uint32 + Totalpages uint32 + Totals uint32 + Users []*UserResp + func (*UsersResp) Descriptor() ([]byte, []int) + func (*UsersResp) ProtoMessage() + func (x *UsersResp) GetCurrpages() uint32 + func (x *UsersResp) GetTotalpages() uint32 + func (x *UsersResp) GetTotals() uint32 + func (x *UsersResp) GetUsers() []*UserResp + func (x *UsersResp) ProtoReflect() protoreflect.Message + func (x *UsersResp) Reset() + func (x *UsersResp) String() string