config

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProcessorObscure = ".need_obscure"
)
View Source
const (
	StorageSection = "storage"
)

Variables

This section is empty.

Functions

func InitGlobal

func InitGlobal(configFile string) error

Types

type Config

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

func GetGlobal

func GetGlobal() *Config

func NewConfig

func NewConfig(path string) (*Config, error)

func NewStaticConfig

func NewStaticConfig(content map[string]map[string]string) (*Config, error)

func (*Config) Get

func (c *Config) Get(section string, key string) (string, bool)

func (*Config) GetAll

func (c *Config) GetAll(section string) map[string]string

Jump to

Keyboard shortcuts

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