workers

package
v0.15.7 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewProcessStopper added in v0.15.4

func NewProcessStopper() processStopper

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

func WithPollerStoppableProcessRunner added in v0.15.4

func WithPollerStoppableProcessRunner(stoppableProcessRunner StoppableProcessRunner) 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 StoppableProcessRunner added in v0.15.4

type StoppableProcessRunner func(parentCtx context.Context, testID string, runID int32, worker func(context.Context), stopedCallback func(cause string))

type StopperOption added in v0.15.4

type StopperOption func(*StopperWorker)

func WithStopperCancelFuncList added in v0.15.4

func WithStopperCancelFuncList(cancelContexts *cancelCauseFuncMap) StopperOption

func WithStopperObserver added in v0.15.4

func WithStopperObserver(observer event.Observer) StopperOption

type StopperWorker added in v0.15.4

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

func NewStopperWorker added in v0.15.4

func NewStopperWorker(opts ...StopperOption) *StopperWorker

func (*StopperWorker) SetLogger added in v0.15.4

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

func (*StopperWorker) Stop added in v0.15.4

func (w *StopperWorker) Stop(ctx context.Context, stopRequest *proto.StopRequest) error

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 WithSensor added in v0.15.6

func WithSensor(sensor sensors.Sensor) TriggerOption

func WithTraceCache

func WithTraceCache(cache collector.TraceCache) TriggerOption

func WithTriggerObserver added in v0.14.8

func WithTriggerObserver(observer event.Observer) TriggerOption

func WithTriggerStoppableProcessRunner added in v0.15.4

func WithTriggerStoppableProcessRunner(stoppableProcessRunner StoppableProcessRunner) 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