sse

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2020 License: BSD-3-Clause Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleSSE

func HandleSSE(ctx context.Context, e *_event.Events, w http.ResponseWriter, l *log.Entry, lei int)

func WriteEvent

func WriteEvent(w io.Writer, e *_event.Event) error

Types

type SSEReader

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

func NewSSEReader

func NewSSEReader(r io.Reader) *SSEReader

func (*SSEReader) Read

func (s *SSEReader) Read() (*_event.Event, error)

Jump to

Keyboard shortcuts

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