Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetupLogging ¶
func SetupLogging(identity *appidentity.Identity) *logging.Logger
SetupLogging creates a CLI logger using the app identity.
Types ¶
type SignalControl ¶
type SignalControl struct {
Context context.Context
Interrupted <-chan struct{}
Forced <-chan struct{}
// contains filtered or unexported fields
}
SignalControl binds SIGINT and SIGTERM to a cancelable command context.
func StartSignalControl ¶
StartSignalControl starts a Fulmen listener for the first shutdown signal.
func (*SignalControl) Stop ¶
func (c *SignalControl) Stop()
Stop cancels the command context and waits for listeners to end.