server

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigureServeMux

func ConfigureServeMux(s *http.ServeMux, conf *config.Config, router proxy.Router, logger *apexlog.Logger)

ConfigureServeMux configures the main mux with a handler for SystemInfo and another for everything else

func Run

func Run(conf *config.Config, router proxy.Router, logger *apexlog.Logger)

Run is the main entrypoint used to start the server.

Types

type EncodingResponseWriter added in v1.1.0

type EncodingResponseWriter interface {
	http.ResponseWriter
	http.Flusher
}

func NewEncodingResponseWriter added in v1.1.0

func NewEncodingResponseWriter(w http.ResponseWriter, compressionType util.CompressionType, conf *config.Config) (EncodingResponseWriter, error)

Jump to

Keyboard shortcuts

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