Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommandContext ¶
type CommandContext struct {
Ctx context.Context
PluginManager *manager.PluginManager
// contains filtered or unexported fields
}
func NewCommandContext ¶
func NewCommandContext(cofideConfigFile string) *CommandContext
NewCommandContext returns a command context wired up with a config loader and plugin manager.
func (*CommandContext) HandleSignals ¶
func (cc *CommandContext) HandleSignals()
HandleSignals waits for SIGINT or SIGTERM, then triggers a clean shutdown using the command context. It should be called from a non-main goroutine.
func (*CommandContext) Shutdown ¶
func (cc *CommandContext) Shutdown()
Click to show internal directories.
Click to hide internal directories.