web

package
v0.2.0-beta Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2016 License: MIT Imports: 15 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// ProtocolVersion is the version of the bancho protocol.
	ProtocolVersion = 19
)
View Source
const StandardPage = `` /* 632-byte string literal not displayed */

StandardPage is the page that is shown if c.ppy.sh is visited with an User-Agent that is not osu!.

Variables

This section is empty.

Functions

func BanchoConnectionHandler

func BanchoConnectionHandler(w http.ResponseWriter, r *http.Request)

BanchoConnectionHandler takes inbound connections to the bancho server (c.ppy.sh) and makes a sensed response.

func Start

func Start(addrHTTP, addrHTTPS string)

Start begins the webserver for bancho, and starts processing requests to the server.

Types

type ConnectionHandler

type ConnectionHandler struct{}

ConnectionHandler is a very basic connection handler, used to handle the different hosts of the osu! server, and forward requests to the right engine.

func (ConnectionHandler) ServeHTTP

func (c ConnectionHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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