workers

package
v0.15.2 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2024 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PollerOption

type PollerOption func(*PollerWorker)

func WithInMemoryDatastore

func WithInMemoryDatastore(datastore tracedb.TraceDB) PollerOption

func WithObserver added in v0.14.8

func WithObserver(observer event.Observer) PollerOption

type PollerWorker

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

func NewPollerWorker

func NewPollerWorker(client *client.Client, opts ...PollerOption) *PollerWorker

func (*PollerWorker) Poll

func (w *PollerWorker) Poll(ctx context.Context, request *proto.PollingRequest) error

func (*PollerWorker) SetLogger added in v0.14.7

func (w *PollerWorker) SetLogger(logger *zap.Logger)

type TestConnectionWorker

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

func NewTestConnectionWorker

func NewTestConnectionWorker(client *client.Client, observer event.Observer) *TestConnectionWorker

func (*TestConnectionWorker) SetLogger added in v0.14.7

func (w *TestConnectionWorker) SetLogger(logger *zap.Logger)

func (*TestConnectionWorker) Test

type TriggerOption

type TriggerOption func(*TriggerWorker)

func WithTraceCache

func WithTraceCache(cache collector.TraceCache) TriggerOption

func WithTriggerObserver added in v0.14.8

func WithTriggerObserver(observer event.Observer) TriggerOption

type TriggerWorker

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

func NewTriggerWorker

func NewTriggerWorker(client *client.Client, opts ...TriggerOption) *TriggerWorker

func (*TriggerWorker) SetLogger added in v0.14.7

func (w *TriggerWorker) SetLogger(logger *zap.Logger)

func (*TriggerWorker) Trigger

func (w *TriggerWorker) Trigger(ctx context.Context, triggerRequest *proto.TriggerRequest) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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