Documentation ¶
Index ¶
Constants ¶
View Source
const ( WalletFile = "wallet.json" LogFile = "log.svn" ConfFile = "conf.svn" DBDir = "dabtabse" ConnTimeOut = 4 LogModuleName = "node" )
View Source
const (
DefaultBufSize = 1 << 20
)
View Source
const (
MsgPingTest
)
Variables ¶
View Source
var Version = "1.0.1"
Functions ¶
func ChangeConnCloseTimeOut ¶
func ChangeConnCloseTimeOut(toInSeconds int)
func PrepareConfig ¶
func PrepareConfig(auth, confPath string)
Types ¶
type Config ¶
type Config struct { WalletPath string `json:"wallet.path"` DBPath string `json:"database"` LogPath string `json:"log_file"` TimeOut time.Duration `json:"conn_timeout"` LogLevel logging.Level `json:"log_level"` }
func InitDefaultConfig ¶
func InitDefaultConfig() *Config
type MinerWallet ¶
func WInst ¶
func WInst() *MinerWallet
type MsgAck ¶
type Node ¶
type Node struct {
// contains filtered or unexported fields
}
func (*Node) CtrlService ¶
func (n *Node) CtrlService()
Click to show internal directories.
Click to hide internal directories.