package
0.0.0-20191108204735-d6832148266e
Repository: https://github.com/kinecosystem/go.git
Documentation: pkg.go.dev
# Functions
HeadersMiddleware sends headers.
LoggingMiddleware is a middleware that logs requests to the logger.
NewAPIMux returns a new server mux configured with the common defaults used for a web API in stellar.
NewMux returns a new server mux configured with the common defaults used across all stellar services.
Run starts an http server using the provided config struct.
StripTrailingSlashMiddleware strips trailing slash.
# Constants
DefaultListenAddr represents the default address and port on which a server will listen, provided it is not overridden by setting the `ListenAddr` field on a `Config` struct.
DefaultShutdownGracePeriod represents the default time in which the running process will allow outstanding http requests to complete before aborting them.
# Structs
Config represents the configuration of an http server that can be provided to `Run`.
# Interfaces
SimpleHTTPClientInterface helps mocking http.Client in tests.