Documentation ¶
Index ¶
- func DecodeWithLogger(logger aws.Logger) func(*Decoder)
- func EncodeHeaders(w io.Writer, headers Headers) error
- func EncodeWithLogger(logger aws.Logger) func(*Encoder)
- type BoolValue
- type BytesValue
- type ChecksumError
- type Decoder
- type Encoder
- type Header
- type Headers
- type Int16Value
- type Int32Value
- type Int64Value
- type Int8Value
- type LengthError
- type Message
- type StringValue
- type TimestampValue
- type UUIDValue
- type Value
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeWithLogger ¶ added in v1.27.0
DecodeWithLogger adds a logger to be used by the decoder when decoding stream events.
func EncodeHeaders ¶ added in v1.27.0
EncodeHeaders writes the header values to the writer encoded in the event stream format. Returns an error if a header fails to encode.
func EncodeWithLogger ¶ added in v1.27.0
EncodeWithLogger adds a logger to be used by the encode when decoding stream events.
Types ¶
type BoolValue ¶
type BoolValue bool
An BoolValue provides eventstream encoding, and representation of a Go bool value.
type BytesValue ¶
type BytesValue []byte
An BytesValue provides eventstream encoding, and representation of a Go byte slice.
func (BytesValue) String ¶
func (v BytesValue) String() string
type ChecksumError ¶
type ChecksumError struct{}
ChecksumError provides the error for message checksum invalidation errors.
func (ChecksumError) Error ¶
func (e ChecksumError) Error() string
type Decoder ¶
type Decoder struct {
// contains filtered or unexported fields
}
Decoder provides decoding of an Event Stream messages.
func NewDecoder ¶
NewDecoder initializes and returns a Decoder for decoding event stream messages from the reader provided.
type Encoder ¶
type Encoder struct {
// contains filtered or unexported fields
}
Encoder provides EventStream message encoding.
func NewEncoder ¶
NewEncoder initializes and returns an Encoder to encode Event Stream messages to an io.Writer.
type Headers ¶
type Headers []Header
Headers are a collection of EventStream header values.
type Int16Value ¶
type Int16Value int16
An Int16Value provides eventstream encoding, and representation of a Go int16 value.
func (Int16Value) String ¶
func (v Int16Value) String() string
type Int32Value ¶
type Int32Value int32
An Int32Value provides eventstream encoding, and representation of a Go int32 value.
func (Int32Value) String ¶
func (v Int32Value) String() string
type Int64Value ¶
type Int64Value int64
An Int64Value provides eventstream encoding, and representation of a Go int64 value.
func (Int64Value) String ¶
func (v Int64Value) String() string
type Int8Value ¶
type Int8Value int8
An Int8Value provides eventstream encoding, and representation of a Go int8 value.
type LengthError ¶
LengthError provides the error for items being larger than a maximum length.
func (LengthError) Error ¶
func (e LengthError) Error() string
type Message ¶
A Message provides the eventstream message representation.
type StringValue ¶
type StringValue string
An StringValue provides eventstream encoding, and representation of a Go string.
func (StringValue) String ¶
func (v StringValue) String() string
type TimestampValue ¶
An TimestampValue provides eventstream encoding, and representation of a Go timestamp.
func (TimestampValue) Get ¶
func (v TimestampValue) Get() interface{}
Get returns the underlying value.
func (TimestampValue) MarshalJSON ¶ added in v1.27.0
func (v TimestampValue) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaler interface
func (TimestampValue) String ¶
func (v TimestampValue) String() string