sse

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2026 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 Hub

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

func NewHub

func NewHub(events provider.EventProvider, logger *slog.Logger) *Hub

func (*Hub) ActiveConnections

func (h *Hub) ActiveConnections() int

func (*Hub) Close

func (h *Hub) Close() error

func (*Hub) Register

func (h *Hub) Register(ctx context.Context, topics ...provider.Topic) (<-chan provider.Event, error)

Jump to

Keyboard shortcuts

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