config

package
v0.0.0-...-2f442fc Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2018 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EnvMysqlHost = "MYSQL_HOST"
	EnvMysqlUser = "MYSQL_USER"
	EnvMysqlPass = "MYSQL_PASS"
	EnvMysqlDb   = "MYSQL_DB"
)
View Source
const (
	EnvMemcacheHost = "MEMCACHE_HOST"
	EnvMemcachePort = "MEMCACHE_PORT"
)
View Source
const (
	BitcoinNodeHost = "BITCOIN_NODE_HOST"
	BitcoinNodePort = "BITCOIN_NODE_PORT"
)
View Source
const (
	StatsdNamespace = "STATSD_NAMESPACE"
	StatsdHost      = "STATSD_HOST"
	StatsdPort      = "STATSD_PORT"
)
View Source
const (
	VipsThumbnailPath = "VIPS_THUMBNAIL_PATH"
	UseVipsThumbnail  = "USE_VIPS_THUMBNAIL"
)
View Source
const (
	EnvUseMinJs = "USE_MIN_JS"
)

Variables

This section is empty.

Functions

func GetUseMinJs

func GetUseMinJs() bool

Types

type BitcoinNodeConfig

type BitcoinNodeConfig struct {
	Host string
	Port string
}

func GetBitcoinNode

func GetBitcoinNode() BitcoinNodeConfig

func (BitcoinNodeConfig) GetConnectionString

func (b BitcoinNodeConfig) GetConnectionString() string

type FilePathsConfig

type FilePathsConfig struct {
	VipsThumbnailPath string
	UseVipsThumbnail  bool
}

func GetFilePaths

func GetFilePaths() FilePathsConfig

type MemcacheConfig

type MemcacheConfig struct {
	Host string
	Port string
}

func GetMemcacheConfig

func GetMemcacheConfig() MemcacheConfig

func (MemcacheConfig) GetConnectionString

func (m MemcacheConfig) GetConnectionString() string

type MysqlConfig

type MysqlConfig struct {
	Host     string
	Username string
	Password string
	Database string
}

func GetMysqlConfig

func GetMysqlConfig() MysqlConfig

type StatsdConfig

type StatsdConfig struct {
	Namespace string
	Host      string
	Port      int
}

func GetStatsdConfig

func GetStatsdConfig() StatsdConfig

Jump to

Keyboard shortcuts

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