Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultBadgerDir ¶
func DefaultBadgerDir() string
func DefaultDataDir ¶
func DefaultDataDir() string
Types ¶
type Lachesis ¶
type Lachesis struct { Config *LachesisConfig Node *node.Node Transport peer.SyncPeer Store poset.Store Peers *peers.Peers Service *service.Service }
Lachesis struct
type LachesisConfig ¶
type LachesisConfig struct { DataDir string `mapstructure:"datadir"` BindAddr string `mapstructure:"listen"` ServiceAddr string `mapstructure:"service-listen"` ServiceOnly bool `mapstructure:"service-only"` MaxPool int `mapstructure:"max-pool"` Store bool `mapstructure:"store"` LogLevel string `mapstructure:"log"` NodeConfig node.Config `mapstructure:",squash"` PoSConfig pos.Config `mapstructure:",squash"` LoadPeers bool Proxy proxy.AppProxy Key *ecdsa.PrivateKey Logger *logrus.Logger ConnFunc peer.CreateNetConnFunc Test bool `mapstructure:"test"` TestN uint64 `mapstructure:"test_n"` TestDelay uint64 `mapstructure:"test_delay"` }
func NewDefaultConfig ¶
func NewDefaultConfig() *LachesisConfig
func (*LachesisConfig) BadgerDir ¶
func (c *LachesisConfig) BadgerDir() string
Click to show internal directories.
Click to hide internal directories.