Versions in this module Expand all Collapse all v0 v0.2.0 Aug 6, 2026 v0.1.0 Aug 5, 2026 Changes in this version + const DefaultIdleTimeout + var ErrUnauthorized = errors.New("rconhttp: unauthorized") + type Backend struct + Addr string + Password string + type Handler struct + func New(backend Backend, opts ...Option) *Handler + func (h *Handler) Close() error + func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) + type Option func(*config) + func WithClient(cl *rconclient.Client) Option + func WithIdleTimeout(d time.Duration) Option + func WithLogger(l *slog.Logger) Option + func WithResolver(res Resolver) Option + type Resolver interface + Resolve func(r *http.Request) (Backend, error) + func TokenResolver(byToken map[string]Backend) Resolver + type ResolverFunc func(r *http.Request) (Backend, error) + func (f ResolverFunc) Resolve(r *http.Request) (Backend, error)