Documentation ¶
Index ¶
- Constants
- Variables
- func CloseTracing()
- func Environment() string
- func HandlePanic(w http.ResponseWriter)
- func InitAuth()
- func InitLogger()
- func InitRouter()
- func InitTracing()
- func JwtSecret() []byte
- func LoadEnv()
- func LogLevel() logrus.Level
- func Ping(res http.ResponseWriter, req *http.Request)
- func Port() string
- type JSONWebKeys
- type Jwks
Constants ¶
View Source
const ( //Http Server DEFAULT_PORT = ":8080" //Logger DEFAULT_LOG_LEVEL = "warning" //Environments ENV_PROD = "PROD" ENV_STAGE = "STAGE" ENV_TEST = "TEST" ENV_DEV = "DEV" ENV_LOCAL = "LOCAL" )
Variables ¶
View Source
var Authenticator *jwtmiddleware.JWTMiddleware
View Source
var JWTExtraValidation func(token *jwt.Token) error
View Source
var Router *myRouter
View Source
var Tracer trace.Tracer
Functions ¶
func CloseTracing ¶
func CloseTracing()
func Environment ¶
func Environment() string
func HandlePanic ¶
func HandlePanic(w http.ResponseWriter)
func InitLogger ¶
func InitLogger()
func InitRouter ¶
func InitRouter()
func InitTracing ¶
func InitTracing()
Types ¶
type JSONWebKeys ¶
type Jwks ¶
type Jwks struct {
Keys []JSONWebKeys `json:"keys"`
}
Click to show internal directories.
Click to hide internal directories.