config

package
v0.0.3-beta Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Hub      HubParams
	Handlers map[string]interface{} `toml:"handlers"`
}

func Load

func Load(path string) (Config, error)

func (Config) GetHandlers

func (conf Config) GetHandlers() []string

func (Config) GetParams

func (conf Config) GetParams(handler string) map[string]interface{}

type HubParams

type HubParams struct {
	PublicHubIp     string
	GossipPort      uint
	RpcPort         uint
	BootstrapPeers  []string
	Debug           bool
	BufferSize      uint
	ContactInterval uint
}

Jump to

Keyboard shortcuts

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