config

package
v0.0.0-...-2427ed4 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2023 License: MIT Imports: 6 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 {
	Web  *WebConfig      `yaml:"server"`
	DB   *DatabaseConfig `yaml:"db"`
	Auth *ServiceAuth    `yaml:"auth"`
}

func GetConfig

func GetConfig() *Config

type DatabaseConfig

type DatabaseConfig struct {
	Host     string `yaml:"host"`
	Port     int    `yaml:"port"`
	Name     string `yaml:"name"`
	User     string `yaml:"user"`
	Password string `yaml:"password"`
}

type ServiceAuth

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

type WebConfig

type WebConfig 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