config

package
Version: v0.0.0-...-41d89a1 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Default Config Manager
	DefaultConfig, _ = newConfig()
)

Functions

This section is empty.

Types

type Config

type Config interface {
	// Init initialises the configurator options
	Init(opts ...Option) error

	Options() Options

	GetString(string, string) string
	GetInt(string, int) int
	GetBool(string, bool) bool
	SetDefault(string, string) error
}

type Option

type Option func(options *Options)

type Options

type Options struct {
	ServiceName string
	Path        string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL