connection

package
v0.0.0-...-835a63f Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2015 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connection

type Connection interface {
	HandleConnection(conn interface{}, rooms map[string]room.Room)
}

type Incoming

type Incoming struct {
	MessType string
	Room     string
	Content  string
}

type TcpHandler

type TcpHandler struct {
	Connection
}

func (*TcpHandler) HandleConnection

func (h *TcpHandler) HandleConnection(conn net.Conn, rooms map[string]room.Room)

type WSHandler

type WSHandler struct {
	Connection
}

func (*WSHandler) HandleConnection

func (h *WSHandler) HandleConnection(conn websocket.Conn, rooms map[string]room.Room)

Jump to

Keyboard shortcuts

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