logstream

package
v0.0.0-...-1d4e844 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogBlock

type LogBlock struct {
	ChanID string
	Msg    string
}

LogBlock represents a log message with a channel id that logs are coming from.

func (*LogBlock) String

func (l *LogBlock) String() string

type LogStream

type LogStream interface {
	Start()
	Stop()

	RegisterLogCallback(id string, callback func(*LogBlock) error)
	DeregisterLogCallback(id string)
	GetNumLogCallbacks() int
}

func New

func New(cfg *config.LogWebhookConfig, chans map[string]chan string) LogStream

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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