generate

package
v0.0.0-...-782863c Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrRoundIntervalZero       = errors.New("Round interval cannot be 0s")
	ErrInvalidHTTPOrPubsubPort = errors.New("Invalid HTTP or pubsub port")
	ErrInvalidRegistryURL      = errors.New("Invalid registry URL")
	ErrInvalidNodeCount        = errors.New("Invalid node count (min. 4 node required)")
)

Functions

func Generate

func Generate(cfg *Config) error

Types

type Config

type Config struct {
	NetworkName   string
	ConfigRoot    string
	Registry      string
	RoundInterval time.Duration
	HTTPPort      uint
	PubSubPort    uint
	NodeCount     uint
	FixedPort     bool
	DisableHTTP   bool
	DisablePubSub bool
}

func (*Config) Validate

func (c *Config) Validate() error

Jump to

Keyboard shortcuts

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