config

package
v0.0.0-...-90f9a36 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2016 License: GPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	CurrentEnvironment string
	Environments       []EnvironmentConfig
}

Configuration represents a list of configurantion for many environments

func (Configuration) GetCurrentEnvironmentConfig

func (c Configuration) GetCurrentEnvironmentConfig() (EnvironmentConfig, error)

GetCurrentEnvironmentConfig returns the current environment configuration

type EnvironmentConfig

type EnvironmentConfig struct {
	Name       string
	HTTPServer HTTPServerConfig
}

EnvironmentConfig represents an environment item configuration

type HTTPServerConfig

type HTTPServerConfig struct {
	Address string
}

HTTPServerConfig represents the HTTP Server address configuration

func (HTTPServerConfig) GetFormatedAddress

func (h HTTPServerConfig) GetFormatedAddress() string

GetFormatedAddress returns a formated HTTP Address

type Repository

type Repository interface {
	GetSystemConfiguration() (Configuration, error)
}

Repository represents a contract to handle configuration reading

Jump to

Keyboard shortcuts

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