Documentation ¶
Index ¶
- type AuthDB
- type Authenticator
- func (auth *Authenticator) AuthenticateToken(r *http.Request) (*core.Token, error)
- func (auth *Authenticator) CreateToken(userID uuid.UUID, timeToLife time.Duration) (*core.Token, error)
- func (auth *Authenticator) DeleteToken(token string) error
- func (auth *Authenticator) RefreshToken(token *core.Token) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authenticator ¶
type Authenticator struct {
// contains filtered or unexported fields
}
func NewAuthenticator ¶
func NewAuthenticator(authDB AuthDB) *Authenticator
func (*Authenticator) AuthenticateToken ¶
func (*Authenticator) CreateToken ¶
func (*Authenticator) DeleteToken ¶
func (auth *Authenticator) DeleteToken(token string) error
func (*Authenticator) RefreshToken ¶
func (auth *Authenticator) RefreshToken(token *core.Token) error
Click to show internal directories.
Click to hide internal directories.