outcome

package
v0.9.4 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2025 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 Outcome

type Outcome struct {
	Success           bool                    `json:"success"`
	WorkerID          int                     `json:"worker_id"`
	TaskID            string                  `json:"task_id"`
	ProjectID         string                  `json:"project_id"`
	Baseline          float64                 `json:"baseline"`
	ContractThreshold float64                 `json:"contract_threshold"`
	NetOutput         float64                 `json:"net_output"`
	DurationMS        int64                   `json:"duration_ms"`
	CreatedAt         time.Time               `json:"created_at"`
	Data              []types.RealTimeDERData `json:"data"`
}

func New

func New(workerID int, taskID string, projectID string, data []types.RealTimeDERData, netOutput float64, duration time.Duration) *Outcome

func (*Outcome) LogFields

func (o *Outcome) LogFields() []any

Jump to

Keyboard shortcuts

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