config

package
v0.0.0-...-e4012a6 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	// contains filtered or unexported fields
}

func New

func New(cfg *Config) *App

func (*App) Config

func (a *App) Config() *Config

func (*App) SetConfig

func (a *App) SetConfig(cfg *Config)

type Config

type Config struct {
	Clusters []struct {
		Name  string `yaml:"name"`
		Nodes int    `yaml:"nodes"`
	} `yaml:"clusters"`
}

func LoadConfig

func LoadConfig() (*Config, chan *Config)

Jump to

Keyboard shortcuts

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