core

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Engine

type Engine struct {
	Router   *gin.Engine
	Database *gorm.DB
	Cron     *cron.Cron
	// contains filtered or unexported fields
}

func New

func New(driver, dsn string) (*Engine, error)

func (*Engine) Boot

func (e *Engine) Boot() error

func (*Engine) PluginInstall

func (e *Engine) PluginInstall(mp *model.Plugin) error

func (*Engine) PluginUninstall

func (e *Engine) PluginUninstall(name string) error

type PluginInstaller

type PluginInstaller struct {
	// contains filtered or unexported fields
}

func NewPluginInstaller

func NewPluginInstaller() *PluginInstaller

func (*PluginInstaller) Get

func (p *PluginInstaller) Get(name string) (plugin.Plugin, error)

func (*PluginInstaller) Install

func (p *PluginInstaller) Install(filename string) (plugin.Plugin, error)

func (*PluginInstaller) Load

func (p *PluginInstaller) Load(filename string) error

func (*PluginInstaller) Range

func (p *PluginInstaller) Range(f func(name string, plugin plugin.Plugin) bool)

func (*PluginInstaller) Uninstall

func (p *PluginInstaller) Uninstall(filename string) error

Jump to

Keyboard shortcuts

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