mirror of
https://github.com/simon987/task_tracker.git
synced 2025-12-14 07:19:02 +00:00
Add basic go client
This commit is contained in:
@@ -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"`
|
||||
|
||||
Reference in New Issue
Block a user