stream

package
v0.15.0-rc Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2023 License: Apache-2.0 Imports: 1 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 Record

func (*GadgetStream) Unsubscribe

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

type Record added in v0.13.0

type Record struct {
	Line      string
	EventLost bool
}

Jump to

Keyboard shortcuts

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