stream

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HistorySize    = 100
	SubChannelSize = 250
)

Variables

This section is empty.

Functions

This section is empty.

Types

type GadgetStream

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

func NewGadgetStream

func NewGadgetStream() *GadgetStream

func (*GadgetStream) Close

func (g *GadgetStream) Close()

func (*GadgetStream) Publish

func (g *GadgetStream) Publish(line string)

func (*GadgetStream) Subscribe

func (g *GadgetStream) Subscribe() chan TimestampedLine

func (*GadgetStream) Unsubscribe

func (g *GadgetStream) Unsubscribe(ch chan TimestampedLine)

type TimestampedLine

type TimestampedLine struct {
	Line      string
	Timestamp time.Time
	EventLost bool
}

Jump to

Keyboard shortcuts

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