config

package
v3.6.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2015 License: Apache-2.0 Imports: 3 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadConfig

func LoadConfig()

func NewNatsClient

func NewNatsClient(retries int) *nats.EncodedConn

func NodeIPMust

func NodeIPMust() string

Types

type ClusterConfig

type ClusterConfig struct {
	*server.ClusterConfig
}

func GetClusterConfig

func GetClusterConfig() *ClusterConfig

type Config

type Config struct {
	DrainLifetime string `json:"drain_lifetime"`
	Hostname      string `json:"hostname"`
}

func GetConfig

func GetConfig() *Config

type ServerConfig

type ServerConfig struct {
	*server.Config
}

func NewConfig

func NewConfig(group string, s interface{}) (*ServerConfig, error)

Jump to

Keyboard shortcuts

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