client

package
v0.71.0 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LabelSetToString

func LabelSetToString(ls model.LabelSet) string

LabelSetToString converts a LabelSet to a string representation.

Types

type BlackBoxTestingValiClient

type BlackBoxTestingValiClient struct {
	// contains filtered or unexported fields
}

BlackBoxTestingValiClient is a struct that implements the EndClient interface.

func NewBlackBoxTestingValiClient

func NewBlackBoxTestingValiClient() *BlackBoxTestingValiClient

NewBlackBoxTestingValiClient creates a new instance of BlackBoxTestingValiClient.

func (*BlackBoxTestingValiClient) Chan

func (c *BlackBoxTestingValiClient) Chan() chan<- api.Entry

Chan returns the channel for sending entries.

func (*BlackBoxTestingValiClient) GetEntries

func (c *BlackBoxTestingValiClient) GetEntries() []api.Entry

GetEntries returns the received entries.

func (*BlackBoxTestingValiClient) GetLogsCount

func (c *BlackBoxTestingValiClient) GetLogsCount(ls model.LabelSet) int

GetLogsCount returns the count of logs for a given label set.

func (*BlackBoxTestingValiClient) Run

func (c *BlackBoxTestingValiClient) Run()

Run starts the BlackBoxTestingValiClient and processes entries from the channel.

func (*BlackBoxTestingValiClient) Shutdown

func (c *BlackBoxTestingValiClient) Shutdown()

Shutdown is used to close the entries channel.

func (*BlackBoxTestingValiClient) Stop

func (c *BlackBoxTestingValiClient) Stop()

Stop increments the stopped counter.

func (*BlackBoxTestingValiClient) StopNow

func (c *BlackBoxTestingValiClient) StopNow()

StopNow increments the stopped counter and returns immediately.

type EndClient

type EndClient interface {
	Run()
	Shutdown()
	GetLogsCount(ls model.LabelSet) int
}

EndClient is an interface that defines the methods for running, shutting down, and getting logs count.

Jump to

Keyboard shortcuts

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