nodecli

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2026 License: AGPL-3.0 Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package nodecli holds the helpers that the pulsequorum and pulsequorum-probe binaries share: the version line, the healthcheck subcommand and the logger. It must not import voter-only packages, so that the probe binary stays slim (ADR 0043).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Healthcheck

func Healthcheck() int

Healthcheck probes the local liveness endpoint. It is used as container HEALTHCHECK because the distroless image has no shell or curl.

func NewLogger

func NewLogger(cfg config.Config) *slog.Logger

NewLogger returns the structured logger configured by LOG_LEVEL and LOG_FORMAT.

func VersionLine

func VersionLine(binary string) string

VersionLine returns the output of the version subcommand for binary.

Types

This section is empty.

Jump to

Keyboard shortcuts

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