api

package
v0.0.0-...-e67e6ae Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AggregateCallValuer

type AggregateCallValuer interface {
	ruleql.Context
	StateFunc(ctx context.Context, state interface{}) error
}

type BatchTriggerFunc

type BatchTriggerFunc func(context.Context, interface{}, int64) bool

BatchTriggerFunc a function type adapter that implements StreamTrigger

func (BatchTriggerFunc) Done

func (f BatchTriggerFunc) Done(ctx context.Context, item interface{}, index int64) bool

Done implements BatchOperation.Done

type StateFreeCheckFunc

type StateFreeCheckFunc func(ctx context.Context, state interface{}) bool

StateFreeCheckFunc if false, State clean

type StateFunc

type StateFunc func(ctx context.Context, state interface{}) error

type StreamTrigger

type StreamTrigger interface {
	Done(ctx context.Context, item interface{}, index int64) bool
}

Batch Operation types StreamTrigger interface provides logic to trigger when batch is done.

type StreamTriggerFunc

type StreamTriggerFunc func(context.Context, interface{}, time.Duration) bool

StreamTriggerFunc a function type adapter that implements StreamTrigger

func (StreamTriggerFunc) Done

func (f StreamTriggerFunc) Done(ctx context.Context, item interface{}, time time.Duration) bool

Done implements BatchOperation.Done

Jump to

Keyboard shortcuts

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