//
pkg.gl
Category
github.com/vuduongtp/go-core
internal
api
auth
package
1.0.2
Repository:
https://github.com/vuduongtp/go-core.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
8
Dependents
1
Files
154 SLOC
#
Functions
New
New creates new auth service.
NewHTTP
NewHTTP creates new auth http service.
#
Variables
ErrInvalidCredentials
Custom errors.
ErrInvalidRefreshToken
Custom errors.
ErrUserBlocked
Custom errors.
#
Structs
Auth
Auth represents auth application service.
Credentials
Credentials represents login request data.
HTTP
HTTP represents auth http service.
RefreshTokenData
RefreshTokenData represents refresh token request data.
#
Interfaces
Crypter
Crypter represents security interface.
JWT
JWT represents token generator (jwt) interface.
Service
Service represents auth service interface.
UserDB
UserDB represents user repository interface.