tablemutate

package module
v0.0.0-...-5f34eba Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2022 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Overview

* Copyright © 2020. TIBCO Software Inc. * This file is subject to the license terms contained * in the license file that is distributed with this file.

Index

Constants

View Source
const (
	Method_Insert = "insert"
	Method_Upsert = "upsert"
	Method_Delete = "delete"
)

Variables

This section is empty.

Functions

func New

New creates a new AppActivity

Types

type Activity

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

TableMutateActivity is an Activity that is used to Filter a message to the console

func (*Activity) Eval

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

Eval implements api.Activity.Eval - Filters the Message

func (*Activity) Metadata

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

Metadata returns the activity's metadata

type Input

type Input struct {
	Mapping map[string]interface{} `md:"Mapping,required"`
}

Input Structure

func (*Input) FromMap

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

FromMap Input interface

func (*Input) ToMap

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

ToMap Input interface

type Output

type Output struct {
	Data   map[string]interface{} `md:"Data,required"`
	Exists bool                   `md:"Exists,required"`
}

Output struct

func (*Output) FromMap

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

FromMap conversion

func (*Output) ToMap

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

ToMap conversion

type Settings

type Settings struct {
	Table  connection.Manager `md:"Table,required"`
	Method string             `md:"Method,required"`
}

func (*Settings) ToMap

func (s *Settings) ToMap() map[string]interface{}

Jump to

Keyboard shortcuts

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