Documentation ¶
Index ¶
- Constants
- Variables
- type ActionRow
- type ActionRowStatus
- type AsyncStatus
- func (status *AsyncStatus) Cancel(command string, err error) error
- func (status *AsyncStatus) CancelAll(cancelMsg string)
- func (status *AsyncStatus) CheckCommandInProgress(command string) bool
- func (status *AsyncStatus) GetContextWithCancel(commandId int) (context.Context, context.CancelFunc, error)
- func (status *AsyncStatus) GetStatus(current bool, filter string, last int) []ActionRowStatus
- func (status *AsyncStatus) InProgress() bool
- func (status *AsyncStatus) Start(command string) (int, context.Context)
- func (status *AsyncStatus) Stop(commandId int, err error)
Constants ¶
View Source
const ( InProgressStatus = "in progress" SuccessStatus = "success" CancelStatus = "cancel" ErrorStatus = "error" )
View Source
const NotFromAPI = int(-1)
Variables ¶
View Source
var Current = &AsyncStatus{ log: apexLog.WithField("logger", "status"), }
Functions ¶
This section is empty.
Types ¶
type ActionRow ¶
type ActionRow struct { ActionRowStatus Ctx context.Context Cancel context.CancelFunc }
type ActionRowStatus ¶
type AsyncStatus ¶
func (*AsyncStatus) CancelAll ¶
func (status *AsyncStatus) CancelAll(cancelMsg string)
func (*AsyncStatus) CheckCommandInProgress ¶
func (status *AsyncStatus) CheckCommandInProgress(command string) bool
func (*AsyncStatus) GetContextWithCancel ¶
func (status *AsyncStatus) GetContextWithCancel(commandId int) (context.Context, context.CancelFunc, error)
func (*AsyncStatus) GetStatus ¶
func (status *AsyncStatus) GetStatus(current bool, filter string, last int) []ActionRowStatus
func (*AsyncStatus) InProgress ¶
func (status *AsyncStatus) InProgress() bool
func (*AsyncStatus) Stop ¶
func (status *AsyncStatus) Stop(commandId int, err error)
Click to show internal directories.
Click to hide internal directories.