Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DisableLog ¶
func DisableLog()
DisableLog disables all library log output. Logging output is disabled by default until UseLogger is called.
Types ¶
type Interceptor ¶ added in v0.5.0
type Interceptor struct { // Notifier handles sending shutdown notifications. Notifier Notifier // contains filtered or unexported fields }
Interceptor contains channels and methods regarding application shutdown and interrupt signals.
func Intercept ¶ added in v0.3.0
func Intercept() (Interceptor, error)
Intercept starts the interception of interrupt signals and returns an `Interceptor` instance. Note that any previous active interceptor must be stopped before a new one can be created.
func InterceptNoSignal ¶ added in v0.5.0
func InterceptNoSignal() Interceptor
InterceptNoSignal returns an interceptor that does not listen to process signals and relies on calls to ShutdownRequest to terminate.
func (*Interceptor) Alive ¶ added in v0.5.0
func (c *Interceptor) Alive() bool
Alive returns true if the main interrupt handler has not been killed.
func (*Interceptor) Listening ¶ added in v0.5.0
func (c *Interceptor) Listening() bool
Listening returns true if the main interrupt handler has been started, and has not been killed.
func (*Interceptor) RequestShutdown ¶ added in v0.5.0
func (c *Interceptor) RequestShutdown()
RequestShutdown initiates a graceful shutdown from the application.
func (*Interceptor) ShutdownChannel ¶ added in v0.5.0
func (c *Interceptor) ShutdownChannel() <-chan struct{}
ShutdownChannel returns the channel that will be closed once the main interrupt handler has exited.
type Notifier ¶ added in v0.6.0
type Notifier struct {
// contains filtered or unexported fields
}
Notifier handles notifications about status of LND.
func (*Notifier) NotifyReady ¶ added in v0.6.0
NotifyReady notifies other applications that RPC is ready.