Documentation ¶
Index ¶
- type StaticKeyAuth
- type StaticKeyAuthImpl
- func (auth *StaticKeyAuthImpl) Init(apiKey string, anonymousCidr string) error
- func (auth *StaticKeyAuthImpl) IsAuthorized(ctx context.Context, request *http.Request) bool
- func (auth *StaticKeyAuthImpl) Preprocess(ctx context.Context, req *http.Request) (context.Context, int, error)
- func (auth *StaticKeyAuthImpl) PreprocessPriority() int
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 (*StaticKeyAuthImpl) Preprocess ¶
func (*StaticKeyAuthImpl) PreprocessPriority ¶
func (auth *StaticKeyAuthImpl) PreprocessPriority() int
Click to show internal directories.
Click to hide internal directories.