27 lines
941 B
Go
27 lines
941 B
Go
package model
|
|
|
|
// SimStatusQueueStartMessage asks the Worker to scan its own card database
|
|
// and enqueue a full status synchronization run. A nil Scope (or one whose
|
|
// channels normalize to empty) is a full sync.
|
|
type SimStatusQueueStartMessage struct {
|
|
RunID string `json:"runId"`
|
|
Operation string `json:"operation"`
|
|
TriggeredAt string `json:"triggeredAt"`
|
|
Scope *SyncScope `json:"scope,omitempty"`
|
|
}
|
|
|
|
// SimStatusQueueTaskMessage carries all routing data needed by the Worker for
|
|
// a single asynchronous status query.
|
|
type SimStatusQueueTaskMessage struct {
|
|
RequestID string `json:"requestId"`
|
|
RunID string `json:"runId"`
|
|
Operation string `json:"operation"`
|
|
CardID int64 `json:"cardId"`
|
|
ICCID string `json:"iccid"`
|
|
MSISDN string `json:"msisdn"`
|
|
IMSI string `json:"imsi"`
|
|
ChanKey string `json:"chanKey"`
|
|
TempKey string `json:"tempKey"`
|
|
Operator int `json:"operator"`
|
|
}
|