apikeys

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIKeys

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

func New

func New(entries ...Entry) *APIKeys

func (*APIKeys) Get

func (a *APIKeys) Get(apikey string) (e Entry, ok bool)

func (*APIKeys) Groups

func (a *APIKeys) Groups(apikey string) (groups []string)

type Entry

type Entry struct {
	// Name of the Entry, this is optional and is just used to make entries
	// easier to differ between.
	Name string `json:"name"`
	// APIKey of entry
	APIKey string `json:"apikey"`
	// Groups entry is a part of
	Groups []string `json:"groups"`
}

Jump to

Keyboard shortcuts

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