# Functions
MakeCacheControl creates CacheControl from the list of params.
NewCacheControl creates NewCacheControl with the default max age.
NewOnlyFrom creates OnlyFrom middleware with given lookup methods.
# Constants
enum of possible lookup methods.
enum of possible lookup methods.
enum of possible lookup methods.
SSLAuto defines to run both https and http server.
SSLNone defines to run http server only.
SSLStatic defines to run both https and http server.
# Structs
CacheControl sets Cache-Control response header with different ages for different mimes.
ErrorReporter formats error with a given template Supports go-style template with {{.ErrMessage}} and {{.ErrCode}}.
FailoverSelector is a selector with failover, thread-safe.
Http is a proxy server for both http and https.
MatcherMock is a mock implementation of Matcher.
OnlyFrom implements middleware to allow access for a limited list of source IPs.
RandomSelector is a random selector, thread-safe.
RoundRobinSelector is a simple round-robin selector, thread-safe.
SSLConfig holds all ssl params for rest server.
Timeouts consolidate timeouts for both server and transport.
# Interfaces
LBSelector defines load balancer strategy.
Matcher source info (server and route) to the destination url If no match found return ok=false.
MiddlewareProvider interface defines http middleware handler.
Reporter defines error reporting service.
# Type aliases
LBSelectorFunc is a functional adapted for LBSelector to select backend from the list.
OFLookup defines lookup method for source IP.