ws

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2015 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConnectionHub

type ConnectionHub interface {
	Unsubscribe(connection *websocket.Conn)
	Subscribe(connection *websocket.Conn)
	Send(message message.MessageInterface)
}

type TaggedConnectionHub

type TaggedConnectionHub struct {
	*sync.Mutex
	// contains filtered or unexported fields
}

func NewTaggedConnectionHub

func NewTaggedConnectionHub() *TaggedConnectionHub

func (*TaggedConnectionHub) CanHandle

func (h *TaggedConnectionHub) CanHandle(cmd command.Command) bool

`command.CommandHandler`

func (*TaggedConnectionHub) Handle

func (h *TaggedConnectionHub) Handle(cmd command.Command)

`command.CommandHandler`

func (*TaggedConnectionHub) Send

func (*TaggedConnectionHub) Subscribe

func (h *TaggedConnectionHub) Subscribe(connection *websocket.Conn)

func (*TaggedConnectionHub) Unsubscribe

func (h *TaggedConnectionHub) Unsubscribe(connection *websocket.Conn)

func (*TaggedConnectionHub) Update

func (h *TaggedConnectionHub) Update(args ...interface{})

`util.Observer`

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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