config

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2023 License: GPL-3.0 Imports: 1 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configurable

type Configurable interface {
	// the title of the configuration
	Name() string
	// the description of the configuration
	Description() string

	// the configuration form
	InputForm() (forms.InputForm, error)

	// retrieves the value of a key in the form. this will search
	// all groups within the form for the given key and will return
	// the value of the first input with the given key.
	GetValue(name string) (*string, error)

	// Get a copy of this Configurable instance
	Copy() (Configurable, error)

	// Returns whether the configuration is valid
	IsValid() bool

	// reset all configuration values to their defaults
	Reset()
}

Jump to

Keyboard shortcuts

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