confile

package
v0.3.7 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProfileDefault  = "conf.yaml"
	ProfileTemplete = `` /* 1573-byte string literal not displayed */

)

Variables

This section is empty.

Functions

func NewConfigfile

func NewConfigfile() *confile

Types

type Confile

type Confile interface {
	Parse(fpath string) error
	GetRpcAddr() []string
	GetBootNodes() []string
	GetHttpPort() int
	GetP2pPort() int
	GetWorkspace() string
	GetMnemonic() string
	GetPublickey() ([]byte, error)
	GetAccount() string
	GetAccess() string
	GetAccounts() []string
	GetDomainName() string
	GetCacheSize() int64
	GetCacheItemExp() int64
	GetCacheDir() string
	GetSelectStrategy() string
	GetNodeFilePath() string
	GetMaxNodeNum() int
	GetMaxTTL() int64
	GetRefreshTime() int64
}

Jump to

Keyboard shortcuts

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