package
0.4.30
Repository: https://github.com/xmidt-org/themis.git
Documentation: pkg.go.dev

# Packages

SPDX-FileCopyrightText: 2017 Comcast Cable Communications Management, LLC SPDX-License-Identifier: Apache-2.0.

# Functions

AddressKey is the logging key for the server's bind address.
New constructs a basic HTTP server instance.
NewListener constructs a net.Listener appropriate for the server configuration.
NewServerChain produces the standard constructor chain for a server, primarily using configuration.
NewTlsConfig produces a *tls.Config from a set of configuration options.
NewTrackingWriter decorates an existing response writer and allows visibility into certain items written to the response.
OnStart produces a closure that will start the given server appropriately.
OnStop produces a closure that will shutdown the server appropriately.
ReadCertPool reads a file that is expected to contain a certificate bundle and returns that bundle as a pool.
ServerKey is the logging key for the server's name.
UseTrackingWriter is an Alice-style constructor that wraps the response writer as a TrackingWriter.

# Variables

ErrHijackerNotSupported is returned by TrackingWriter.Hijack when the underlying http.ResponseWriter does not implement http.Hijacker.
No description provided by the author

# Structs

Busy is an Alice-style decorator that enforces a maximum number of concurrent HTTP transactions.
Constant describes the available options for creating a ConstantHandler.
ConstantHandler is an http.Handler that produces constant content described by a ConstantOptions.
Listener is a configurable net.Listener that provides the following features via options.
MissingValueError indicates a missing header or parameter in a request (or both).
MissingVariableError indicates a missing URI variable, which is a misconfiguration.
Mtls configures the mutual TLS settings for a tls.Config.
Options represent the configurable options for creating a server, typically unmarshalled from an external source.
No description provided by the author
ServerIn holds the set of dependencies required to create an HTTP server in the context of a uber/fx application.
ServerNotConfiguredError is returned when a required server has no configuration key.
Tls represents the set of configurable options for a serverside tls.Config associated with a server.
Unmarshal describes how to unmarshal an HTTP server.

# Interfaces

ChainFactory is a creation strategy for server-specific alice.Chains that will decorate the server handler.
Interface is the expected behavior of a server.
Releasable is implemented by connections returned by Listener that can be marked as freed without closing the connection.
TlsConn is the behavior of a TLS-specific net.Conn.
TrackingWriter is a decorated http.ResponseWriter that allows visibility into various items written to the response.

# Type aliases

No description provided by the author