io

package
v0.0.0-...-1472157 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2023 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrClosed = errors.New("connection closed")
)

Functions

This section is empty.

Types

type Bus

type Bus interface {
	Push(m *types.Message) // should be goroutine safe
	Pull() <-chan *types.Message
	Lock()   // turn off the message supply
	Unlock() // turn on the message supply
}

type StreamReader

type StreamReader interface {
	Read() (*types.Message, error)
}

type StreamWriter

type StreamWriter interface {
	Write(*types.Message) error
}

Directories

Path Synopsis
bus
reader

Jump to

Keyboard shortcuts

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