sse

package
v1.0.167 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	Data []byte
}

type EventStream

type EventStream struct {
	// contains filtered or unexported fields
}

func NewEventStreamFromReader

func NewEventStreamFromReader(stream io.Reader, maxBufferSize int) *EventStream

NewEventStreamFromReader creates an instance of EventStream.

func (*EventStream) Next

func (e *EventStream) Next() (*Event, error)

Jump to

Keyboard shortcuts

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