config

package
v0.0.0-...-37869b2 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SleepTime time.Duration = 10

Functions

This section is empty.

Types

type Config

type Config struct {
	AllianceJsonRpcAddress string
	WalletFile             string
	WalletPwd              string
	AlliaObLoopWaitTime    int64
	WatchingKey            string
	Redeem                 string
	WaitingDBPath          string
	BlksToWait             uint64
	BtcPrivkFile           string
	WatchingMakeTxKey      string
	ConfigBitcoinNet       string
	ConfigDBPath           string
	TrustedPeer            string
	RunRest                int
	RunVote                int
	RestartDuration        int
	IsRestart              int
	RestPort               uint64
	SleepTime              int
	AlliaNet               string
	CircleToSaveHeight     uint32
	MaxReadSize            int64
}

func NewConfig

func NewConfig(file string) (*Config, error)

func (*Config) Init

func (this *Config) Init(fileName string) error

Jump to

Keyboard shortcuts

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