config

package
v0.0.0-...-e7feb91 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const ConfigPath = "./configs/local.yml"

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Db        DatabaseConfig  `mapstructure:"db"`
	Outputs   OutputsConfig   `mapstructure:"outputs"`
	Streaming StreamingConfig `mapstructure:"streaming"`
	Genres    []GenreConfig   `mapstructure:"genres"`
}
var Conf Config

type DatabaseConfig

type DatabaseConfig struct {
	Host string `mapstructure:"host"`
	Name string `mapstructure:"name"`
	User string `mapstructure:"user"`
}

type GenreConfig

type GenreConfig struct {
	Name   string   `mapstructure:"name"`
	Styles []string `mapstructure:"styles"`
}

type OutputsConfig

type OutputsConfig struct {
	PlayerConfig PlayerConfig `mapstructure:"player"`
}

type PlayerConfig

type PlayerConfig struct {
	Enabled    bool `mapstructure:"enabled"`
	AcceptPort int  `mapstructure:"port"`
}

type StreamingConfig

type StreamingConfig struct {
	Path   string      `mapstructure:"path"`
	Config interface{} `mapstructure:"config"`
}

Jump to

Keyboard shortcuts

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