Versions in this module Expand all Collapse all v0 v0.1.0 Aug 1, 2023 Changes in this version + const ALERTMANAGER + const DISTRIBUTOR + const FRONTEND + const RULER + type Authentication struct + func NewAuthentication(config *Config) *Authentication + func (a Authentication) Wrap(next http.Handler) http.Handler + type Config struct + Admin ServerConfig + Alertmanager Upstream + Distributor Upstream + QueryFrontend Upstream + Ruler Upstream + Server ServerConfig + Tenants []Tenant + func Init(filePath string) (Config, error) + type CustomTransport struct + func (ct *CustomTransport) RoundTrip(req *http.Request) (*http.Response, error) + type DNSResolver interface + LookupIP func(string) ([]net.IP, error) + type DefaultDNSResolver struct + func (d DefaultDNSResolver) LookupIP(hostname string) ([]net.IP, error) + type Gateway struct + func New(config *Config, srv *server.Server) (*Gateway, error) + func (g *Gateway) Start(config *Config) + type Proxy struct + func NewProxy(targetURL string, upstream Upstream, component string) (*Proxy, error) + func (p *Proxy) Handler(w http.ResponseWriter, r *http.Request) + type ServerConfig struct + Address string + IdleTimeout time.Duration + Port int + ReadTimeout time.Duration + WriteTimeout time.Duration + type Tenant struct + Authentication string + ID string + Password string + Username string + type Upstream struct + DNSRefreshInterval time.Duration + HTTPClientDialerTimeout time.Duration + HTTPClientResponseHeaderTimeout time.Duration + HTTPClientTLSHandshakeTimeout time.Duration + HTTPClientTimeout time.Duration + Paths []string + URL string