Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessService ¶
type AuthService ¶
type AuthService interface {
GetAccessToken(ctx context.Context, model model.UserJwt) (string, error)
GetRefreshToken(ctx context.Context, model model.UserJwt) (string, error)
VerifyRefreshToken(ctx context.Context, token string) (model.UserClaims, error)
VerifyAccessToken(ctx context.Context, token string) (model.UserClaims, error)
}
type UserService ¶
type UserService interface {
Create(ctx context.Context, info *model.UserInfo) (int64, error)
Get(ctx context.Context, id int64) (*model.User, error)
Delete(ctx context.Context, id int64) error
Update(ctx context.Context, info *model.User) error
GetByEmail(ctx context.Context, email string) (*model.User, error)
FindByName(ctx context.Context, name string) ([]*model.UserName, error)
}
Click to show internal directories.
Click to hide internal directories.