eventstream

package
v0.0.1-alpha.30 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 5, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const ContentType = "application/vnd.amazon.eventstream"

ContentType is the MIME type for AWS binary event stream responses.

Variables

This section is empty.

Functions

func EncodeMessage

func EncodeMessage(headers []Header, payload []byte) []byte

EncodeMessage returns one AWS event-stream binary message.

func WriteMessage

func WriteMessage(w io.Writer, headers []Header, payload []byte) error

WriteMessage encodes and writes a single AWS event-stream message.

Types

type Header struct {
	Name  string
	Value string
}

Header is a string-valued AWS event-stream header.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL