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) Name ¶
func (a *ApiKeyLoader) Name() string
func (*ApiKeyLoader) SetName ¶
func (a *ApiKeyLoader) SetName(name string)
type ApiKeyValidator ¶
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)
Click to show internal directories.
Click to hide internal directories.