probe

package
v1.9.9 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAmqpProbe

func NewAmqpProbe(cfg *config.Amqp) *amqpProbe

func NewHttpProbe

func NewHttpProbe(cfg *config.HttpGet) *httpGetProbe

func NewMongoDBProbe

func NewMongoDBProbe(cfg *config.MongoDB) (*mongoDBProbe, error)

func NewMySQLProbe

func NewMySQLProbe(cfg *config.MySQL) *mySQLProbe

func NewRedisProbe

func NewRedisProbe(cfg *config.Redis) *redisProbe

func NewSmtpProbe added in v1.8.0

func NewSmtpProbe(cfg *config.SMTP) *smtpProbe

func RunProbeServer

func RunProbeServer(ph *Handler, signals chan os.Signal, probePort int) error

Types

type Handler added in v1.1.5

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

func NewProbeHandler

func NewProbeHandler(cfg *config.Ignition) (*Handler, error)

func (*Handler) HandleStatus added in v1.1.5

func (h *Handler) HandleStatus(res http.ResponseWriter, req *http.Request)

func (*Handler) Wait added in v1.1.5

func (h *Handler) Wait(interrupt chan os.Signal) error

type Probe

type Probe interface {
	Exec() error
}

type ProbeResult

type ProbeResult struct {
	Name    string `json:"-"`
	OK      bool   `json:"ok"`
	Message string `json:"message,omitempty"`
}

type StatusResponse

type StatusResponse struct {
	Probes map[string]*ProbeResult `json:"probes"`
}

Jump to

Keyboard shortcuts

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