Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Message ¶
type Message struct {
MessageID int64
Content string
Lease string
Priority int
Status MessageStatus
Data MessageAttr
LastHeartbeat time.Time
}
type MessageAttr ¶
type MessageAttr struct {
Error string `json:"error,omitempty"`
Host string `json:"host,omitempty"`
Image string `json:"image,omitempty"`
Progress int64 `json:"progress,omitempty"`
Size int64 `json:"size,omitempty"`
Spec []byte `json:"spec,omitempty"`
// Deprecate
Blobs []Blob `json:"blobs,omitempty"`
}
func (*MessageAttr) Scan ¶
func (n *MessageAttr) Scan(value any) error
type MessageStatus ¶
type MessageStatus uint64
const ( StatusPending MessageStatus = 0 StatusProcessing MessageStatus = 10 StatusCompleted MessageStatus = 20 StatusFailed MessageStatus = 30 )
Click to show internal directories.
Click to hide internal directories.