database

package
v0.2.0-rc.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TriggerConfig

type TriggerConfig struct {
	Name         string `json:"name"`
	DatabaseName string `json:"databaseName"`
	Query        string `json:"query"`
	Key          string `json:"key"`
}

type TriggerConfigs

type TriggerConfigs struct {
	Triggers []TriggerConfig `json:"triggers"`
}

type TriggerRun

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

func (*TriggerRun) Done

func (t *TriggerRun) Done() bool

func (*TriggerRun) Run

func (t *TriggerRun) Run(ctx context.Context, payload []byte)

type TriggerRunner

type TriggerRunner struct {
	trigger.ExecutionRegister
	// contains filtered or unexported fields
}

func NewTrigger

func NewTrigger(
	logger log.Logger,
	db *db.Connections,
	configFile string,
) (*TriggerRunner, error)

func (*TriggerRunner) Run

func (t *TriggerRunner) Run(ctx context.Context) error

Jump to

Keyboard shortcuts

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