sink

package
v2.0.0-beta.2 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var QR = &QueryResult{LastFetch: time.Now()}

Functions

func GetSink

func GetSink() api.Sink

func NewLogSink

func NewLogSink() api.Sink

NewLogSink log action, no properties now example: {"log":{}}

func NewLogSinkToMemory

func NewLogSinkToMemory() api.Sink

Types

type NopSink

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

func (*NopSink) Close

func (ns *NopSink) Close(ctx api.StreamContext) error

func (*NopSink) Collect

func (ns *NopSink) Collect(ctx api.StreamContext, item api.RawTuple) error

func (*NopSink) Connect

func (ns *NopSink) Connect(ctx api.StreamContext, _ api.StatusChangeHandler) error

func (*NopSink) Provision

func (ns *NopSink) Provision(ctx api.StreamContext, configs map[string]any) error

type QueryResult

type QueryResult struct {
	Results   []string
	LastFetch time.Time
	Mux       sync.Mutex
}

Jump to

Keyboard shortcuts

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