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 NullRegisterer ¶
type NullRegisterer struct{}
func (NullRegisterer) CreatePushDataFunc ¶
func (NullRegisterer) CreatePushDataFunc(prefix Prefix, closeNotify ClientClosedNotificationFunc) PushDataToSseFunc
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
Click to show internal directories.
Click to hide internal directories.