Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIKeyAuthenticatedHandlerFunction ¶ added in v0.4.0
type APIKeyAuthenticatedHandlerFunction func(auth *token.AuthService, db *sql.DB, w http.ResponseWriter, r *http.Request)
type JWTAuthenticatedHandlerFunction ¶ added in v0.4.0
type JWTAuthenticatedHandlerFunction func(auth *token.AuthService, claims *token.UserClaims, db *sql.DB, w http.ResponseWriter, r *http.Request)
type Server ¶
type Server struct { Router *chi.Mux DB *sql.DB Config *config.Config TLSConfig *tls.Config Auth *token.AuthService Validator *token.ValidationService }
Server has router and db instances
type ServiceKeyAuthenticatedHandlerFunction ¶ added in v0.4.0
type ServiceKeyAuthenticatedHandlerFunction func(auth *token.AuthService, db *sql.DB, w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.