config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2019 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cluster

type Cluster struct {
	Name string `yaml:"name,omitempty"`
	URL  string `yaml:"url,omitempty"`
}

Cluster is a turbine cluster or a hystrix endpoint

type Config

type Config struct {
	Clusters []Cluster `yaml:"clusters,omitempty"`
}

Config holds all clusters

func Parse

func Parse(f string) (config Config, err error)

Parse a file into a config instance

Jump to

Keyboard shortcuts

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