config

package
v0.9.27 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2021 License: MIT Imports: 11 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 AddCondition added in v0.6.6

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

AddCondition inserts a filter_parts processor with a default condition of a type to an existing config.

func AddInput added in v0.6.3

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

AddInput inserts a default input of a type to an existing config.

func AddOutput added in v0.6.3

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

AddOutput inserts a default output 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