Skip to content

Commit b7e33c6

Browse files
committed
update logo and worker db structure
1 parent 54e4102 commit b7e33c6

File tree

7 files changed

+45
-51
lines changed

7 files changed

+45
-51
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ Demo - https://www.perfcheck.com/
77

88

99
# How to Use
10-
Headline: Scale Your Load Testing Efforts with Loadtester.
10+
Scale Your Load Testing Efforts with Loadtester.
1111

12-
Introduction: Loadtester is a powerful tool that helps you simulate millions of concurrent users by distributing load tests across multiple computers.
12+
Loadtester is a powerful tool that helps you simulate millions of concurrent users by distributing load tests across multiple computers.
1313

1414
Steps:
1515

@@ -20,7 +20,7 @@ Steps:
2020
5. Monitor test results in real-time using built-in reporting and analysis tools.
2121
6. Analyze test results to identify performance bottlenecks and optimize your system for maximum scalability.
2222

23-
Call-to-action: Try Loadtester today and discover how it can help you improve the performance and scalability of your application or website.
23+
Try Loadtester today and discover how it can help you improve the performance and scalability of your application or website.
2424

2525

2626

server/db/models/server.go

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,5 @@
11
package models
22

3-
// type Request struct {
4-
// ID string `gorm:"primaryKey;type:char(36)" json:"id,omitempty"`
5-
// UserID string `json:"userID,omitempty"`
6-
// URL string `json:"url"`
7-
// Requests int64 `json:"requests"`
8-
// Time int `json:"time"`
9-
// Clients int `json:"clients"`
10-
// Headers string `json:"headers"`
11-
// Params string `json:"params"`
12-
// KeepAlive bool `json:"keepAlive"`
13-
// Method string `json:"method"`
14-
// Ips string `json:"ips" bson:"ips"`
15-
// PostData string `json:"postData,omitempty"`
16-
// UpdatedAt int64 `json:"updated_at" bson:"updated_at"`
17-
// CreatedAt int64 `json:"created_at" bson:"created_at"`
18-
// }
193
type Server struct {
204
ID string `gorm:"primaryKey;type:char(36)" json:"id,omitempty"`
215
Alias string `json:"alias,omitempty"`
@@ -26,6 +10,7 @@ type Server struct {
2610
Token string `json:"token"`
2711
Active bool `json:"active"`
2812
Interval int `json:"interval"`
13+
Enabled bool `json:"enabled"`
2914
UpdatedAt int64 `json:"updated_at" bson:"updated_at"`
3015
CreatedAt int64 `json:"created_at" bson:"created_at"`
3116
}

server/db/models/worker.go

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
11
package models
22

33
type Worker struct {
4-
ID string `gorm:"primaryKey;type:char(36)" json:"id,omitempty"`
5-
UserID string `json:"userID,omitempty"`
6-
ReqId string `json:"req_id"`
7-
ServerId string `json:"serverId"`
8-
Server *Server `gorm:"foreignkey:ServerId" json:"server"`
9-
Status bool `json:"status"`
10-
Time int `json:"time"`
11-
Clients int `json:"clients"`
12-
Created int64 `json:"created" bson:"created"`
13-
UpdatedAt int64 `json:"updated_at" bson:"updated_at"`
14-
CreatedAt int64 `json:"created_at" bson:"created_at"`
15-
Error string `json:"error" bson:"created_at"`
4+
ID string `gorm:"primaryKey;type:char(36)" json:"id,omitempty"`
5+
UserID string `json:"userID,omitempty"`
6+
ReqId string `json:"req_id"`
7+
ServerId string `json:"serverId"`
8+
Status bool `json:"status"`
9+
Time int `json:"time"`
10+
Clients int `json:"clients"`
11+
Created int64 `json:"created" bson:"created"`
12+
UpdatedAt int64 `json:"updated_at" bson:"updated_at"`
13+
CreatedAt int64 `json:"created_at" bson:"created_at"`
14+
Error string `json:"error" bson:"created_at"`
1615
}
1716

1817
type WorkerList struct {

server/db/providers/sql/worker.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ func (p *provider) GetWorkerByReqId(ctx context.Context, id string) ([]models.Wo
100100
return workers, errors.New("Request id missing.")
101101
}
102102

103-
result := p.db.Joins("Server", p.db.Select("Alias", "Description", "IP", "CreatedAt")).Where("req_id = ?", id).Find(&workers)
103+
result := p.db.Where("req_id = ?", id).Find(&workers)
104104

105105
if result.Error != nil {
106106
return workers, result.Error

ui/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
<html lang="en">
33
<head>
44
<meta charset="UTF-8" />
5-
<link rel="icon" type="image/svg+xml" href="/logo.svg" />
6-
<title>Perfcheck.com</title>
5+
<link rel="icon" type="image/svg+xml" href="./src/assets/logo.svg" />
6+
<title>Perfcheck.com | Scale Your Load Testing Efforts with Loadtester.</title>
77
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
88
<meta
99
name="title"

0 commit comments

Comments
 (0)