added code for agent to ping central drone server

This commit is contained in:
Brad Rydzewski
2016-05-11 14:37:56 -07:00
parent 2e709fb6a9
commit 752ce496d5
13 changed files with 347 additions and 3 deletions

10
model/agent.go Normal file
View 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"`
}