base

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2021 License: Apache-2.0 Imports: 11 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 struct {
	// contains filtered or unexported fields
}

func New

func New(name string) *Entry

func (*Entry) AfterStart

func (t *Entry) AfterStart(f func())

func (*Entry) AfterStop

func (t *Entry) AfterStop(f func())

func (*Entry) BeforeStart

func (t *Entry) BeforeStart(f func())

func (*Entry) BeforeStop

func (t *Entry) BeforeStop(f func())

func (*Entry) Commands

func (t *Entry) Commands(commands ...*cobra.Command)

func (*Entry) Description

func (t *Entry) Description(description ...string)

func (*Entry) Flags

func (t *Entry) Flags(fn func(flags *pflag.FlagSet))

func (*Entry) InitRT added in v0.0.21

func (t *Entry) InitRT() (err error)

func (*Entry) Middleware added in v0.1.2

func (t *Entry) Middleware(middleware types.Middleware)

func (*Entry) OnCfg

func (t *Entry) OnCfg(fn interface{})

func (*Entry) OnCfgWithName

func (t *Entry) OnCfgWithName(name string, fn interface{})

func (*Entry) OnInit added in v0.0.21

func (t *Entry) OnInit(init func())

func (*Entry) Options

func (t *Entry) Options() entry.Opts

func (*Entry) Plugin

func (t *Entry) Plugin(plugins ...plugin.Plugin)

Plugin 注册插件

func (*Entry) Start

func (t *Entry) Start() error

func (*Entry) Stop

func (t *Entry) Stop() error

Jump to

Keyboard shortcuts

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