model

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2024 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 Client

type Client struct {
	ID           int       `json:"id" gorm:"primaryKey"`
	ClientID     string    `json:"client_id" gorm:"column:client_id"`
	TaskID       int       `json:"task_id" gorm:"column:task_id"`
	Task         Task      `gorm:"foreignKey:TaskID;AssociationForeignKey:ID;constraint:OnUpdate:CASCADE,OnDelete:CASCADE"`
	CreatedAt    time.Time `json:"created_at" gorm:"column:created_at"`
	UpdatedAt    time.Time `json:"updated_at" gorm:"column:updated_at"`
	Model        string    `json:"model" gorm:"column:model"`
	Dataset      string    `json:"dataset" gorm:"column:dataset"`
	Type         string    `json:"type" gorm:"column:type"`
	Status       string    `json:"status" gorm:"column:status"`
	CurrentRound int       `json:"current_round" gorm:"column:current_round"`
	TotalRound   int       `json:"total_round" gorm:"column:total_round"`
	Progress     string    `json:"progress" gorm:"column:progress"`
	Accuracy     float32   `json:"accuracy" gorm:"column:accuracy"`
	Loss         float32   `json:"loss" gorm:"column:loss"`
	Cpu          string    `json:"cpu" gorm:"column:cpu"`
	Memory       string    `json:"memory" gorm:"column:memory"`
	Disk         string    `json:"disk" gorm:"column:disk"`
}

type Server

type Server struct {
	ID           int       `json:"id" gorm:"primaryKey"`
	ServerID     string    `json:"server_id" gorm:"column:server_id"`
	TaskID       int       `json:"task_id" gorm:"column:task_id"`
	Task         Task      `gorm:"foreignKey:TaskID;AssociationForeignKey:ID;constraint:OnUpdate:CASCADE,OnDelete:CASCADE"`
	CreatedAt    time.Time `json:"created_at" gorm:"column:created_at"`
	UpdatedAt    time.Time `json:"updated_at" gorm:"column:updated_at"`
	Model        string    `json:"model" gorm:"column:model"`
	Dataset      string    `json:"dataset" gorm:"column:dataset"`
	Type         string    `json:"type" gorm:"column:type"`
	Status       string    `json:"status" gorm:"column:status"`
	CurrentRound int       `json:"current_round" gorm:"column:current_round"`
	TotalRound   int       `json:"total_round" gorm:"column:total_round"`
	Progress     string    `json:"progress" gorm:"column:progress"`
	Accuracy     float32   `json:"accuracy" gorm:"column:accuracy"`
	Loss         float32   `json:"loss" gorm:"column:loss"`
	Cpu          string    `json:"cpu" gorm:"column:cpu"`
	Memory       string    `json:"memory" gorm:"column:memory"`
	Disk         string    `json:"disk" gorm:"column:disk"`
}

type Task

type Task struct {
	ID        int       `json:"id" gorm:"primaryKey"`
	UserName  string    `json:"user_name" gorm:"column:user_name"`
	CreatedAt time.Time `json:"created_at" gorm:"column:created_at"`
	UpdatedAt time.Time `json:"updated_at" gorm:"column:updated_at"`
	Model     string    `json:"model" gorm:"column:model"`
	Dataset   string    `json:"dataset" gorm:"column:dataset"`
	Type      string    `json:"type" gorm:"column:type"`
	Status    string    `json:"status" gorm:"column:status"`
	Progress  string    `json:"progress" gorm:"column:progress"`
	Accuracy  string    `json:"accuracy" gorm:"column:accuracy;size:2048"`
	Loss      string    `json:"loss" gorm:"column:loss;size:2048"`
}

type UserInfo

type UserInfo struct {
	Uuid       string `json:"uuid" gorm:"column:uuid"`
	UserName   string `json:"user_name" gorm:"column:user_name"`
	Password   string `json:"password" gorm:"column:password"`
	Role       int    `json:"role" gorm:"column:role"`
	State      int    `json:"state" gorm:"column:state"`
	CreateTime string `json:"create_time" gorm:"column:create_time"`
}

Jump to

Keyboard shortcuts

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