Add basic go client

This commit is contained in:
simon987
2019-03-30 11:17:28 -04:00
parent 26dee89672
commit e7672f47ed
7 changed files with 315 additions and 32 deletions

View File

@@ -94,14 +94,6 @@ func UnmarshalResponse(r *http.Response, result interface{}) {
handleErr(err)
}
type WorkerAR struct {
Ok bool `json:"ok"`
Message string `json:"message"`
Content struct {
Worker *storage.Worker `json:"worker"`
} `json:"content"`
}
type RegisterAR struct {
Ok bool `json:"ok"`
Message string `json:"message"`
@@ -148,23 +140,6 @@ type ProjectListAR struct {
} `json:"content"`
}
type TaskAR struct {
Ok bool `json:"ok"`
Message string `json:"message"`
RateLimitDelay float64 `json:"rate_limit_delay,omitempty"`
Content struct {
Task *storage.Task `json:"task"`
} `json:"content"`
}
type ReleaseAR struct {
Ok bool `json:"ok"`
Message string `json:"message"`
Content struct {
Updated bool `json:"updated"`
} `json:"content"`
}
type WebhookSecretAR struct {
Ok bool `json:"ok"`
Message string `json:"message"`