server: github.com/open-gtd/server/sse Index | Files | Directories

package sse

import "github.com/open-gtd/server/sse"

Index

Package Files

nullRegisterer.go provider.go sse.go

func SetRegisterer Uses

func SetRegisterer(r Registerer)

type ClientClosedNotificationFunc Uses

type ClientClosedNotificationFunc func()

type Envelope Uses

type Envelope struct {
    Topic Topic
    Data  interface{}
}

type NullRegisterer Uses

type NullRegisterer struct{}

func (NullRegisterer) CreatePushDataFunc Uses

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

type Prefix Uses

type Prefix string

type PushDataToSseFunc Uses

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

type Registerer Uses

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

func GetRegisterer Uses

func GetRegisterer() Registerer

type Topic Uses

type Topic string

Directories

PathSynopsis
echo

Package sse is imported by 3 packages. Updated 2017-11-30. Refresh now. Tools for package owners.