error

package module
v0.0.0-...-89bbdfb Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2022 License: Apache-2.0, BSD-3-Clause, MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EXTRA_DATA = "[[AIR::EXTRA_DATA]]"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Activity

type Activity struct {
}

Activity is an Activity that is used to send error

func (*Activity) Eval

func (a *Activity) Eval(ctx activity.Context) (done bool, err error)

Eval implements api.Activity.Eval - send error

func (*Activity) Metadata

func (a *Activity) Metadata() *activity.Metadata

Metadata returns the activity's metadata

func (*Activity) SendNotification

func (a *Activity) SendNotification(notifier string, notification map[string]interface{}) error

type Input

type Input struct {
	Activity string                 `md:"Activity"`
	Message  string                 `md:"Message"`
	Data     string                 `md:"Data"`
	Gateway  string                 `md:"Gateway"`
	Reading  map[string]interface{} `md:"Reading"`
	Enriched []interface{}          `md:"Enriched"`
}

func (*Input) FromMap

func (i *Input) FromMap(values map[string]interface{}) error

func (*Input) ToMap

func (i *Input) ToMap() map[string]interface{}

type Output

type Output struct {
	Success bool `md:"Success"`
}

Jump to

Keyboard shortcuts

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