config

package
v0.0.0-...-1f1360f Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	ReadTimeoutMs  time.Duration `yaml:"readtimeout"`
	WriteTimeoutMs time.Duration `yaml:"writetimeout"`
}

type Config

type Config struct {
	Log  Log    `yaml:"log"`  //if logging to file
	Name string `yaml:"name"` //app name in logs
	Env  string `yaml:"env"`  //prod or dev
	API  API    `yaml:"api"`
	DB   DB     `yaml:"db"`
	Port string `yaml:"port"`
}

type DB

type DB struct {
	Provider string   `yaml:"provider"`
	Master   string   `yaml:"master"`
	Slaves   []string `yaml:"slaves"`
	Login    string   `yaml:"login"`
	Password string   `yaml:"password"`
	Name     string   `yaml:"name"`
}

type Log

type Log struct {
	File string `yaml:"file"`
}

Jump to

Keyboard shortcuts

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