engine

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2024 License: GPL-3.0 Imports: 22 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	// contains filtered or unexported fields
}

func New

func New(flags ...cli.Flag) *App

func NewWithConfig added in v0.0.6

func NewWithConfig(config *core.ConfigEngine, flags ...cli.Flag) *App

func NewWithEngine

func NewWithEngine(engine *core.DipperEngine, flags ...cli.Flag) *App

func (*App) Engine

func (a *App) Engine() *core.DipperEngine

func (*App) Hook

func (a *App) Hook(typeHook HookType, callback HookFunc)

func (*App) Run

func (a *App) Run(args []string) error

func (*App) Stop

func (a *App) Stop()

type HookFunc

type HookFunc func(dipper *core.DipperEngine, c *cli.Context) error

type HookType

type HookType int8
const (
	BeforeStart HookType = 1
	AfterStart  HookType = 2
	BeforeStop  HookType = 3
)

Jump to

Keyboard shortcuts

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