Documentation
¶
Overview ¶
Package workgate provides atomic admission and idle maintenance reservations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Gate ¶
type Gate struct {
// contains filtered or unexported fields
}
func (*Gate) Enter ¶
Enter waits while reserved for maintenance. An operation is not accepted until it owns a ticket. Existing tickets always run to completion.
func (*Gate) PauseIfIdle ¶
func (*Gate) SetDisabled ¶
SetDisabled changes admission without cancelling already accepted work or disturbing an independent managed-update reservation.
Click to show internal directories.
Click to hide internal directories.