mock

package
v1.0.33 Latest Latest
Warning

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

Go to latest
Published: May 11, 2022 License: Apache-2.0 Imports: 8 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]ilogtail.StringMetric
	CounterMetrics map[string]ilogtail.CounterMetric
	LatencyMetrics map[string]ilogtail.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) 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 ilogtail.CounterMetric)

func (*EmptyContext) RegisterLatencyMetric

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

func (*EmptyContext) RegisterStringMetric

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