mockd

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: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServiceMock

type ServiceMock struct {
	Tags          map[string]string
	Fields        map[string]string
	File          string
	Index         int64
	LogsPerSecond int
	MaxLogCount   int
	// contains filtered or unexported fields
}

func (*ServiceMock) Collect

func (p *ServiceMock) Collect(pipeline.Collector) error

Gather takes in an accumulator and adds the metrics that the Input gathers. This is called every "interval"

func (*ServiceMock) Description

func (p *ServiceMock) Description() string

func (*ServiceMock) Init

func (p *ServiceMock) Init(context pipeline.Context) (int, error)

func (*ServiceMock) MockOneLog

func (p *ServiceMock) MockOneLog(c pipeline.Collector)

func (*ServiceMock) Start

func (p *ServiceMock) Start(c pipeline.Collector) error

Start starts the ServiceInput's service, whatever that may be

func (*ServiceMock) Stop

func (p *ServiceMock) Stop() error

Stop stops the services and closes any necessary channels and connections

Jump to

Keyboard shortcuts

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