Versions in this module Expand all Collapse all v0 v0.1.0 Apr 13, 2021 Changes in this version + const File + const PermConfigDir + const PermConfigToml + const PermStateFile + const StateFile + func Create(cfgDir string, sections ...Section) error + func Dir() string + func FilePath(cfgDir string) string + func GetRetryDialTime(timeString string) time.Duration + func StateFilePath(cfgDir string) string + type Base struct + LogLevel string + RetryDialAfter string + SetSize int + StartRank int + Threshold int + ValidatorListenAddress string + ValidatorListenAddressRPC string + type Config struct + Base Base + Privval PrivValidator + func Load() (c Config, err error) + type PrivValidator struct + ChainID string + type Section uint8 + const BaseSection + const PrivvalSection + type State struct + LastHeight int64 + LastRank int + func LoadOrGenState(cfgDir string) (State, error) + func (s *State) Save(cfgDir string) error