Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MessageReader ¶
MessageReader is used to Read a message from a source.
type Sourcer ¶
type Sourcer interface { // Updater implementation required to find new streams. Updater // ReadTarget is called in response to a new target being found by the updater // The supplied context will be cancel'ed when the updater sees the source go // away. FromStart indicates whther you should read the stream from the // beginning, or the current position. ReadTarget(ctx context.Context, id string, FromStart bool) (MessageReader, error) }
Sourcer watches some arbitrary potential source of multiple log streams. Each time the Updater spots a new stream, ReadTarget is called to read message from that stream.
Click to show internal directories.
Click to hide internal directories.