-
Notifications
You must be signed in to change notification settings - Fork 1
/
worker_service.go
35 lines (27 loc) · 1.27 KB
/
worker_service.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
package fb
type WorkerServiceProviderID string
// type WorkerServiceProvider struct {
// ID WorkerServiceProviderID `json:"id"`
// Roles RoleTypes `json:"roles"`
// Address Address `json:"address"`
// Description string `json:"description"`
// }
// type WorkerServiceProviders []WorkerServiceProvider
type WorkerServiceID string
type WorkerServiceStatus string
const (
WorkerServiceStatusActive WorkerServiceStatus = "ACTIVE"
WorkerServiceStatusDraining WorkerServiceStatus = "DRAINING"
WorkerServiceStatusInactive WorkerServiceStatus = "INACTIVE"
)
// type WorkerService struct {
// ID WorkerServiceID `json:"id"`
// Roles RoleTypes `json:"roles"`
// WorkerServiceProviderID WorkerServiceProviderID `json:"worker-service-provider-id"`
// WorkerServiceProvider WorkerServiceProvider `json:"worker-service-provider"`
// DatabaseID DatabaseID `json:"database-id"`
// WorkersMin int `json:"workers-min"`
// WorkersMax int `json:"workers-max"`
// Status WorkerServiceStatus `json:"status"`
// }
// type WorkerServices []WorkerService