config

package
v0.0.0-...-05df700 Latest Latest
Warning

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

Go to latest
Published: May 13, 2022 License: MIT Imports: 2 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 {
	Logging struct {
		Level string `yaml:"level"`
	} `yaml:"logging"`
	Db struct {
		User        string `yaml:"user"`
		Password    string `yaml:"password"`
		Host        string `yaml:"host"`
		Port        uint16 `yaml:"port"`
		Name        string `yaml:"name"`
		MinConnsNum int    `yaml:"min_conns_num" split_words:"true"`
		MaxConnsNum int    `yaml:"max_conns_num" split_words:"true"`
	} `yaml:"db"`
	Storage struct {
		Endpoint  string `yaml:"endpoint"`
		SecretKey string `yaml:"secret_key" split_words:"true"`
		AccessKey string `yaml:"access_key" split_words:"true"`
		Bucket    string `yaml:"user"`
	} `yaml:"storage"`
	Auth struct {
		IssuerUrl  string `yaml:"issuer_url" split_words:"true"`
		ClientName string `yaml:"client_name" split_words:"true"`
	} `yaml:"auth"`
}

func Get

func Get() *Config

Jump to

Keyboard shortcuts

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