evcollector

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Collector

type Collector struct {
	Addr      string
	Namespace string
	// contains filtered or unexported fields
}

func New

func New(addr, namespace string, maxBatchSize int32, logger Logger, client rest.Interface) *Collector

func (*Collector) Start

func (c *Collector) Start()

func (*Collector) Stop

func (c *Collector) Stop()

type Config

type Config struct {
	MaxBatchSize int32
	Receivers    []*ReceiverParams
}

type Logger

type Logger interface {
	Info(msg string, keysAndValues ...any)
	Error(msg string, keysAndValues ...any)
	Debug(msg string, keysAndValues ...any)
}

type ReceiverParams

type ReceiverParams struct {
	ServiceName      string
	ServiceNamespace string
	Port             string
	WatchedNamespace string
}

Jump to

Keyboard shortcuts

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