Documentation ¶
Index ¶
Constants ¶
View Source
const ( ErrAlreadyStarted = "already started" ErrAlreadyStopped = "already stopped" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SSP ¶
type SSP struct {
// contains filtered or unexported fields
}
SSP is a Start-Stop Protector. It protects anything from multiple starts, multiple stops and simultaneous start-stops. This is a helper object which provides convenient access to functions used to protect starting and stopping procedures from stupid users.
func (*SSP) BeginStart ¶
func (*SSP) CompleteStart ¶
func (ssp *SSP) CompleteStart()
func (*SSP) CompleteStop ¶
func (ssp *SSP) CompleteStop()
Click to show internal directories.
Click to hide internal directories.