config

package
v0.0.0-...-a5fc328 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiConfig

type ApiConfig struct {
	Url string `yaml:"url"`
}

type Config

type Config struct {
	Debug           bool         `yaml:"debug"`
	Server          ServerConfig `yaml:"server"`
	JWT             JWTConfig    `yaml:"jwt"`
	DB              DBConfig     `yaml:"db"`
	Explorer        ApiConfig    `yaml:"explorer"`
	Pool            ApiConfig    `yaml:"pool"`
	Sentry          SentryConfig `yaml:"sentry"`
	SelectedNetwork string       `yaml:"selectedNetwork"`
}

func Get

func Get() *Config

type DBConfig

type DBConfig struct {
	Dialect  string `yaml:"dialect"`
	Host     string `yaml:"host"`
	Port     int    `yaml:"port"`
	Username string `yaml:"username"`
	Password string `yaml:"password"`
	DbName   string `yaml:"dbName"`
	SSLMode  string `yaml:"sslMode"`
	LogMode  bool   `yaml:"logMode"`
}

type JWTConfig

type JWTConfig struct {
	Realm       string `yaml:"realm"`
	Secret      string `yaml:"secret"`
	IdentityKey string `yaml:"identityKey"`
}

type SentryConfig

type SentryConfig struct {
	Active bool   `yaml:"active"`
	DSN    string `yaml:"dsn"`
}

type ServerConfig

type ServerConfig struct {
	Port   string `yaml:"port"`
	Domain string `yaml:"domain"`
}

Jump to

Keyboard shortcuts

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