Documentation ¶
Index ¶
- Variables
- func CompareHash(savedPassword, reqPassword string) error
- func ExtractIdempotencyKey(ctx context.Context) string
- func ExtractLogger(ctx context.Context) log.Logger
- func Hash(pass string) (string, error)
- func NewToken(t TokenType, data TokenData) (string, error)
- func ParseDuration(duration string, multiplier time.Duration) time.Duration
- func ParseToken(token string) (jwt.MapClaims, error)
- type ContextKey
- type TokenData
- type TokenType
Constants ¶
This section is empty.
Variables ¶
View Source
var KEY = os.Getenv("TOKEN_SECRET_KEY")
Functions ¶
func CompareHash ¶
func ExtractIdempotencyKey ¶
func ParseToken ¶
Types ¶
type ContextKey ¶
type ContextKey string
const ( LoggerKey ContextKey = "loggerKey" IdempotencyKey ContextKey = "idemKey" )
Click to show internal directories.
Click to hide internal directories.