Documentation
¶
Index ¶
Constants ¶
View Source
const ( AuthorizationHeaderKey = "Authorization" AuthorizationType = "Bearer" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Middleware ¶
type Middleware interface { // KeyCloakOAuth はKeyCloakのOAuth認証を行うミドルウェアを返す KeyCloakOAuth(h http.HandlerFunc) http.HandlerFunc // Integrate は環境に応じたミドルウェアを返す Integrate(h http.HandlerFunc) http.Handler // Recover はpanicをrecoverするミドルウェアを返す Recover(h http.Handler) http.Handler // AccessLogger はアクセスログを出力するミドルウェアを返す AccessLogger(h http.Handler) http.Handler // AllowAllOrigins は全てのオリジンからのリクエストを許可するミドルウェアを返す AllowAllOrigins(h http.Handler) http.Handler // CorsWithEnv は環境に応じたCORS設定を行うミドルウェアを返す CorsWithEnv(h http.Handler) http.Handler }
func NewMiddleware ¶
func NewMiddleware() Middleware
Click to show internal directories.
Click to hide internal directories.