boot

package
v0.9.15 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2025 License: MIT Imports: 20 Imported by: 15

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Boot

func Boot(opt ...Option)

func RegisterCfg added in v0.1.9

func RegisterCfg(name string, cfg interface{})

RegisterCfg register additional config, cfg type must be pointer.

func RegisterDaemon added in v0.5.5

func RegisterDaemon(typ DaemonType, creator plugin.Creator, cfgCreator plugin.CfgCreator)

RegisterDaemon register a Daemon creator and its config creator.

Types

type Booter added in v0.0.3

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

func New

func New(opt ...Option) *Booter

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 Daemon added in v0.5.5

type Daemon interface {
	runner.Runner
	plugin.Plugin
}

type DaemonType added in v0.5.5

type DaemonType string

type Option added in v0.2.6

type Option func(*Booter)

func CfgPath added in v0.3.9

func CfgPath(cfgPath string) Option

func DefaultLogCfg added in v0.6.3

func DefaultLogCfg(cfg *log.Cfg) Option

func EnvPrefix added in v0.2.6

func EnvPrefix(envPrefix string) Option

Jump to

Keyboard shortcuts

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