modes

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DisableANSICodeStripping = false
View Source
var FallthroughGlobal = false

Functions

func ConsumeStdin

func ConsumeStdin(ch chan models.Message)

func ConsumeStdinAndForwardToPort

func ConsumeStdinAndForwardToPort(ip string, port string)

func FollowFiles

func FollowFiles(ch chan models.Message, files []string)

func GenerateRandomData

func GenerateRandomData(jsonFormat bool, numPerSec int, ch chan models.Message, ctx context.Context)

func ProduceMessageString

func ProduceMessageString(ch chan models.Message, line string, mt models.LogType, mo *models.MessageOrigin)

func ProduceMessageStringTimestamped added in v0.13.0

func ProduceMessageStringTimestamped(ch chan models.Message, line string, mt models.LogType, mo *models.MessageOrigin, ts time.Time)

func ReadFiles

func ReadFiles(ch chan models.Message, files []string)

func StartCmd

func StartCmd(ch chan models.Message, cmdStr string, args []string)

func StartSocketServers

func StartSocketServers(ch chan models.Message, ip string, ports []string)

func UtilsCutByLineNumber

func UtilsCutByLineNumber(file string, count int, offset int, outFile string)

func UtilsCutByString

func UtilsCutByString(file string, start string, end string, caseInsensitive bool, outFile string, dateFormat string, searchOffset int)

Types

This section is empty.

Jump to

Keyboard shortcuts

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