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"`
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.