Package: eventstream
Sub-Packages
Type Summary collapse
-
BoolValue
struct
Get returns the underlying type.
-
BytesValue
struct
Get returns the underlying value.
- ChecksumError struct
-
Decoder
struct
Decoder provides decoding of an Event Stream messages.
-
DecoderOptions
struct
DecoderOptions is the Decoder configuration options.
-
Encoder
struct
Encoder provides EventStream message encoding.
-
EncoderOptions
struct
EncoderOptions is the configuration options for Encoder.
-
Header
struct
Header is a single EventStream Key Value header pair.
-
Headers
struct
Set associates the name with a value.
-
Int16Value
struct
Get returns the underlying value.
-
Int32Value
struct
Get returns the underlying value.
-
Int64Value
struct
Get returns the underlying value.
-
Int8Value
struct
Get returns the underlying value.
-
LengthError
struct
LengthError provides the error for items being larger than a maximum length.
-
Message
struct
A Message provides the eventstream message representation.
-
StringValue
struct
Get returns the underlying value.
-
TimestampValue
struct
Get returns the underlying value.
-
UUIDValue
struct
Get returns the underlying value.
Interface Summary collapse
-
Value
interface
Value represents the abstract header value.
Function Summary collapse
-
func EncodeHeaders(w io.Writer, headers Headers) error
EncodeHeaders writes the header values to the writer encoded in the event stream format.
-
func NewDecoder(optFns ...func(*DecoderOptions)) *Decoder
NewDecoder initializes and returns a Decoder for decoding event stream messages from the reader provided.
-
func NewEncoder(optFns ...func(*EncoderOptions)) *Encoder
NewEncoder initializes and returns an Encoder to encode Event Stream messages.
Type Details
DecoderOptions struct
DecoderOptions is the Decoder configuration options.
EncoderOptions struct
EncoderOptions is the configuration options for Encoder.
Header struct
Header is a single EventStream Key Value header pair.
Function Details
func EncodeHeaders(w io.Writer, headers Headers) error
EncodeHeaders writes the header values to the writer encoded in the event stream format. Returns an error if a header fails to encode.
141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 |
// File 'aws/protocol/eventstream/encode.go', line 141
|
func NewDecoder(optFns ...func(*DecoderOptions)) *Decoder
NewDecoder initializes and returns a Decoder for decoding event stream messages from the reader provided.
27 28 29 30 31 32 33 34 35 36 37 |
// File 'aws/protocol/eventstream/decode.go', line 27
|
func NewEncoder(optFns ...func(*EncoderOptions)) *Encoder
NewEncoder initializes and returns an Encoder to encode Event Stream messages.
30 31 32 33 34 35 36 37 38 39 40 41 42 |
// File 'aws/protocol/eventstream/encode.go', line 30
|