entry

package
v0.1.17 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry interface {
	AfterStop(func())
	BeforeStop(func())
	AfterStart(func())
	BeforeStart(func())
	Watcher(projects ...string)
	Middleware(middleware types.Middleware)
	Description(description ...string)
	Flags(flags cli.Flag)
	Commands(commands *cli.Command)
}

type InitHandler

type InitHandler interface {
	Init()
}

type Opt

type Opt func(o *Opts)

type Opts

type Opts struct {
	Name          string
	BeforeStarts  []func()
	AfterStarts   []func()
	BeforeStops   []func()
	AfterStops    []func()
	Command       *cli.Command
	Handlers      []InitHandler
	WatchProjects []string
	Middlewares   []types.Middleware
}

type Runtime

type Runtime interface {
	InitRT()
	Start() error
	Stop() error
	Options() Opts
	MiddlewareInter(middleware types.Middleware)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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