config

package
v0.1.20 Latest Latest
Warning

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

Go to latest
Published: May 22, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	QueueMapping map[string]string `json:"queue_mapping"` // nillable, transformation-step output -> message queue
}

Config is the struct holding configurable information This can be set via the environment variable ITERUM_CONFIG

func (*Config) FromString

func (conf *Config) FromString(stringified string) (err error)

FromString converts a string value into an instance of Config and also does validation

func (Config) MapQueue added in v0.1.11

func (conf Config) MapQueue(queue string) (target string, err error)

MapQueue tries to map a transformation step output to a target MQ. If either the map is nil or the key does not exist it returns an error

func (Config) Validate

func (conf Config) Validate() error

Validate does validation of a config struct, ensuring that it's members contain valid values

Jump to

Keyboard shortcuts

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