streamlog

package
v3.0.0-beta10 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 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 Event

type Event struct {
	B []byte
	M map[string]any
}

func NewEvent

func NewEvent(b []byte) (Event, error)

func (*Event) IsZero

func (event *Event) IsZero() bool

func (*Event) Map

func (event *Event) Map() map[string]any

func (*Event) Render

func (event *Event) Render(format string)

func (*Event) RenderConsole

func (event *Event) RenderConsole()

func (*Event) RenderData

func (event *Event) RenderData()

type Events

type Events []Event

func (Events) MatchString

func (events Events) MatchString(key, pattern string) bool

func (Events) Render

func (events Events) Render(format string)

func (Events) RenderConsole

func (events Events) RenderConsole()

func (Events) RenderData

func (events Events) RenderData()

func (Events) Sort

func (events Events) Sort()

type Stream

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

func NewStream

func NewStream() *Stream

func (*Stream) Errors

func (stream *Stream) Errors() chan error

func (*Stream) Events

func (stream *Stream) Events() chan Event

func (*Stream) Start

func (stream *Stream) Start(streamConfig StreamConfig) error

func (*Stream) Stop

func (stream *Stream) Stop() error

type StreamConfig

type StreamConfig struct {
	Follow  bool
	Lines   int
	Matches []string
}

Jump to

Keyboard shortcuts

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