Documentation
¶
Overview ¶
Package entity defines types for core application objects.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Benchmark ¶
type Package ¶
func (*Package) ImportPath ¶
type Point ¶
type Point struct { ResultUUID uuid.UUID EnvironmentUUID uuid.UUID CommitSHA string CommitTime time.Time Value float64 }
Point in a benchmark result timeseries.
type Properties ¶
func (Properties) UUID ¶
func (p Properties) UUID() uuid.UUID
type Result ¶
type Result struct { File *DataFile Line int Benchmark *Benchmark Commit *Commit Environment Properties Metadata Properties Iterations uint64 Value float64 }
type TaskStatus ¶
type TaskStatus uint
TaskStatus describes the state of a task.
const ( TaskStatusCreated TaskStatus = iota + 1 // initial state TaskStatusInProgress // task has been sent to a worker and is in progress TaskStatusResultUploadStarted // result upload has begun TaskStatusResultUploaded // result upload complete TaskStatusCompleteSuccess // completed successfully TaskStatusCompleteError // completed with error TaskStatusHalted // worker stopped processing the task )
Supported task status values.
func TaskStatusCompleteValues ¶
func TaskStatusCompleteValues() []TaskStatus
TaskStatusCompleteValues returns all complete task states.
func TaskStatusPendingValues ¶
func TaskStatusPendingValues() []TaskStatus
TaskStatusPendingValues returns all pending task states.
func TaskStatusString ¶
func TaskStatusString(s string) (TaskStatus, error)
TaskStatusString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.
func TaskStatusValues ¶
func TaskStatusValues() []TaskStatus
TaskStatusValues returns all values of the enum
func (TaskStatus) IsATaskStatus ¶
func (i TaskStatus) IsATaskStatus() bool
IsATaskStatus returns "true" if the value is listed in the enum definition. "false" otherwise
func (TaskStatus) IsComplete ¶
func (s TaskStatus) IsComplete() bool
IsComplete reports whether this task is finished.
func (TaskStatus) IsPending ¶
func (s TaskStatus) IsPending() bool
IsPending reports whether this task is in a pending state.
func (TaskStatus) String ¶
func (i TaskStatus) String() string
type TaskType ¶
type TaskType uint
TaskType describes a type of task.
func TaskTypeString ¶
TaskTypeString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.
func TaskTypeValues ¶
func TaskTypeValues() []TaskType
TaskTypeValues returns all values of the enum
func (TaskType) IsATaskType ¶
IsATaskType returns "true" if the value is listed in the enum definition. "false" otherwise