package
0.0.0-20240611155925-ec252d0ef534
Repository: https://github.com/andrewhowdencom/x40.link.git
Documentation: pkg.go.dev

# Packages

Package message provides common utilities for working with HTTP messages.

# Functions

AllOf combines multiple matchers into a single matcher func.
Error cancels the request processing.
Intercept is a type of middleware that offloads messages that are destined for the "default" handler and instead redirects them to some other handler.
IsGRPC offloads requests to the gRPC mux.
IsH2C does the detection of the initial message.
IsHost matches whether or not a request matches a specific host.
New creates a server instance, configured appropriately.
ResolveOptions generates a server with the appropriate configuration, based on Viper and other required dependencies.
No description provided by the author
WithError adds the error to the current request.
WithGRPC enables GRPC to be served over the.
WithH2C allows piping the connection to a HTTP/2 server, which will hijack the request to use the HTTP/2 protocol but over the initially supplied connection.
WithListenAddress indicates the server should start on the specific address.
WithMiddleware appends middleware to the default handler.
WithStorage allows starting the service with a specific storage engine.

# Constants

Ctx* are context value keys.

# Variables

ErrDependencyFailure just means there was a failure resolving a dependency.
Err* are sentinel errors.
Err* are sentinel errors.
Problem* are common types of problems.

# Type aliases

MatcherFunc is a function that can be used by the interceptor to match requests.
Option is a function type that modifies the behavior of the server.