statickeyauth

package
v0.0.0-...-e81be6b Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2023 License: GPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StaticKeyAuth

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

func NewStaticKeyAuth

func NewStaticKeyAuth(srv *server.Server) *StaticKeyAuth

func (*StaticKeyAuth) Init

func (skmodule *StaticKeyAuth) Init(cfg module.ModuleConfig) error

func (*StaticKeyAuth) IsRunning

func (skmodule *StaticKeyAuth) IsRunning() bool

func (*StaticKeyAuth) PrerequisiteModules

func (skmodule *StaticKeyAuth) PrerequisiteModules() []string

func (*StaticKeyAuth) Start

func (skmodule *StaticKeyAuth) Start() error

func (*StaticKeyAuth) Stop

func (skmodule *StaticKeyAuth) Stop() error

type StaticKeyAuthImpl

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

func NewStaticKeyAuthImpl

func NewStaticKeyAuthImpl(srv *server.Server) *StaticKeyAuthImpl

func (*StaticKeyAuthImpl) Init

func (auth *StaticKeyAuthImpl) Init(apiKey string, anonymousCidr string) error

func (*StaticKeyAuthImpl) IsAuthorized

func (auth *StaticKeyAuthImpl) IsAuthorized(ctx context.Context, request *http.Request) bool

func (*StaticKeyAuthImpl) Preprocess

func (auth *StaticKeyAuthImpl) Preprocess(ctx context.Context, req *http.Request) (context.Context, int, error)

func (*StaticKeyAuthImpl) PreprocessPriority

func (auth *StaticKeyAuthImpl) PreprocessPriority() int

Jump to

Keyboard shortcuts

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