config

package
v0.0.0-...-cc45bd3 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Instance string `yaml:"-"`
	Version  string `yaml:"version"`
	LogLevel string `yaml:"log_level"`
}

App -.

type Config

type Config struct {
	App   `yaml:"app"`
	HTTP  `yaml:"http"`
	PProf `yaml:"pprof"`
	DB    `yaml:"db"`
}

Config -.

func NewConfig

func NewConfig(c *cli.Context) (*Config, error)

NewConfig returns app config.

type DB

type DB struct {
	Host     string `yaml:"host"`
	Port     string `yaml:"port"`
	Name     string `yaml:"name"`
	User     string `yaml:"user"`
	Password string `yaml:"password"`
	SSLMode  string `yaml:"ssl_mode"`
}

DB -.

type HTTP

type HTTP struct {
	Host string `yaml:"host"`
	Port string `yaml:"port"`
}

HTTP -.

type PProf

type PProf struct {
	Host string `yaml:"host"`
	Port string `yaml:"port"`
}

PProf -.

Jump to

Keyboard shortcuts

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