check

package
v0.3.7-alpha1 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Check

type Check struct {
	// RoundID is a parent service of a given check
	ServiceID uuid.UUID `json:"service_id,omitempty" gorm:"primary_key;type:uuid;auto_increment:false"`

	// RoundID is a parent round of a given check
	RoundID uint64 `json:"round_id,omitempty" gorm:"primary_key;auto_increment:false"`

	// Log represents an comment/log of a check. This will be helpful for debugging purposes during the competition
	Log string `json:"log,omitempty"`

	// Err represents the details of an error if check was failed
	Err string `json:"err,omitempty"`

	// Passed tells weather a given check passed/failed
	Passed *bool `json:"passed,omitempty" gorm:"not null;default:false"`
}

Check model contains an instance of a single check performed on a single host at a given round for a given check_service. Check's ID is defined by combined key of ServiceID, and RoundID

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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