Documentation ¶
Overview ¶
Package server contains the server code for Red October.
Copyright (c) 2013 CloudFlare, Inc.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultIndexHTML = ""
DefaultIndexHTML can be used to customize the package default index page when static path is not specified
Functions ¶
func NewServer ¶
func NewServer(staticPath, addr, caPath string, certPaths, keyPaths []string, useSystemdSocket bool) (*http.Server, net.Listener, error)
NewServer starts an HTTPS server the handles the redoctober JSON API. Each of the URIs in the functions map above is setup with a separate HandleFunc. Each HandleFunc is an instance of queueRequest above.
Returns a valid http.Server handling redoctober JSON requests (and its associated listener) or an error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.