config

package
v0.0.0-...-d473fd6 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const Default = `
db:
  host: 127.0.0.1
  port: "5432"
  user: song
  dbname: song
  password: song
  sslmode: disable
`

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Database Database `mapstructure:"db"`
}

func Read

func Read() Config

type Database

type Database struct {
	Host     string `mapstructure:"host"`
	Port     string `mapstructure:"port"`
	User     string `mapstructure:"user"`
	DBName   string `mapstructure:"dbname"`
	Password string `mapstructure:"password"`
	SSLmode  string `mapstructure:"sslmode"`
}

Jump to

Keyboard shortcuts

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