colorizers

package
v0.0.0-...-fef6819 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2021 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ColorizeBGPPeerAdminStatus

func ColorizeBGPPeerAdminStatus(status string) string

ColorizeBGPPeerAdminStatus will set a green or red color depending if the BGP session admin state is enabled or not

func ColorizeBGPPeerStatus

func ColorizeBGPPeerStatus(status string) string

ColorizeBGPPeerStatus will set a green or red color depending if the effective status of the BGP session is healthy or not

func ShouldBeHigherThan

func ShouldBeHigherThan(value int, low int) string

ShouldBeHigherThan will set the text to green if the value is higher than a threshold or red if not

func ShouldBeLowerThan

func ShouldBeLowerThan(value int, high int) string

ShouldBeLowerThan will set the text to green if the value is lower than a threshold or red if not

Types

This section is empty.

Jump to

Keyboard shortcuts

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