plugin

package
v0.0.16 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrMissingPlugin = uerror.New(1001, "dependence check failed because missing plugins")
	ErrDependsCycle  = uerror.New(1002, "depends cycle")
)

Functions

func Register

func Register(plugins ...Plugin)

func Setup

func Setup() error

Types

type Plugin

type Plugin interface {
	Load() error
	Name() string

	DependsOn() []string
}

Jump to

Keyboard shortcuts

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