conf

package
v0.0.0-...-e66b27f Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2019 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ModeProd = "prod"
	ModeDev  = "dev"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BTCClientConfig

type BTCClientConfig struct {
	Host     string
	Port     int
	User     string
	Password string
	UseSSL   bool
}

type CoinConfig

type CoinConfig struct {
	PullGBTInterval  time.Duration
	NotifyInterval   time.Duration
	JobCacheExpireTs time.Duration
}

type RedisConfig

type RedisConfig struct {
	Host     string
	Port     int
	Password string
	DBNum    int
	RedisPoolConfig
}

func (*RedisConfig) FormatAddress

func (conf *RedisConfig) FormatAddress() string

type RedisPoolConfig

type RedisPoolConfig struct {
	MaxIdle     int
	MaxActive   int
	IdleTimeout int
}

type ServerConfig

type ServerConfig struct {
	Name string
	Host string
	Port int
	Mode string
}

func (*ServerConfig) FormatHostPort

func (c *ServerConfig) FormatHostPort() string

func (*ServerConfig) IsValidMode

func (c *ServerConfig) IsValidMode() bool

type SphereConfig

type SphereConfig struct {
	Configs map[string]CoinConfig
}

func NewSphereConfig

func NewSphereConfig() *SphereConfig

Jump to

Keyboard shortcuts

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