Documentation
¶
Overview ¶
Package launcher
launch procedure: 0. prepare 1. execute init hooks 2. init dependent modules 2.1. init meta 2.2. execute updater if exists 2.3. init registry 3. execute before hooks 4. execute blocked function [blocked] 6. execute grace exit, wait for exit signal
Index ¶
- func Launch(blocked func(ctx context.Context), opt ...Option)
- type HookFN
- type HookTask
- type Option
- func DisableRegistry(disable bool) Option
- func NewOptions(op ...Option) []Option
- func WithBeforeTasks(tasks ...*HookTask) Option
- func WithConcurrencyUpdater(adaptor updater.RecordAdaptor, functions ...*updater.FuncInfo) Option
- func WithContext(ctx context.Context) Option
- func WithInitTasks(tasks ...*HookTask) Option
- func WithUpdater(adaptor updater.RecordAdaptor, functions ...*updater.FuncInfo) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HookTask ¶
type HookTask struct {
// contains filtered or unexported fields
}
HookTask hook task
type Option ¶
type Option func(cfg *config)
Option ...
func WithBeforeTasks ¶
WithBeforeTasks add before tasks
func WithConcurrencyUpdater ¶
func WithConcurrencyUpdater( adaptor updater.RecordAdaptor, functions ...*updater.FuncInfo) Option
func WithUpdater ¶
func WithUpdater( adaptor updater.RecordAdaptor, functions ...*updater.FuncInfo) Option
Click to show internal directories.
Click to hide internal directories.