Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Configuration ¶
type Configuration struct { API struct { Host string Port int `envconfig:"PORT" default:"8080"` } JWT JWTConfiguration `json:"jwt"` }
Configuration holds configuration struct
type JWTConfiguration ¶
type JWTConfiguration struct { Secret string `json:"secret" required:"true"` Exp time.Duration `json:"exp" required:"true" default:"3600s"` }
JWTConfiguration holds all the JWT related configuration
Click to show internal directories.
Click to hide internal directories.