Documentation ¶
Index ¶
Constants ¶
View Source
const RedirectReasonAdminInitTimeout string = "AdminInitTimeout"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Monitor ¶
type Monitor struct {
// contains filtered or unexported fields
}
func New ¶
func New(timeout time.Duration, datastore dataservices.DataStore, shutdownCtx context.Context) *Monitor
New creates a monitor that when started will wait for the timeout duration and then shutdown the application unless it has been initialized.
func (*Monitor) Start ¶
func (m *Monitor) Start()
Starts starts the monitor. Active monitor could be stopped or shuttted down by cancelling the shutdown context.
func (*Monitor) Stop ¶
func (m *Monitor) Stop()
Stop stops monitor. Safe to call even if monitor wasn't started.
func (*Monitor) WasInitialized ¶
WasInitialized is a system initialization check
func (*Monitor) WasInstanceDisabled ¶
Click to show internal directories.
Click to hide internal directories.