entities

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Status

type Status uint8

Status represents the status of a service.

const (
	// Up represents an "up" status.
	Up Status = iota
	// Down represents a "down" status.
	Down
)

Status constants represent different status values.

func (Status) String

func (s Status) String() string

String returns the string representation of the status.

It returns "up" if the status is Up, "down" if the status is Down, and "Undefined" for any other value.

Parameters:

  • s: The Status value to convert to a string.

Returns:

  • A string representation of the status.

Jump to

Keyboard shortcuts

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