lightning

package
v5.1.1+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 23, 2021 License: Apache-2.0 Imports: 36 Imported by: 0

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) GoServe

func (l *Lightning) GoServe() error

func (*Lightning) RunOnce

func (l *Lightning) RunOnce(taskCtx context.Context, taskCfg *config.Config, glue glue.Glue) error

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.

func (*Lightning) RunServer

func (l *Lightning) RunServer() error

func (*Lightning) Stop

func (l *Lightning) Stop()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL