conf

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrBadConfig = errors.New("internal/conf: bad config content")
)

Functions

This section is empty.

Types

type Config

type Config struct {
	Sys SystemConfig        `yaml:"sys"`
	Log logger.LoggerConfig `yaml:"log"`
	DB  db.DatabaseConfig   `yaml:"db"`
}

func LoadUlyssesConfig

func LoadUlyssesConfig(content []byte) (Config, error)

type SystemConfig

type SystemConfig struct {
	Host                        string `yaml:"api_host,omitempty"`
	Port                        uint16 `yaml:"api_port"`
	SystemTickPeriodMillisecond uint16 `yaml:"sys_tick_per_ms"` // 1~65535ms per system tick.
	UrlDomain                   string `yaml:"api_domain"`
	UrlPath                     string `yaml:"api_path"` // relative to api_domain. Should align with your WebUI setup.
}

Jump to

Keyboard shortcuts

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