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 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 ¶
func (w *TestConnectionWorker) Test(ctx context.Context, request *proto.DataStoreConnectionTestRequest) error
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
Source Files ¶
Click to show internal directories.
Click to hide internal directories.