proxy

package
v0.0.1-rc1 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Proxy

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

func New

func New(cfg config.Config) *Proxy

func (*Proxy) Live

func (p *Proxy) Live() bool

func (*Proxy) Ready

func (p *Proxy) Ready() bool

func (*Proxy) ServeHTTP

func (p *Proxy) ServeHTTP(w http.ResponseWriter, r *http.Request)

func (*Proxy) Start

func (p *Proxy) Start(ctx context.Context)

func (*Proxy) Stats

func (p *Proxy) Stats() []ServerStat

type Server

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

func (*Server) Healthy

func (s *Server) Healthy() bool

func (*Server) ServeHTTP

func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)

type ServerStat

type ServerStat struct {
	Name        string
	URL         string
	Avg         time.Duration
	Degraded    bool
	Initialized bool
	Requests    int64
}

Jump to

Keyboard shortcuts

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