handler

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Probe

type Probe struct {
	// contains filtered or unexported fields
}

func NewProbe

func NewProbe(healthChecks []util.HealthChecker) *Probe

func (*Probe) ServeHTTP

func (ph *Probe) ServeHTTP(w http.ResponseWriter, r *http.Request)

func (*Probe) Start

func (ph *Probe) Start(ctx context.Context)

type Static

type Static struct {
	// contains filtered or unexported fields
}

func NewStatic

func NewStatic(statusCode int, err error) *Static

func (*Static) ServeHTTP

func (sh *Static) ServeHTTP(w http.ResponseWriter, r *http.Request)

type Upstream

type Upstream struct {
	// contains filtered or unexported fields
}

func NewUpstream

func NewUpstream(roundTripper http.RoundTripper) *Upstream

func (*Upstream) ServeHTTP

func (uh *Upstream) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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