config

package
v0.0.0-...-c3818ae Latest Latest
Warning

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

Go to latest
Published: May 18, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Default = Config{
	Host:     "http://localhost",
	Port:     "8000",
	Database: "postgres",
	Postgres: Postgres{
		Username: "postgres",
		Password: "postgres",
		Host:     "localhost",
		Port:     "5432",
		DBName:   "postgres",
		SSLMode:  "disable",
	},
	Mongo: Mongo{
		Username: "mongo",
		Password: "mongo",
		Host:     "localhost",
		Port:     "27017",
	},
}

Functions

This section is empty.

Types

type Config

type Config struct {
	Host     string   `yaml:"host"`
	Port     string   `yaml:"port"`
	Database string   `yaml:"database"`
	Postgres Postgres `yaml:"postgres"`
	Mongo    Mongo    `yaml:"mongo"`
}

type Mongo

type Mongo struct {
	Username string `yaml:"username"`
	Password string `yaml:"password"`
	Host     string `yaml:"host"`
	Port     string `yaml:"port"`
}

type Postgres

type Postgres struct {
	Username string `yaml:"username"`
	Password string `yaml:"password"`
	Host     string `yaml:"host"`
	Port     string `yaml:"port"`
	DBName   string `yaml:"dbname"`
	SSLMode  string `yaml:"sslmode"`
}

Jump to

Keyboard shortcuts

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