sse

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2025 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConnectConfig

type ConnectConfig struct {
	Types []string
}

type Event

type Event struct {
	ID   string
	Type string
	Data string
}

type EventSource added in v0.0.13

type EventSource struct {
	HTTPClient *http.Client
}

func (*EventSource) Connect added in v0.0.13

func (c *EventSource) Connect(req *http.Request, msgs chan<- Event, cfg ConnectConfig) error

Jump to

Keyboard shortcuts

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