healthcheck

package
v0.0.19 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2025 License: MIT Imports: 7 Imported by: 5

Documentation

Overview

Package healthcheck allow to check current status of a node.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Healthcheck

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

Healthcheck allows to check status of the node

func NewHealthcheck

func NewHealthcheck(url url.URL, userAgent string) *Healthcheck

Create a new Healthcheck

func (*Healthcheck) Run

func (h *Healthcheck) Run(ctx context.Context) error

Run returns an error if the node status is not `ready`

type Status

type Status struct {
	Ready bool `json:"ready"`
}

Status of the node

Jump to

Keyboard shortcuts

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