config

package
v0.0.0-...-8ac0947 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2025 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

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

func NewConfiguration

func NewConfiguration(
	filename string,
	em *events.EventManager,
) (*Config, error)

func (*Config) GetSection

func (c *Config) GetSection(section string) (map[interface{}]interface{}, error)

func (*Config) Load

func (c *Config) Load() error

func (*Config) Save

func (c *Config) Save() error

func (*Config) Update

func (c *Config) Update(section string, key string, value interface{}) error

type Configuration

type Configuration interface {
	Load() error
	Save() error
	Update(string, string, interface{}) error
}

Jump to

Keyboard shortcuts

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