Documentation
¶
Overview ¶
Package communication contains necessary logic for passing messages and returning errors. The Engine will issue a ReadJob with a context and sends it to the readers. The NewReadJob function injects a unique ID into the context and returns it. All readers/recorders should use this JobID for returning errors and logging.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ErrorMessage ¶
type ErrorMessage struct { // The ID comes from the issued job. ID JobID // Name is the name of the instance, which is returned by its Name() method Name string Err error }
An ErrorMessage is sent when an error occures.
func (*ErrorMessage) Error ¶
func (e *ErrorMessage) Error() string
type JobID ¶
JobID is a unique ID. Only the Engine issues this ID and you should pass it along as you recieve.
Click to show internal directories.
Click to hide internal directories.