package server

import "github.com/cloudflare/redoctober/server"

Package server contains the server code for Red October.

Copyright (c) 2013 CloudFlare, Inc.

Index

Variables

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

Source Files

server.go

Version
v0.0.0-20241112165158-ce2ad370627b (latest)
Published
Nov 12, 2024
Platform
linux/amd64
Imports
16 packages
Last checked
1 day ago

Tools for package owners.