config

package
v1.26.7 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2020 License: MIT Imports: 0 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 {
	Bind     string `flag:"bind-addr,required"`
	Name     string
	MaxPrice int `env:"MAX_PRICE,required"`
	DB       DB  `env:"DB2"`
	URLs     []int
}

type DB

type DB struct {
	Conn string `descr:"database connection"`
	Foo  Foo
}

type Foo

type Foo struct {
	Name string `descr:"database connection foo name"`
}

Jump to

Keyboard shortcuts

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