config

package
v0.0.0-...-094446d Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2016 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File string

Functions

func OpenConfig

func OpenConfig(configFile *string) *os.File

Open the config file for reading

Types

type Config

type Config struct {
	CsCluster struct {
		Host string
		Port int
	}
	Rabbit struct {
		Host string
	}
}

func ReadConfig

func ReadConfig(r io.Reader) (*Config, error)

ReadConfig config from io.Reader

func ReadReturn

func ReadReturn(path string) (*Config, error)

Read and retrun config

Jump to

Keyboard shortcuts

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