probe

package
v1.2.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	TypePolarDBX = "polardbx"
	TypeXStore   = "xstore"
	TypeSelf     = "server"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type LivenessHandler

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

func (*LivenessHandler) Handle

func (handler *LivenessHandler) Handle(r *http.Request) error

func (*LivenessHandler) ServeHTTP

func (handler *LivenessHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type Prober

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

func NewProber

func NewProber(r *http.Request) (*Prober, error)

func (*Prober) Close

func (p *Prober) Close() error

func (*Prober) Liveness

func (p *Prober) Liveness() error

func (*Prober) ProbeReadiness

func (p *Prober) ProbeReadiness() error

type ProxyServer

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

func (*ProxyServer) IsDebugModeEnabled

func (server *ProxyServer) IsDebugModeEnabled() bool

func (*ProxyServer) Start

func (server *ProxyServer) Start(port int) error

type ReadinessHandler

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

func (*ReadinessHandler) Handle

func (handler *ReadinessHandler) Handle(r *http.Request) error

func (*ReadinessHandler) ServeHTTP

func (handler *ReadinessHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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