round

package
v0.3.1-alpha1 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Round

type Round struct {

	// ID can also represent the round number
	ID uint64 `json:"id,omitempty" gorm:"primary_key"`

	// Start represents the start of a given round
	Start time.Time `json:"start,omitempty" gorm:"not null;default:CURRENT_TIMESTAMP"`

	// Note is any output from the check that is human readable.
	Note string `json:"note,omitempty"`

	// Err represents the error from the output
	Err string `json:"err,omitempty"`

	// Finish is finish time of a given round
	Finish *time.Time `json:"finish,omitempty"`

	// Checks is a collection of child checks
	Checks []check.Check `json:"checks,omitempty" gorm:"foreignkey:RoundID; constraint:OnUpdate:RESTRICT,OnDelete:CASCADE"`
}

Round Model holds the information about all the rounds that have passed

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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