apikey

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiKeyLoader

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

func (*ApiKeyLoader) Init

func (a *ApiKeyLoader) Init(args ...any) (loader.Library, error)

func (*ApiKeyLoader) Name

func (a *ApiKeyLoader) Name() string

func (*ApiKeyLoader) SetName

func (a *ApiKeyLoader) SetName(name string)

type ApiKeyValidator

type ApiKeyValidator struct {
	Header string
	Prefix string
	Key    string
}

func NewApiKeyValidator

func NewApiKeyValidator(config config.AuthConfig) *ApiKeyValidator

func (*ApiKeyValidator) GetValue

func (a *ApiKeyValidator) GetValue() string

func (*ApiKeyValidator) Name

func (a *ApiKeyValidator) Name() string

func (*ApiKeyValidator) ValidateKey

func (a *ApiKeyValidator) ValidateKey(ctx *fiber.Ctx) error

func (*ApiKeyValidator) VerifyUser

func (a *ApiKeyValidator) VerifyUser(ctx *fiber.Ctx, userKey string, userInfo auth.IUserAuthInfo) (bool, error)

Jump to

Keyboard shortcuts

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