config

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2025 License: Apache-2.0 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 {
	Postgres Postgres `yaml:"postgres"`
	Server   Server   `yaml:"server"`
}

func MustConfig

func MustConfig(p *string) *Config

func New

func New() *Config

type Postgres

type Postgres struct {
	Host     string `yaml:"host"`
	User     string `yaml:"user"`
	Password string `yaml:"password"`
	DBName   string `yaml:"dbname"`
	Port     int    `yaml:"port"`
}

func (Postgres) String

func (p Postgres) String() string

type Server

type Server struct {
	Host    string        `yaml:"host"`
	Port    int           `yaml:"port"`
	TimeOut time.Duration `yaml:"timeout"`
}

func (Server) String

func (s Server) String() string

Jump to

Keyboard shortcuts

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