poller

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2021 License: BSD-2-Clause Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Tokens  map[string]int64
	Channel chan []Message
}

type Message

type Message struct {
	Version int64       `json:"version"`
	Name    string      `json:"name"`
	Data    interface{} `json:"data"`
	// contains filtered or unexported fields
}

type Poller

type Poller struct {
	// contains filtered or unexported fields
}

func NewPoller

func NewPoller(timeout time.Duration) *Poller

func (*Poller) Broadcast

func (this *Poller) Broadcast(name string, data interface{})

func (*Poller) ServeHTTP

func (this *Poller) ServeHTTP(w http.ResponseWriter, r *http.Request)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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