config

package
v0.0.0-...-48972bb Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache struct {
	RedisStore     bool
	Dial           string
	Password       string
	Db             int
	MaxConnections int
}

type Config

type Config struct {
	Bind     string
	RPC      string
	Writable bool
	IsAdmin  bool
	Log      LogInfo
	Cache    Cache
}

func New

func New() *Config

func (*Config) Init

func (p *Config) Init(cfgFile string) error

type LogInfo

type LogInfo struct {
	Path string
}

Jump to

Keyboard shortcuts

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