Documentation
¶
Index ¶
Constants ¶
View Source
const ( DefaultLayers = 3 DefaultMinNodesPerLayer = 2 )
Variables ¶
View Source
var DefaultParameters = katconfig.Parameters{ SendRatePerMinute: defaultSendRatePerMinute, Mu: defaultMu, MuMaxDelay: uint64(math.Min(rand.ExpQuantile(defaultMu, defaultMuMaxPercentile), absoluteMaxDelay)), LambdaP: defaultLambdaP, LambdaPMaxDelay: uint64(rand.ExpQuantile(defaultLambdaP, defaultLambdaPMaxPercentile)), LambdaL: defaultLambdaL, LambdaLMaxDelay: uint64(rand.ExpQuantile(defaultLambdaL, defaultLambdaLMaxPercentile)), LambdaD: defaultLambdaD, LambdaDMaxDelay: uint64(rand.ExpQuantile(defaultLambdaD, defaultLambdaDMaxPercentile)), LambdaM: defaultLambdaM, LambdaMMaxDelay: uint64(rand.ExpQuantile(defaultLambdaM, defaultLambdaMMaxPercentile)), }
Functions ¶
Types ¶
type Config ¶
type Config struct { TendermintConfigPath string DBPath string Layers int MinNodesPerLayer int Parameters katconfig.Parameters Membership bool }
func DefaultConfig ¶
func DefaultConfig() (cfg *Config)
func Load ¶
Load parses and validates the provided buffer b as a config file body and returns the Config.
func (*Config) FixupAndValidate ¶
FixupAndValidate applies defaults to config entries and validates the supplied configuration. Most people should call one of the Load variants instead.
Click to show internal directories.
Click to hide internal directories.