Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewUserFactory)
Functions ¶
This section is empty.
Types ¶
type ChangePasswordReq ¶
type ChangePasswordReq pb.ChangePasswordRequest
type CurrentUser ¶
type IRepoUser ¶
type IRepoUser interface { Create(ctx context.Context, user *User) error Update(ctx context.Context, id int64, updateFields map[string]interface{}) error Delete(ctx context.Context, user *User) error GetByUsername(ctx context.Context, username string) (*User, error) GetByID(ctx context.Context, id int64) (*User, error) }
type Interface ¶
type Interface interface { SignUp(ctx context.Context, user *User) error GetCurrentUser(ctx context.Context) (user selfJwt.CurrentUser, err error) Login(ctx context.Context, username, password string) (string, error) ChangePassword(ctx context.Context, req *ChangePasswordReq) error GetUserByUsername(ctx context.Context, username string) (*User, error) }
func NewDefaultUser ¶
Click to show internal directories.
Click to hide internal directories.