result

package
v0.0.0-...-2dd3d35 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	NodeName         string
	CheckId          string
	CheckDescription string
	CheckInterval    uint64
	Id               string
	Status           Status
	Message          string
	Timestamp        time.Time
	ExpiresAt        time.Time
}

type Result

type Result struct {
	Status  Status
	Message string
}

func Fail

func Fail(format string, args ...interface{}) Result

func OK

func OK(format string, args ...interface{}) Result

type Status

type Status uint8
const (
	StatusOK   Status = 0
	StatusFail Status = 1
)

func (Status) String

func (s Status) String() string

Jump to

Keyboard shortcuts

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