golug_base

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2021 License: Apache-2.0 Imports: 13 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 added in v0.0.9

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

func (*Entry) AfterStop added in v0.0.9

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

func (*Entry) BeforeStart added in v0.0.9

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

func (*Entry) BeforeStop added in v0.0.9

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{})

func (*Entry) OnCfgWithName

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

func (*Entry) Options

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

func (*Entry) Plugin

func (t *Entry) Plugin(plugin golug_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)

Jump to

Keyboard shortcuts

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