boot

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2024 License: MIT Imports: 19 Imported by: 15

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Boot

func Boot()

func RegisterCfg added in v0.1.9

func RegisterCfg(name string, cfg interface{})

RegisterCfg register additional config, cfg type must be struct pointer.

func RegisterSvc

func RegisterSvc(typ SvcType, creator plugin.Creator, cfgCreator plugin.CfgCreator)

Types

type Booter added in v0.0.3

type Booter struct {
	runner.Runner
	// contains filtered or unexported fields
}

func New

func New(cfgPath string) *Booter

func (*Booter) Cancel added in v0.0.3

func (b *Booter) Cancel()

func (*Booter) Init added in v0.0.3

func (b *Booter) Init() error

func (*Booter) OnChildDone added in v0.0.3

func (b *Booter) OnChildDone(child runner.Runner) error

func (*Booter) Start added in v0.0.3

func (b *Booter) Start() error

type Svc added in v0.0.3

type Svc interface {
	runner.Runner
	plugin.Plugin
}

type SvcType

type SvcType string

Jump to

Keyboard shortcuts

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