config

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCache

func AddCache(cType string, conf *config.Type) error

AddCache inserts a default cache of a type to an existing config.

func AddProcessor

func AddProcessor(cType string, conf *config.Type) error

AddProcessor inserts a default processor of a type to an existing config.

func AddRatelimit

func AddRatelimit(cType string, conf *config.Type) error

AddRatelimit inserts a default rate limit of a type to an existing config.

func Marshal

func Marshal(conf config.Type) ([]byte, error)

Marshal a config struct into a subset of fields relevant to the lab environment.

func New

func New() config.Type

New creates a fresh Benthos config with defaults that suit the lab environment.

func Unmarshal

func Unmarshal(confStr string) (config.Type, error)

Unmarshal a config string into a config struct with defaults that suit the lab environment.

Types

This section is empty.

Jump to

Keyboard shortcuts

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