config

package
v0.0.0-...-db9d092 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2015 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadOption

func ReadOption(option Option, config map[string]interface{}) (string, error)

ReadOption retrieves a config option from an unstructured JSON blob.

func ReadOptions

func ReadOptions(options []Option, config map[string]interface{}) (map[string]string, error)

ReadOptions retrieves a set of config options from an unstructured JSON blob.

Types

type Config

type Config struct {
	Endpoints []string
	Feeds     []string
	Ingestor  FactoryConfig
	Notifier  FactoryConfig
}

Config defines configuration data for Cloud Notifications.

func LoadYAML

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

LoadYAML returns a Config struct from a YAML file.

type FactoryConfig

type FactoryConfig struct {
	Type    string
	Options map[string]interface{}
}

FactoryConfig represents type-specific configuration data used by different types of ingestors, notifiers, and coordinators.

type Option

type Option struct {
	Key string
	Env string
}

Option represents a config option read from an unstructured JSON blob.

Jump to

Keyboard shortcuts

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