server

package
v0.0.0-...-deb1d55 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: BSD-2-Clause Imports: 16 Imported by: 3

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.

Jump to

Keyboard shortcuts

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