controllers

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2020 License: LGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Poll

func Poll(c *server.Context)

Poll returns the pending notification on the given channels since the last retrieved id.

func Send

func Send(c *server.Context)

Send is the endpoint for sending a message from client side

Types

type Poller

type Poller interface {
	// Poll returns the pending notification on the given channels since the last retrieved id.
	Poll([]string, int64, *types.Context) []*bustypes.Notification
	// Stop the dispatching loop
	Stop()
	// Start the dispatching loop
	Start()
}

A Poller is a long poll dispatching loop

var Dispatcher Poller

Dispatcher is the long polling dispatching loop

Jump to

Keyboard shortcuts

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