mock

package
v1.8.8 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EmptyContext

type EmptyContext struct {
	MetricsRecords []*pipeline.MetricsRecord
	// contains filtered or unexported fields
}

func NewEmptyContext

func NewEmptyContext(project, logstore, configName string) *EmptyContext

func (*EmptyContext) AddPlugin

func (p *EmptyContext) AddPlugin(name string)

func (*EmptyContext) ExportMetricRecords added in v1.8.8

func (p *EmptyContext) ExportMetricRecords() (results []map[string]string)

func (*EmptyContext) GetCheckPoint

func (p *EmptyContext) GetCheckPoint(key string) (value []byte, exist bool)

func (*EmptyContext) GetCheckPointObject

func (p *EmptyContext) GetCheckPointObject(key string, obj interface{}) (exist bool)

func (*EmptyContext) GetConfigName

func (p *EmptyContext) GetConfigName() string

func (*EmptyContext) GetExtension added in v1.5.0

func (p *EmptyContext) GetExtension(name string, cfg any) (pipeline.Extension, error)

func (*EmptyContext) GetLogstore

func (p *EmptyContext) GetLogstore() string

func (*EmptyContext) GetLogstoreConfigMetricRecord added in v1.8.8

func (p *EmptyContext) GetLogstoreConfigMetricRecord() *pipeline.MetricsRecord

func (*EmptyContext) GetMetricRecord added in v1.8.8

func (p *EmptyContext) GetMetricRecord() *pipeline.MetricsRecord

func (*EmptyContext) GetProject

func (p *EmptyContext) GetProject() string

func (*EmptyContext) GetRuntimeContext

func (p *EmptyContext) GetRuntimeContext() context.Context

func (*EmptyContext) InitContext

func (p *EmptyContext) InitContext(project, logstore, configName string)

func (*EmptyContext) RegisterCounterMetric

func (p *EmptyContext) RegisterCounterMetric(metricsRecord *pipeline.MetricsRecord, metric pipeline.CounterMetric)

func (*EmptyContext) RegisterLatencyMetric

func (p *EmptyContext) RegisterLatencyMetric(metricsRecord *pipeline.MetricsRecord, metric pipeline.LatencyMetric)

func (*EmptyContext) RegisterLogstoreConfigMetricRecord added in v1.8.8

func (p *EmptyContext) RegisterLogstoreConfigMetricRecord(labels []pipeline.LabelPair) *pipeline.MetricsRecord

func (*EmptyContext) RegisterMetricRecord added in v1.8.8

func (p *EmptyContext) RegisterMetricRecord(labels []pipeline.LabelPair) *pipeline.MetricsRecord

func (*EmptyContext) RegisterStringMetric

func (p *EmptyContext) RegisterStringMetric(metricsRecord *pipeline.MetricsRecord, metric pipeline.StringMetric)

func (*EmptyContext) SaveCheckPoint

func (p *EmptyContext) SaveCheckPoint(key string, value []byte) error

func (*EmptyContext) SaveCheckPointObject

func (p *EmptyContext) SaveCheckPointObject(key string, obj interface{}) error

Jump to

Keyboard shortcuts

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