Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Lightning ¶
type Lightning struct {
// contains filtered or unexported fields
}
func New ¶
func New(globalCfg *config.GlobalConfig) *Lightning
func (*Lightning) RunOnce ¶
RunOnce is used by binary lightning and host when using lightning as a library.
- for binary lightning, taskCtx could be context.Background which means taskCtx wouldn't be canceled directly by its cancel function, but only by Lightning.Stop or HTTP DELETE using l.cancel. and glue could be nil to let lightning use a default glue later.
- for lightning as a library, taskCtx could be a meaningful context that get canceled outside, and glue could be a caller implemented glue.
Click to show internal directories.
Click to hide internal directories.