statechange

package
v0.0.0-...-ebb33e4 Latest Latest
Warning

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

Go to latest
Published: May 18, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRethinkDBStateChangeBinding

func NewRethinkDBStateChangeBinding(logger logger.Logger) bindings.InputBinding

NewRethinkDBStateChangeBinding returns a new RethinkDB actor event input binding.

Types

type Binding

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

Binding represents RethinkDB change state input binding which fires handler with both the previous and current state store content each time there is a change.

func (*Binding) Close

func (b *Binding) Close() error

func (*Binding) GetComponentMetadata

func (b *Binding) GetComponentMetadata() map[string]string

GetComponentMetadata returns the metadata of the component.

func (*Binding) Init

func (b *Binding) Init(ctx context.Context, metadata bindings.Metadata) error

Init initializes the RethinkDB binding.

func (*Binding) Read

func (b *Binding) Read(ctx context.Context, handler bindings.Handler) error

Read triggers the RethinkDB scheduler.

type StateConfig

type StateConfig struct {
	r.ConnectOpts `mapstructure:",squash"`
	Table         string `mapstructure:"table"`
}

StateConfig is the binding config.

Jump to

Keyboard shortcuts

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