config

package
v0.0.0-...-da0747f Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2017 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultConfig = &Config{
		TLSConfig: &TLSConfig{},
	}

	DefaultConfigFilename = "config.yaml"
)

Functions

This section is empty.

Types

type Config

type Config struct {
	Members   Members    `json:"members"`
	TLSConfig *TLSConfig `json:"tlsConfig"`
}

func FromFile

func FromFile(file string) (*Config, error)

type Member

type Member struct {
	HostPort string `json:"hostPort"`
	CertFile string `json:"certFile"`
}

type Members

type Members []*Member

type TLSConfig

type TLSConfig struct {
	CertFile   string `json:"certFile"`
	KeyFile    string `json:"keyFile"`
	CaFile     string `json:"caFile"`
	ServerName string `json:"serverName"`
}

Jump to

Keyboard shortcuts

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