golug_entry

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AfterStart

type AfterStart = dix_run.AfterStartCtx

type AfterStop

type AfterStop = dix_run.AfterStopCtx

type BeforeStart

type BeforeStart = dix_run.BeforeStartCtx

type BeforeStop

type BeforeStop = dix_run.BeforeStopCtx

type Entry

type Entry interface {
	Version(v string)
	Dix(data ...interface{})
	OnCfg(fn interface{})
	Plugin(plugin golug_plugin.Plugin)
	Description(description ...string)
	Flags(fn func(flags *pflag.FlagSet))
	Commands(commands ...*cobra.Command)
	WithBeforeStart(func(_ *BeforeStart))
	WithAfterStart(func(_ *AfterStart))
	WithBeforeStop(func(_ *BeforeStop))
	WithAfterStop(func(_ *AfterStop))
}

type Option

type Option func(o *Options)

type Options

type Options struct {
	Initialized bool
	Port        uint
	Name        string
	Version     string
	Command     *cobra.Command
}

type RunEntry

type RunEntry interface {
	Init() error
	Start() error
	Stop() error
	Options() Options
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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