Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FormattedMessage ¶
type Status ¶
type Status struct { Operation string `json:"operation"` Status Type `json:"status"` FormattedMessage FormattedMessage `json:"formattedMessage"` }
type StatusItem ¶
type StatusReport ¶
type StatusReport []StatusItem
func NewStatus ¶
func NewStatus(t Type, operation, message string) StatusReport
func (StatusReport) Save ¶
func (r StatusReport) Save(statusFolder string, seqNum int) error
Save persists the status message to the specified status folder using the sequence number. The operation consists of writing to a temporary file in the same folder and moving it to the final destination for atomicity.
Click to show internal directories.
Click to hide internal directories.