standardstreamconfig

package
v3.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2021 License: ISC Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConsumerDefaults = Consumer{
	Reader: os.Stdin,
}

ConsumerDefaults holds the default values for Consumer.

View Source
var ProducerDefaults = Producer{
	Writer: os.Stdout,
}

ProducerDefaults holds the default values for Producer.

Functions

This section is empty.

Types

type Consumer

type Consumer struct {
	// Reader is the object that implements the io.ReadCloser interface
	// (io.Reader + io.Closer). This object is used to read messages from the
	// stream. Defaults to `os.Stdin`.
	Reader io.ReadCloser `ignored:"true"`
}

Consumer is a value-object, containing all user-configurable configuration values that dictate how the standard stream client's consumer will behave.

type Producer

type Producer struct {
	// Writer is the object that implements the io.Writer interface. This object
	// is used to write new messages to the stream. Defaults to `os.Stdout`.
	Writer io.Writer `ignored:"true"`
}

Producer is a value-object, containing all user-configurable configuration values that dictate how the standard stream client's producer will behave.

Jump to

Keyboard shortcuts

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