Documentation ¶
Index ¶
- Constants
- func NewAPIRouter(ctx context.Context, o APIRouterOptions) (*gin.Engine, error)
- func NoCacheMiddleware(c *gin.Context)
- func ValidateJWT(ctx context.Context, o APIRouterOptions, jwksURI string, nexodusJWKS string) (func(*gin.Context), error)
- type APIRouterOptions
- type Limiter
- type UserLimiters
Constants ¶
View Source
const AuthUserName string = "_nexodus.UserName"
key for username in gin.Context
Variables ¶
This section is empty.
Functions ¶
func NewAPIRouter ¶
func NoCacheMiddleware ¶
func ValidateJWT ¶
func ValidateJWT(ctx context.Context, o APIRouterOptions, jwksURI string, nexodusJWKS string) (func(*gin.Context), error)
Naive JWS Key validation
Types ¶
type APIRouterOptions ¶
type UserLimiters ¶
type UserLimiters struct { Single Limiter // contains filtered or unexported fields }
func NewUserLimiters ¶
func NewUserLimiters() *UserLimiters
func (*UserLimiters) Add ¶
func (c *UserLimiters) Add()
func (*UserLimiters) Done ¶
func (c *UserLimiters) Done() int32
Click to show internal directories.
Click to hide internal directories.