config

package
v0.0.0-...-2c81ee5 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Host

func Host() string

func LoadConfig

func LoadConfig(path string) error

func LoadValue

func LoadValue(name string) error

func Logger

func Logger() string

func Names

func Names() []string

func Port

func Port() int

Types

type Config

type Config struct {
	Logger string   `yaml:"logger"`
	Names  []string `yaml:"names"`
	Server
}

type Server

type Server struct {
	Host string `yaml:"host"`
	Port int    `yaml:"port"`
}

Jump to

Keyboard shortcuts

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