aggtrigger

package
v4.1.23 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTrigger

func NewTrigger(conf map[string]interface{}) (trigger.Trigger, error)

NewTrigger returns a new on-disk aggregate trigger based on the configuration.

Types

type Config added in v4.1.13

type Config struct {
	Destinations []string `json:"destinations"`
	Filter       string   `json:"filter"`
}

Config is the configuration for OnDiskAggTrigger you can define in marketstore's config file under triggers extension.

type OnDiskAggTrigger

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

OnDiskAggTrigger is the main trigger.

func (*OnDiskAggTrigger) Fire

func (s *OnDiskAggTrigger) Fire(keyPath string, records []trigger.Record)

Fire implements trigger interface.

Directories

Path Synopsis
Package functions nolint: dupl // interface/generics can make the code slower
Package functions nolint: dupl // interface/generics can make the code slower

Jump to

Keyboard shortcuts

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