-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
40 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package model | ||
|
||
type AgentInfo struct { | ||
Connection string `json:"connection_name"` | ||
Result string `json:"result"` | ||
ErrorMsg error `json:"error_msg,omitempty"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,25 @@ | ||
package model | ||
|
||
import ( | ||
"time" | ||
"time" | ||
) | ||
|
||
type SavedBenchmarkInfo struct { | ||
ConnectionID string `gorm:"primaryKey" json:"connection_id"` | ||
Benchmark string `gorm:"column:benchmark;type:longtext" json:"benchmark,omitempty"` | ||
Status string `json:"status"` | ||
SavedTime time.Time `json:"saved_time"` | ||
ConnectionID string `gorm:"primaryKey" json:"connection_id"` | ||
Benchmark string `gorm:"column:benchmark;type:longtext" json:"benchmark,omitempty"` | ||
Status string `json:"status"` | ||
SavedTime time.Time `json:"saved_time"` | ||
} | ||
|
||
type Benchmark struct { | ||
Type string `json:"type"` | ||
Data BenchmarkData `json:"data" gorm:"embedded"` | ||
Type string `json:"type"` | ||
Data BenchmarkData `json:"data" gorm:"embedded"` | ||
} | ||
|
||
type BenchmarkArray []Benchmark | ||
|
||
type BenchmarkData struct { | ||
Desc string `json:"desc"` | ||
Elapsed string `json:"elapsed"` | ||
Result string `json:"result"` | ||
SpecID string `json:"specid"` | ||
Unit string `json:"unit"` | ||
Desc string `json:"desc"` | ||
Elapsed string `json:"elapsed"` | ||
Result string `json:"result"` | ||
SpecID string `json:"specid"` | ||
Unit string `json:"unit"` | ||
} |