package
0.1.14
Repository: https://github.com/reddec/monexec.git
Documentation: pkg.go.dev

# README

Sample plugin

package plugins

import (
	"context"
	"github.com/reddec/monexec/pool"
)


type MyPlugin struct {}

func (p *MyPlugin) Prepare(ctx context.Context, pl *pool.Pool) error { return nil }

func (p *MyPlugin) OnSpawned(ctx context.Context, sv pool.Instance) {}

func (p *MyPlugin) OnStarted(ctx context.Context, sv pool.Instance) {}

func (p *MyPlugin) OnStopped(ctx context.Context, sv pool.Instance, err error) {}

func (p *MyPlugin) OnFinished(ctx context.Context, sv pool.Instance) {}

func (p *MyPlugin) MergeFrom(other interface{}) error { return nil}

func (a *MyPlugin) Close() error { return nil }

func init() {
    registerPlugin("myPlugin", func(file string) PluginConfigNG {
        return &MyPlugin{}
    })
}

# Functions

Asset loads and returns the asset for the given name.
AssetDir returns the file names below a certain directory embedded in the file by go-bindata.
AssetInfo loads and returns the asset info for the given name.
AssetNames returns the names of the assets.
Build but not fill one config.
No description provided by the author
No description provided by the author
MustAsset is like Asset but panics when Asset would return an error.
RestoreAsset restores an asset under the given directory.
RestoreAssets restores an asset under the given directory recursively.

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
go:generate go-bindata -pkg plugins -prefix ../ui/dist/ ../ui/dist/.
No description provided by the author

# Interfaces

Base interface for any future plugins.