README ¶ goSSEClient Helper for Server-Sent Events Returns a channel of SSEvents. type SSEvent struct { Id string Data []byte } Example sseEvent, err := goSSEClient.OpenSSEUrl(url) if err != nil { panic(err) } for ev := range sseEvent { // do what you want with the event } Expand ▾ Collapse ▴ Documentation ¶ Index ¶ func OpenSSEUrl(url string) (<-chan SSEvent, error) type SSEvent Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func OpenSSEUrl ¶ func OpenSSEUrl(url string) (<-chan SSEvent, error) Types ¶ type SSEvent ¶ type SSEvent struct { Id string Data []byte } Source Files ¶ View all Source files sse.go Click to show internal directories. Click to hide internal directories.