verbose

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// Show cluster and its nodes config
	ShowConfigCluster = show.Cluster(
		showConfigCluster,
		showConfigNode,
		func(c types.Cluster) ([]types.Node, []types.Node) { return c.Writer, c.Reader },
	)

	ShowConfigRegion = show.Region[types.Region](
		ShowConfigCluster,
		showConfigNode,
		func(sr types.Region) ([]types.Cluster, []types.Node) { return sr.Clusters, sr.Nodes },
	)
)
View Source
var (

	//	FAIL example-database-a
	//		FAILED 99.9% ¦ C01: cpu utilization
	//			         % ¦ min: 17.5	avg: 25.0	max: 80.0
	//
	ShowHealthNode = show.Prefix[types.StatusNode](
		fmt.Sprintf("%6s %7s %4s %14s %14s %14s\t%3s %s\n", "STATUS", "%", "UNIT", "MIN", "AVG", "MAX", "ID", "CHECK"),
	).FMap(
		show.Printer2[types.StatusNode, []types.Status, types.StatusNode]{
			A: show.Seq[types.Status]{T: showHealthRule},
			B: showHealthNodeWithSymbol,
			UnApply2: func(sn types.StatusNode) ([]types.Status, types.StatusNode) {
				return sn.Checks, sn
			},
		},
	)
)
View Source
var (

	// Show stats about node
	ShowValueNode = show.Printer2[types.StatusNode, types.StatusNode, []types.Status]{
		A: showInfoNode,
		B: show.Seq[types.Status]{T: showValueRule},
		UnApply2: func(sn types.StatusNode) (types.StatusNode, []types.Status) {
			return sn, sn.Checks
		},
	}
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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