config

package
v0.0.0-...-5add7d8 Latest Latest
Warning

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

Go to latest
Published: May 17, 2023 License: MIT Imports: 5 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 {
	Debug    bool          `yaml:"debug"`
	DemoMode bool          `yaml:"demo_mode"`
	Server   ServerConfig  `yaml:"server"`
	Dialogs  DialogsConfig `yaml:"dialogs"`
}

func LoadConfig

func LoadConfig() (*Config, error)

type DialogsConfig

type DialogsConfig struct {
	Timeout int64 `yaml:"timeout"`
}

type ServerConfig

type ServerConfig struct {
	Debug   bool
	Address string `yaml:"address"`
}

Jump to

Keyboard shortcuts

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