trigger

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2020 License: BSD-3-Clause Imports: 7 Imported by: 0

README

Apache Pulsar Trigger

This trigger provides your flogo application the ability to listen from the Apache Pulsar.

Installation

flogo install github.com/project-flogo/contrib/trigger/pulsar

Configuration

Settings:
Name Type Description
connection any The connection object which is use to connect to pulsar - REQUIRED Connection
Handler Settings:
Name Type Description
topic string The Pulsar topic from which to get the message - REQUIRED
subscription string The subscription name - REQUIRED
Output:
Name Type Description
message string The message from the Pulsar.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Factory

type Factory struct {
}

func (*Factory) Metadata

func (f *Factory) Metadata() *trigger.Metadata

func (*Factory) New

func (*Factory) New(config *trigger.Config) (trigger.Trigger, error)

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

type HandlerSettings

type HandlerSettings struct {
	Topic        string `md:"topic,required"`
	Subscription string `md:"subscription,required"`
}

type Output

type Output struct {
	Message string `md:"message"`
}

func (*Output) FromMap

func (o *Output) FromMap(values map[string]interface{}) error

func (*Output) ToMap

func (o *Output) ToMap() map[string]interface{}

type Settings

type Settings struct {
	Connection connection.Manager `md:"connection,required"`
}

type Trigger

type Trigger struct {
	// contains filtered or unexported fields
}

func (*Trigger) Initialize

func (t *Trigger) Initialize(ctx trigger.InitContext) error

func (*Trigger) Metadata

func (t *Trigger) Metadata() *trigger.Metadata

Metadata implements trigger.Trigger.Metadata

func (*Trigger) Start

func (t *Trigger) Start() error

Start implements util.Managed.Start

func (*Trigger) Stop

func (t *Trigger) Stop() error

Stop implements util.Managed.Stop

Jump to

Keyboard shortcuts

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