healthcheck

package
v0.9.17 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Overview

Package healthcheck implements the logic for healthcheck binary.

To use this library, create a package with main function as:

func main() {
  os.Exit(healthcheck.Run())
}

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run() (ret int)

Run runs healthcheck.

It returns 0 to indicate success, and non-zero to indicate failure.

Your main function usually should look like:

func main() {
  os.Exit(healthcheck.Run())
}

func RunArgs

func RunArgs(args []string) error

RunArgs is the more customizable version of Run.

In production code it expects you to pass in os.Args as the arg.

Types

This section is empty.

Jump to

Keyboard shortcuts

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