base

package
Version: v0.0.19 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 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) Dix

func (t *Entry) Dix(data ...interface{})

func (*Entry) Flags

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

func (*Entry) Init

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

func (*Entry) OnCfg

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

OnCfg 项目配置加载解析

func (*Entry) OnCfgWithName

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

func (*Entry) Options

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

func (*Entry) Plugin

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

Plugin 注册插件

func (*Entry) Start

func (t *Entry) Start() error

func (*Entry) Stop

func (t *Entry) Stop() error

func (*Entry) Version

func (t *Entry) Version(v string)

Source Files

Jump to

Keyboard shortcuts

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