sse

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTransport

func NewTransport(options ...SSETransportOption) server.Transport

Types

type CommentEvent

type CommentEvent struct {
	Comment []byte
}

func (*CommentEvent) MarshalTo

func (ev *CommentEvent) MarshalTo(w io.Writer) error

type Event

type Event struct {
	ID    []byte
	Data  []byte
	Event []byte
	Retry []byte
}

func (*Event) MarshalTo

func (ev *Event) MarshalTo(w io.Writer) error

type KeepAliveOption

type KeepAliveOption struct {
	Interval time.Duration
}

type SSETransportOption

type SSETransportOption interface {
	// contains filtered or unexported methods
}

Jump to

Keyboard shortcuts

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