Documentation ¶
Index ¶
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 NewAuth ¶
func NewAuth(cfg *config.Auth) *Authenticator
func (*Authenticator) GenerateJWT ¶
func (a *Authenticator) GenerateJWT(user *model.User) (string, error)
func (*Authenticator) GetMiddleware ¶
func (a *Authenticator) GetMiddleware() echo.MiddlewareFunc
Click to show internal directories.
Click to hide internal directories.