config

package
v0.0.0-...-13e6371 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2021 License: MIT Imports: 4 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 {
	Host     string
	Port     string
	Database struct {
		Engine string
		Sqlite struct {
			Path      string
			CacheSize int
		}
		PostgreSQL struct {
			URL string
		}
	}
	Translator map[string]TranslatorConfig
}

func NewConfig

func NewConfig() *Config

func (*Config) Load

func (c *Config) Load(configPath string) error

func (*Config) Save

func (c *Config) Save(configPath string)

type TranslatorConfig

type TranslatorConfig struct {
	Enabled  bool
	Priority int
	Key      string
}

Jump to

Keyboard shortcuts

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