utils

package
v0.0.0-...-49cb14a Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(kafkaProducer *kafka.Producer, cfg *config.Config)

Generate generates a new log with random data and produces it to a random topic via the kafka producer provided to it.

func GenerateRandomLogs

func GenerateRandomLogs(cfg *config.Config, stop chan os.Signal)

GenerateRandomLogs generates logs every in k seconds in a choice of numTopics topics, simulating how many processes would produce logs in ra real-life scenario.

func LiveTail

func LiveTail(config *config.Livetail, sigchan chan os.Signal)

LiveTail is a real-time, bridge between Kafka and a logging medium that allows the observation as they are occuring of newly ingested messages.

Types

This section is empty.

Jump to

Keyboard shortcuts

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