driver

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Writer

type Writer interface {
	// Write writes a message over a channel.
	// The message may or may not be buffered depending on the implementation.
	Write(channel api.Channel, payload []byte) error

	// Flush writes any buffered messages to the channel.
	// If the implementation does not support buffering. this is a noop.
	Flush() error

	// Close closes the writer
	// Any blocked Flush or Write operations will be unblocked.
	Close() error
}

Writer interface defines the required methods to send messages over an channel.

This is a low-level interface typically implemented by backend drivers

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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