http

package
v5.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 26, 2026 License: AGPL-3.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Balancer

type Balancer interface {
	Build(m registry.Registry) error
	PickService(name string) (*url.URL, error)
	PickEndpoint(path string) (*url.URL, error)
	ListEndpointTargets(path string, reverse ...bool) ([]*url.URL, error)
}

func NewBalancer

func NewBalancer(ctx context.Context, excludeId string) Balancer

type Mux

type Mux interface {
	Handler(r *http.Request) (h http.Handler, pattern string)
	ServeHTTP(w http.ResponseWriter, r *http.Request)
}

Mux wraps a standard MUX as an interface

type Resolver

type Resolver interface {
	ServeHTTP(w http.ResponseWriter, r *http.Request) (bool, error)
	Init(ctx context.Context, serverID string, rr routing.RouteRegistrar)
	Stop()
}

func NewResolver

func NewResolver() Resolver

NewResolver creates an http resolver; If rootOnNotFound is set, non-matching patterns will be rewritten to base path and resolver will be run against it

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL