sse

package
v0.0.0-...-31e18c8 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2017 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetRegisterer

func SetRegisterer(r Registerer)

Types

type ClientClosedNotificationFunc

type ClientClosedNotificationFunc func()

type Envelope

type Envelope struct {
	Topic Topic
	Data  interface{}
}

type NullRegisterer

type NullRegisterer struct{}

func (NullRegisterer) CreatePushDataFunc

func (NullRegisterer) CreatePushDataFunc(prefix Prefix, closeNotify ClientClosedNotificationFunc) PushDataToSseFunc

type Prefix

type Prefix string

type PushDataToSseFunc

type PushDataToSseFunc func(topic Topic, data interface{})

type Registerer

type Registerer interface {
	CreatePushDataFunc(prefix Prefix, closeNotify ClientClosedNotificationFunc) PushDataToSseFunc
}

func GetRegisterer

func GetRegisterer() Registerer

type Topic

type Topic string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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