controllers

package
v0.0.0-...-a5b8009 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2015 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Join

func Join(user string, ws *websocket.Conn)

func Leave

func Leave(user string)

Types

type AppController

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

AppController handles the welcome screen that allows user to pick a technology and username.

func (*AppController) Get

func (this *AppController) Get()

Get implemented Get() method for AppController.

func (*AppController) Join

func (this *AppController) Join()

Join method handles POST requests for AppController.

func (*AppController) Prepare

func (this *AppController) Prepare()

Prepare implemented Prepare() method for baseController. It's used for language option check and setting.

type LongPollingController

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

LongPollingController handles long polling requests.

func (*LongPollingController) Fetch

func (this *LongPollingController) Fetch()

Fetch method handles fetch archives requests for LongPollingController.

func (*LongPollingController) Join

func (this *LongPollingController) Join()

Join method handles GET requests for LongPollingController.

func (*LongPollingController) Post

func (this *LongPollingController) Post()

Post method handles receive messages requests for LongPollingController.

func (*LongPollingController) Prepare

func (this *LongPollingController) Prepare()

Prepare implemented Prepare() method for baseController. It's used for language option check and setting.

type Subscriber

type Subscriber struct {
	Name string
	Conn *websocket.Conn // Only for WebSocket users; otherwise nil.
}

type Subscription

type Subscription struct {
	Archive []models.Event      // All the events from the archive.
	New     <-chan models.Event // New events coming in.
}

type WebSocketController

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

WebSocketController handles WebSocket requests.

func (*WebSocketController) Get

func (this *WebSocketController) Get()

Get method handles GET requests for WebSocketController.

func (*WebSocketController) Join

func (this *WebSocketController) Join()

Join method handles WebSocket requests for WebSocketController.

func (*WebSocketController) Prepare

func (this *WebSocketController) Prepare()

Prepare implemented Prepare() method for baseController. It's used for language option check and setting.

Jump to

Keyboard shortcuts

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