mock

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: May 2, 2023 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 {
	StringMetrics  map[string]pipeline.StringMetric
	CounterMetrics map[string]pipeline.CounterMetric
	LatencyMetrics map[string]pipeline.LatencyMetric
	// 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) 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) 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) MetricSerializeToPB

func (p *EmptyContext) MetricSerializeToPB(log *protocol.Log)

func (*EmptyContext) RegisterCounterMetric

func (p *EmptyContext) RegisterCounterMetric(metric pipeline.CounterMetric)

func (*EmptyContext) RegisterLatencyMetric

func (p *EmptyContext) RegisterLatencyMetric(metric pipeline.LatencyMetric)

func (*EmptyContext) RegisterStringMetric

func (p *EmptyContext) RegisterStringMetric(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