# Functions
ApplyHTTPTransportFixes is a no-op for Go 1.18 and above.
GetHeaderString returns the value of the header as a string.
NewBufferEncoder returns a new BufferEncoder initialized with a 1024 byte buffer.
NewEventReader returns a EventReader built from the reader and unmarshaler provided.
NewEventWriter returns a new event stream writer, that will write to the writer provided.
NewOnceError return a new OnceError.
NewSignEncoder returns a new SignEncoder using the provided stream signer and event stream encoder.
NewStreamWriter returns a StreamWriter for the event writer, and stream closer provided.
# Constants
chunk signature for message.
Date header for signature.
Message Error.
EventStream headers with specific meaning to async API functionality.
EventStream headers with specific meaning to async API functionality.
EventStream headers with specific meaning to async API functionality.
Identifies message event type e.g.
EventStream headers with specific meaning to async API functionality.
Message Exception.
InputWriterCloseErrorCode is used to denote an error occurred while closing the event stream input writer.
Identifies type of message.
# Structs
BufferEncoder is a utility that provides a buffered event stream encoder.
EventReader provides reading from the EventStream of an reader.
EventWriter provides a wrapper around the underlying event stream encoder for an io.WriteCloser.
OnceError wraps the behavior of recording an error once and signal on a channel when this has occurred.
SignEncoder envelopes event stream messages into an event stream message payload with included signature headers using the provided signer and encoder.
StreamWriter provides concurrent safe writing to an event stream.
UnknownMessageTypeError provides an error when a message is received from the stream, but the reader is unable to determine what kind of message it is.
# Interfaces
Encoder is an stream encoder that will encode an event stream message for the transport.
Marshaler provides a marshaling interface for event types to event stream messages.
StreamSigner defines an interface for the implementation of signing of event stream payloads.
Unmarshaler provides the interface for unmarshaling a EventStream message into a SDK type.