config

package
v1.12.2 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ModeProd mode = "prod"
	ModeTest mode = "test"
)
View Source
const (
	DBConfigTypeSqlite   dbConfigType = "sqlite"
	DBConfigTypePostgres dbConfigType = "postgres"
	DBConfigTypeMemory   dbConfigType = "memory"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Mode    mode         `yaml:"mode"`
	Server  serverConfig `yaml:"server"`
	Twitch  twitchConfig `yaml:"twitch"`
	DB      dbConfig     `yaml:"db"`
	Version string       `yaml:"version"`
}

func Default

func Default() *Config

func New

func New(fname string) (*Config, error)

func Test

func Test() *Config

func (*Config) Redact

func (c *Config) Redact()

func (*Config) TwitchEnabled

func (c *Config) TwitchEnabled() bool

Jump to

Keyboard shortcuts

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