config

package
v0.0.0-...-03d8cdb Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConfigs

func GetConfigs(data *Config, configFile string) error

func ParseShards

func ParseShards(data *Config, shardName string) (int, int, map[int]string)

Types

type Config

type Config struct {
	Shards []Shard `toml:"shard"`
}

type Shard

type Shard struct {
	Name    string `toml:"name"`
	Id      int    `toml:"id"`
	Address string `toml:address`
}

Jump to

Keyboard shortcuts

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