sse

package
v2.0.0-...-44ffc9c Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUrlOpenFail alerror.ALSDKError = *alerror.NewAlError("failed to open url")
)

Functions

func OpenUrl

func OpenUrl(url string) (chan Event, error)

OpenUrl - Listen for stream events on the given URL

Types

type Event

type Event struct {
	Name string
	ID   string
	Data map[string]interface{}
}

Jump to

Keyboard shortcuts

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