yamlparser

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2020 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Config          yaml.MapSlice
	Waittotal       int
	Grouptotal      int
	ServersPerGroup []int
)

Config global var to be able to access it in all packages

Functions

func ParseServersList

func ParseServersList() string

ParseServersList server list parser, parses it to a map of structs in main function

func Rollcall

func Rollcall()

Rollcall Tally up the number of servers and groups and servers in groups

func ServersPerGroupcount

func ServersPerGroupcount(parsed yaml.MapSlice) []int

ServersPerGroupcount Will run on init, to get total number of servers per group

func TotalServercount

func TotalServercount(parsed yaml.MapSlice) int

TotalServercount Will run on init, to get a total number of servers in all groups

Types

This section is empty.

Jump to

Keyboard shortcuts

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