entry

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrBadConfigurator = "configurator nil or invalid, cannot continue"
	ErrNoConfigure     = "unable to find or create config for this service. To create one, please run %s -conf"
	ErrNoSuchKey       = "no such key"
	ErrNoEntries       = "unable to find config entry for this service"
	ErrMultiEntries    = "config contains duplicate entries for this service. Please edit your altid/config file"
)

Errors

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry struct {
	Key   string
	Value any
}

func Find

func Find(req *request.Request, entries []*Entry) (*Entry, bool)

func FromConfig

func FromConfig(debug func(string, ...any), service string, cf string) ([]*Entry, error)

func (*Entry) String added in v0.1.5

func (item *Entry) String() string

Jump to

Keyboard shortcuts

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