Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Event ¶
type Event struct { ID string Text string Status EventStatus StatusText string Done bool // contains filtered or unexported fields }
Event represents a progress event.
type EventStatus ¶
type EventStatus int
EventStatus indicates the status of an action
const ( // Working means that the current task is working Working EventStatus = iota // Done means that the current task is done Done // Error means that the current task has errored Error )
type Writer ¶
Writer can write multiple progress events
func ContextWriter ¶
ContextWriter returns the writer from the context
Click to show internal directories.
Click to hide internal directories.