Documentation
¶
Index ¶
- Constants
- type Auth
- func (auth *Auth) Init(publicKeyFilePath string, privateKeyFilePath string) error
- func (auth *Auth) InitForAuth(publicKeyFilePath string) error
- func (auth *Auth) Middleware() func(http.Handler) http.Handler
- func (auth *Auth) SignToken(userId string, expireDuration time.Duration) (jwtToken string, err error)
- func (auth *Auth) UserFromJwt(tokenString string) (user *User, err error)
- type User
Constants ¶
View Source
const (
AuthUtilErrorHttpHeaderAuthorizationInvalid = "http header: Authorization's value invalid"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.