Versions in this module Expand all Collapse all v0 v0.0.2 May 20, 2024 v0.0.1 Jan 6, 2024 Changes in this version + func Handler(services map[string]*Service) http.Handler + func LaunchHealthChecks(services map[string]*Service) + func TLSHandler(services map[string]*Service) http.Handler + type Container struct + func NewContainer(name string, network string, port uint16, docker dockerapi.Docker) *Container + func (c *Container) Route(_ http.ResponseWriter, _ *http.Request) (*url.URL, error) + type Failover struct + func (f *Failover) Select(services []*Service, _ *http.Request) int + type LoadBalancer struct + func NewLoadBalancer(host string, strategy Strategy, persistent bool, services []*Service) *LoadBalancer + func (l *LoadBalancer) Route(w http.ResponseWriter, r *http.Request) (*url.URL, error) + type Random struct + func (r *Random) Select(services []*Service, _ *http.Request) int + type Redirect struct + func NewRedirect(remote url.URL) *Redirect + func (r *Redirect) Route(_ http.ResponseWriter, _ *http.Request) (*url.URL, error) + type RoundRobin struct + func (r *RoundRobin) Select(services []*Service, _ *http.Request) int + type Router interface + Route func(http.ResponseWriter, *http.Request) (*url.URL, error) + type Service struct + Health health.Checker + Middlewares []middlewares.Middleware + Router Router + TLS bool + type Strategy interface + Select func([]*Service, *http.Request) int + func NewStrategy(strategy string) (Strategy, error)