schema

package
v0.0.0-...-9851e94 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Test_TimeToPrim

func Test_TimeToPrim()

God please for this function name!

Types

type Analysis

type Analysis struct {
	Task          string `bson:"task"`
	TargetIP_Port string `bson:"target_ip_port"`
	Completed     bool   `bson:"completed"`
	Paid          bool   `bson:"paid"`
}

type Bench

type Bench struct {
	NodeName      string             `bson:"node_name,omitempty"`
	TargetIP_Port string             `bson:"target_ip_port,omitempty"`
	NetSpeedToS   int32              `bson:"net_speed_to_s,omitempty"`
	NetSpeedFromS int32              `bson:"net_speed_from_s,omitempty"`
	RamTotal      int64              `bson:"ram_usage,omitempty"`
	RamUsed       int64              `bson:"ram_used,omitempty"`
	RamCached     int64              `bson:"ram_cached,omitempty"`
	RamFree       int64              `bson:"ram_free,omitempty"`
	CpuUser       float64            `bson:"cpu_user,omitempty"`
	CpuSystem     float64            `bson:"cpu_system,omitempty"`
	CpuIdle       float64            `bson:"cpu_idle,omitempty"`
	TimeStamp     primitive.ObjectID `bson:"time_stamp,omitempty"`
}

type Nodes

type Nodes struct {
	NodeName                string `bson:"node_name,omitempty"`
	TargetIP_Port           string `bson:"target_ip_port,omitempty"`
	Active                  bool   `bson:"active,omitempty"`
	TotalCreditAttained     int32  `bson:"total_credit_attained,omitempty"`
	TaskCompletionFrequency int32  `bson:"task_completion_frequency,omitempty"`
}

type Slices

type Slices struct {
	ComputationId string   `bson:"computation_id,omitempty"`
	SplitOrder    int32    `bson:"split_order,omitempty"`
	Content       string   `bson:"content,omitempty"`
	AnalysisArt   Analysis `bson:"analysis_art,omitempty"` // NOTE: Art for Artifact
	MergedOutput  []string `bson:"merged_output,omitempty"`
}

Jump to

Keyboard shortcuts

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