client

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2015 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SSEClient

type SSEClient struct {
	http.CloseNotifier

	Listener <-chan pham.JSON
	// contains filtered or unexported fields
}

SSEClient is Server-Sent Events client

func NewSSEClient

func NewSSEClient(url string) (client *SSEClient, err error)

NewSSEClient is SSEClient constructor

func (*SSEClient) Close

func (client *SSEClient) Close() (err error)

Close method is alias of res.Body.Close method

func (*SSEClient) CloseNotify

func (client *SSEClient) CloseNotify() (ch <-chan bool)

CloseNotify implemente http.Closenotifier

Jump to

Keyboard shortcuts

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