sse

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2026 License: MPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var WriteTimeout = 5 * time.Second

Functions

func Register

func Register[I any](api core.API, op core.Operation, eventTypeMap map[string]any, handler func(ctx context.Context, input *I, send Sender))

Types

type Message

type Message struct {
	ID    int
	Data  any
	Retry int
}

type Sender

type Sender func(Message) error

func (Sender) Data

func (s Sender) Data(data any) error

Jump to

Keyboard shortcuts

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