bootstrap

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2018 License: Apache-2.0 Imports: 1 Imported by: 0

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 BootstrapPlugin)

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

Types

type BootstrapFunc

type BootstrapFunc func() error

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

func (BootstrapFunc) Init

func (b BootstrapFunc) Init() error

Init is a method

type BootstrapPlugin

type BootstrapPlugin interface {
	Init() error
}

BootstrapPlugin is a interface which declares Init method

type PluginItem added in v0.7.1

type PluginItem struct {
	Name   string
	Plugin BootstrapPlugin
}

PluginItem include name and plugin implementation

Jump to

Keyboard shortcuts

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