channel

package module
v0.0.0-...-d725791 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2023 License: BSD-3-Clause Imports: 4 Imported by: 0

README

Channel

This activity allows you to put a data on a named channel in the flogo engine. Channels are essentially an internal communication channel in the engine.

Installation

Flogo CLI
flogo install github.com/project-flogo/contrib/activity/channel

Configuration

Input:
Name Type Description
channel string The name of channel to use - REQUIRED
data any The data to put on the channel

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Activity

type Activity struct {
}

Activity is an Activity that is used to publish some data on a channel inputs : {channel, data} outputs: none

func (*Activity) Eval

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

Eval publishes the data on the specified channel

func (*Activity) Metadata

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

Metadata returns the activity's metadata

type Input

type Input struct {
	Channel string      `md:"channel,required"` //The name of channel to use
	Data    interface{} `md:"data"`             //The data to put on the channel
}

func (*Input) FromMap

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

func (*Input) ToMap

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

Jump to

Keyboard shortcuts

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