conf

package
v0.0.0-...-c76e3b1 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conf

type Conf struct {
	Service struct {
		Port uint16 `yaml:"port"`
	} `yaml:"service"`
	Postgres struct {
		Host     string `yaml:"host"`
		Port     uint16 `yaml:"port"`
		Name     string `yaml:"name"`
		Username string `yaml:"username"`
		Password string `yaml:"password"`
	} `yaml:"postgres"`
	Redis struct {
		Url string `yaml:"url"`
	} `yaml:"redis"`
	Log struct {
		Level   string `yaml:"level"`
		Handler string `yaml:"handler"`
	} `yaml:"log"`
}

func New

func New(localPath string) (*Conf, error)

Jump to

Keyboard shortcuts

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