config

package
v0.9.10 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2020 License: MIT Imports: 11 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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