webchan

package
v0.0.0-...-0252bac Latest Latest
Warning

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

Go to latest
Published: May 30, 2016 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 struct {
	// contains filtered or unexported fields
}

func (*Connection) Write

func (c *Connection) Write(message []byte)

for outside

type Server

type Server struct {
	http.Handler
	// contains filtered or unexported fields
}

func NewServer

func NewServer() *Server

func (*Server) BroadcastTo

func (s *Server) BroadcastTo(room, message string, args interface{})

func (*Server) BroadcastToAll

func (s *Server) BroadcastToAll(message string, args interface{})

func (*Server) List

func (s *Server) List(room string) ([]*Connection, error)

func (*Server) ServerHTTP

func (s *Server) ServerHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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