event

package
v0.0.0-...-27d9004 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2016 License: GPL-2.0, GPL-2.0-only, GPL-3.0, + 1 more Imports: 3 Imported by: 0

Documentation

Overview

Event system for client using web socket.

Index

Constants

This section is empty.

Variables

View Source
var (
	LastAwake = time.Now()
)

Functions

This section is empty.

Types

type Event

type Event struct {
	Id   string      `json:"id"`
	Type string      `json:"type"`
	Data interface{} `json:"data"`
}

func (*Event) Init

func (e *Event) Init()

type Listener

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

func NewListener

func NewListener() (list *Listener)

func (*Listener) Close

func (l *Listener) Close()

func (*Listener) Listen

func (l *Listener) Listen() chan *Event

Jump to

Keyboard shortcuts

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