bootstrap

package
v1.8.3 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2020 License: Apache-2.0 Imports: 1 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bootstrap

func Bootstrap()

Bootstrap will boot plugins in orders

func InstallPlugin

func InstallPlugin(name string, plugin Plugin)

InstallPlugin is a function which installs plugin, during initiating of go chassis, plugins will be executed

Types

type Func added in v1.5.1

type Func func() error

Func The Func type is an adapter to allow the use of ordinary functions as bootstrapPlugin.

func (Func) Init added in v1.5.1

func (b Func) Init() error

Init is a method

type Plugin added in v1.5.1

type Plugin interface {
	Init() error
}

Plugin is a interface which declares Init method

type PluginItem added in v0.7.1

type PluginItem struct {
	Name   string
	Plugin Plugin
}

PluginItem include name and plugin implementation

Jump to

Keyboard shortcuts

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