publicapi

package
v2.2.8-ent2-rc3+incomp... Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2019 License: Apache-2.0 Imports: 38 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CookieName = "R_SESS"
)

Variables

This section is empty.

Functions

func NewHandler

func NewHandler(ctx context.Context, mgmtCtx *config.ScaledContext) (http.Handler, error)

Types

type AuthLimiter

type AuthLimiter struct {
	// contains filtered or unexported fields
}

AuthLimiter can only work for local auth provider

func (*AuthLimiter) LimitByUser

func (al *AuthLimiter) LimitByUser(key string, request *types.APIContext) error

func (*AuthLimiter) MarkFailure

func (al *AuthLimiter) MarkFailure(key string, request *types.APIContext) int

type IPRateLimiter

type IPRateLimiter struct {
	// contains filtered or unexported fields
}

IPRateLimiter .

func (*IPRateLimiter) LimitByRequest

func (i *IPRateLimiter) LimitByRequest(request *types.APIContext) error

Jump to

Keyboard shortcuts

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