update

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2017 License: BSD-3-Clause Imports: 6 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConnection

func NewConnection(hub *Hub, ws *websocket.Conn, route route.Route) *connection

Types

type Hub

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

func NewHub

func NewHub(logger logger.Logger, updateOrchestrator *orchestrator.UpdateOrchestrator) *Hub

func (*Hub) Message

func (hub *Hub) Message(updateModel viewmodel.Update)

func (*Hub) Subscribe

func (hub *Hub) Subscribe(connection *connection)

func (*Hub) Unsubscribe

func (hub *Hub) Unsubscribe(connection *connection)

type Message

type Message struct {
	Route       string           `json:"route"`
	Name        string           `json:"name"`
	UpdateModel viewmodel.Update `json:"model"`
}

func NewMessage

func NewMessage(updateModel viewmodel.Update) Message

Jump to

Keyboard shortcuts

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