key_managers

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiKeyManager

type ApiKeyManager struct {
	ContextAdapter interfaces.ApiKeyContextAdapter
	Keys           []*models.ApiKey
}

func EmptyApiKeyManager

func EmptyApiKeyManager() *ApiKeyManager

func GetApiKeyManager

func GetApiKeyManager() *ApiKeyManager

func (*ApiKeyManager) Add

func (apiKeyManager *ApiKeyManager) Add(key string, value string) error

func (*ApiKeyManager) Get

func (apiKeyManager *ApiKeyManager) Get(key string) (*models.ApiKey, error)

Jump to

Keyboard shortcuts

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