Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrInvalidSequence = errors.New("invalid event sequence")
)
Functions ¶
Types ¶
type Event ¶
type Event struct {
ID []byte // The event ID to set the EventSource object's last event ID value.
Event []byte // A string identifying the type of event described.
Data []byte // The data field for the message.
Retry []byte // The reconnection time (milliseconds). If a non-integer value is specified, the field is ignored.
}
Event is message unit in SSE
Click to show internal directories.
Click to hide internal directories.