Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Plugin = taskplugin.New("echo", "0.1", exec, taskplugin.WithConfig(validConfig, Config{}), ) )
the echo plugin is used to "manually" build result payloads allowing to aggregate several results in a consolidated structure
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Output interface{} `json:"output"` Metadata map[string]interface{} `json:"metadata"` ErrorMessage string `json:"error_message"` ErrorType string `json:"error_type"` // default if empty: server -> ie. retry }
Config describes transparently the outcome of execution output: an arbitrary object, equivalent to a successful return metadata: the metadata returned by execution, if any error_message: the outcome of a non-successful execution error_type: choose between client|server, to trigger different behavior (blocked VS retry)
Click to show internal directories.
Click to hide internal directories.