router

package
v0.0.0-...-111623e Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultRouter

func DefaultRouter(options ...Option) *gin.Engine

Types

type Option

type Option func(r *gin.Engine)

func WithBasicAuth

func WithBasicAuth(auth gin.Accounts) Option

func WithDefaultCors

func WithDefaultCors(allowCredentials bool) Option

func WithJWTAuth

func WithJWTAuth() Option

func WithOIDC

func WithOIDC(o oidc.Oidc) Option

func WithTrustedProxies

func WithTrustedProxies(proxies []string) Option

WithTrustedProxies set trusted proxies

func WithoutTrustedProxies

func WithoutTrustedProxies() Option

WithoutTrustedProxies set trusted proxies to nil @see https://pkg.go.dev/github.com/gin-gonic/gin#readme-don-t-trust-all-proxies

Jump to

Keyboard shortcuts

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