util

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2026 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Backoff

func Backoff(attempt int) time.Duration

Backoff returns exponential backoff delay for attempt number (0-based).

func ParseSSE

func ParseSSE(ctx context.Context, r io.Reader, out chan<- map[string]any, errs chan<- error)

ParseSSE reads server-sent events and emits parsed JSON data objects.

Types

This section is empty.

Jump to

Keyboard shortcuts

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