sseclient: github.com/peterhellberg/sseclient Index | Files | Directories

package sseclient

import "github.com/peterhellberg/sseclient"

Index

Package Files

sseclient.go

func OpenURL Uses

func OpenURL(rawurl string) (chan Event, error)

OpenURL opens a connection to a stream of server sent events

type Event Uses

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

Event represents a Server-Sent Event

Directories

PathSynopsis
example

Package sseclient imports 6 packages (graph) and is imported by 1 packages. Updated 2019-09-12. Refresh now. Tools for package owners.