Documentation ¶
Index ¶
- Constants
- func DelTokeStrng(tokenString string) error
- func DelTokenCtx(ctx context.Context, app, device, id string) error
- func GenToken(id, app, name, kind, username, device string, duration time.Duration) (string, error)
- func GenTokenCtx(ctx context.Context, id, app, name, kind, username, device string, ...) (string, error)
- func GetClient(r *http.Request) e.Json
- func TokenKey(app, device, id string) string
- type Claim
Constants ¶
View Source
const ( MSG_TOKEN_INVALID = "Token invalido" MSG_TOKEN_INVALID_ATRIB = "Token invalido, atrib (%s)" MSG_REQUIRED_INVALID = "Solicitud invalida" )
Variables ¶
This section is empty.
Functions ¶
func DelTokeStrng ¶ added in v0.0.34
func GenTokenCtx ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.