mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-10-21 20:25:57 +00:00
added code for agent to ping central drone server
This commit is contained in:
10
model/agent.go
Normal file
10
model/agent.go
Normal file
@@ -0,0 +1,10 @@
|
||||
package model
|
||||
|
||||
type Agent struct {
|
||||
ID int64 `json:"id" meddler:"agent_id,pk"`
|
||||
Address string `json:"address" meddler:"agent_addr"`
|
||||
Platform string `json:"platform" meddler:"agent_platform"`
|
||||
Capacity int `json:"capacity" meddler:"agent_capacity"`
|
||||
Created int64 `json:"created_at" meddler:"agent_created"`
|
||||
Updated int64 `json:"updated_at" meddler:"agent_updated"`
|
||||
}
|
Reference in New Issue
Block a user