Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // DefaultNewRegistryFuncs new registry functions DefaultNewRegistryFuncs = map[service.RegisterType]registry.NewRegistryFunc{ service.RegisterType_memory: memory.NewRegistry, service.RegisterType_etcd: etcd.NewRegistry, } // DefaultHiddenVersions hidden versions DefaultHiddenVersions = []string{"0", "0.0", "0.0.0", "v0", "v0.0", "v0.0.0"} // DefaultCompManager default components manager DefaultCompManager = routes.NewCompManager() )
Functions ¶
func RegisterComponentFunc ¶
func RegisterComponentFunc(service *service.Service, fn component.NewComponentFunc)
RegisterComponentFunc regist component funciton into default local route
Types ¶
type Cmd ¶
type Cmd interface {
// Init initialises options
// Note: Use Run to parse command line
Init(opts ...Option) error
// Options set within this command
Options() Options
App() *cli.App
service.LifeCycle
BlockRun() error
}
Cmd command
Click to show internal directories.
Click to hide internal directories.