Documentation ¶
Index ¶
- Constants
- func AuthenticationFunc(ctx context.Context, input *openapi3filter.AuthenticationInput) error
- func Cors(cfg *config.Cors) func(http.Handler) http.Handler
- func InjectAPIACL(apiDef *openapi3.T) func(http.HandlerFunc) http.HandlerFunc
- func InjectAPIDefinition(apiDef *openapi3.T) func(http.HandlerFunc) http.HandlerFunc
- func InjectAuditLog(next http.Handler) http.Handler
- func InjectConfig(cfg *config.Config) func(http.Handler) http.Handler
- func InjectLogger() func(handler http.Handler) http.Handler
- func JWTAuthHandlerFunc() func(http.HandlerFunc) http.HandlerFunc
- func JWTSecurityHandlerFunc(cfg *config.Auth) func(http.HandlerFunc) http.HandlerFunc
- func New() http.Handler
- func OpenAPI3Validator(apiDef *openapi3.T, op *openapi3filter.Options) func(http.Handler) http.Handler
- func OpenAPI3ValidatorHandlerFunc(apiDef *openapi3.T, op *openapi3filter.Options) func(http.HandlerFunc) http.HandlerFunc
Constants ¶
View Source
const (
JwtScopes = "jwt.Scopes"
)
Variables ¶
This section is empty.
Functions ¶
func AuthenticationFunc ¶
func AuthenticationFunc(ctx context.Context, input *openapi3filter.AuthenticationInput) error
func InjectAPIACL ¶
func InjectAPIACL(apiDef *openapi3.T) func(http.HandlerFunc) http.HandlerFunc
func InjectAPIDefinition ¶
func InjectAPIDefinition(apiDef *openapi3.T) func(http.HandlerFunc) http.HandlerFunc
func JWTAuthHandlerFunc ¶
func JWTAuthHandlerFunc() func(http.HandlerFunc) http.HandlerFunc
func(context.Context, *AuthenticationInput) error
func JWTSecurityHandlerFunc ¶
func JWTSecurityHandlerFunc(cfg *config.Auth) func(http.HandlerFunc) http.HandlerFunc
func OpenAPI3Validator ¶
func OpenAPI3Validator(apiDef *openapi3.T, op *openapi3filter.Options) func(http.Handler) http.Handler
OpenAPI3Validator kin-openapiを利用したvalidator
func OpenAPI3ValidatorHandlerFunc ¶
func OpenAPI3ValidatorHandlerFunc(apiDef *openapi3.T, op *openapi3filter.Options) func(http.HandlerFunc) http.HandlerFunc
OpenAPI3Validator kin-openapiを利用したvalidator
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
Package components provides primitives to interact with the openapi HTTP API.
|
Package components provides primitives to interact with the openapi HTTP API. |
Package root provides primitives to interact with the openapi HTTP API.
|
Package root provides primitives to interact with the openapi HTTP API. |
Click to show internal directories.
Click to hide internal directories.