Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountUseCase ¶
type AccountUseCase interface { Login(ctx context.Context, cmd LoginCommand) (ticket string, failedCount uint32, err error) CreateToken(ctx context.Context, cmd CreateTokenCommand) (token string, err error) Authorize(ctx context.Context, cmd AuthorizeCommand) (*model.UserJWTClaims, error) }
func NewAccountUseCase ¶
func NewAccountUseCase(config AccountUseCaseConfig, redisManager manager.RedisManager, userService service.UserService) AccountUseCase
type AccountUseCaseConfig ¶
type AccountUseCaseConfig struct {
JWTKey string
}
type AuthorizeCommand ¶
type AuthorizeCommand struct {
Token string
}
type CreateTokenCommand ¶
type CreateTokenCommand struct {
Ticket string
}
type LoginCommand ¶
Click to show internal directories.
Click to hide internal directories.