routes

package
v0.0.0-...-efbf809 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 12, 2024 License: MIT Imports: 36 Imported by: 0

Documentation

Index

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 Cors

func Cors(cfg *config.Cors) func(http.Handler) http.Handler

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 InjectAuditLog

func InjectAuditLog(next http.Handler) http.Handler

func InjectConfig

func InjectConfig(cfg *config.Config) func(http.Handler) http.Handler

func InjectLogger

func InjectLogger() func(handler http.Handler) http.Handler

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 New

func New() http.Handler

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL