server

package
v0.1.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2017 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package server implements a websocket server that sets up an irc like server.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChatterBox

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

ChatterBox implements a websocket server for sending messages in channels. Similar to IRC.

func New

func New() *ChatterBox

New is the constructor for ChatterBox.

func (*ChatterBox) Handler

func (c *ChatterBox) Handler(w http.ResponseWriter, r *http.Request)

Handler implements http.HandleFunc.

Directories

Path Synopsis
Package state contains our Hub, which is used to store data for a particular channel users are communicating on.
Package state contains our Hub, which is used to store data for a particular channel users are communicating on.
actions
Package actions details boutique.Actions that are used by modifiers to modify the store.
Package actions details boutique.Actions that are used by modifiers to modify the store.
data
Package data holds the Store object that is used by our boutique instances.
Package data holds the Store object that is used by our boutique instances.
middleware
Package middleware provides middleware to our boutique.Container.
Package middleware provides middleware to our boutique.Container.
modifiers
Package modifiers holds all the boutique.Updaters and the boutique.Modifer for the state store.
Package modifiers holds all the boutique.Updaters and the boutique.Modifer for the state store.

Jump to

Keyboard shortcuts

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