Documentation ¶
Index ¶
- Variables
- type App
- func (a *App) CheckToken(tokenString string) (jwt.Claims, error)
- func (a *App) GenToken(id, login, role *string, status *string) (string, error)
- func (a *App) Init()
- func (a *App) Protect(next func(w http.ResponseWriter, r *http.Request), roles []string) func(w http.ResponseWriter, r *http.Request)
- func (a *App) Run(addrs string)
- func (a *App) ToSum256(s string) string
- type Config
- type ErrorMsg
- type Errs
- type Response
Constants ¶
This section is empty.
Variables ¶
View Source
var TokenSigningKey []byte
Functions ¶
This section is empty.
Types ¶
type App ¶
Click to show internal directories.
Click to hide internal directories.