Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTokenRepository ¶
func NewTokenRepository() repositories.TokenRepository
NewTokenRepository constructor
Types ¶
type TokenRepository ¶
TokenRepository struct
func (*TokenRepository) CheckUsername ¶
func (repository *TokenRepository) CheckUsername(username string, token string) bool
CheckUsername in redis
func (*TokenRepository) GenerateToken ¶
func (repository *TokenRepository) GenerateToken(username string) string
GenerateToken based in username from account
Click to show internal directories.
Click to hide internal directories.