template

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DriverName = "plugin_template"

Functions

func Create added in v0.9.0

func Create(id, name string, v *Config, workers map[eosc.RequireId]eosc.IWorker) (eosc.IWorker, error)

func NewFactory

func NewFactory() eosc.IExtenderDriverFactory

NewFactory 创建service_http驱动工厂

func Register

func Register(register eosc.IExtenderDriverRegister)

Register 注册service_http驱动工厂

Types

type Config

type Config struct {
	Plugins plugin.Plugins `json:"plugins" label:"插件配置"`
}

type Proxy

type Proxy struct {
	eoscContext.IChainPro
	// contains filtered or unexported fields
}

func (*Proxy) Destroy

func (p *Proxy) Destroy()

type ProxyDatas

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

func NewProxyDatas

func NewProxyDatas() *ProxyDatas

func (*ProxyDatas) Del

func (p *ProxyDatas) Del(id string)

func (*ProxyDatas) Destroy

func (p *ProxyDatas) Destroy()

func (*ProxyDatas) Reset

func (p *ProxyDatas) Reset(conf map[string]*plugin.Config)

func (*ProxyDatas) Set

func (p *ProxyDatas) Set(id string, conf map[string]*plugin.Config) eoscContext.IChainPro

type Template

type Template struct {
	drivers.WorkerBase
	// contains filtered or unexported fields
}

func NewTemplate

func NewTemplate(id string, name string) *Template

func (*Template) CheckSkill

func (t *Template) CheckSkill(skill string) bool

func (*Template) Create

func (t *Template) Create(id string, conf map[string]*plugin.Config) eocontext.IChainPro

func (*Template) Reset

func (t *Template) Reset(conf interface{}, workers map[eosc.RequireId]eosc.IWorker) error

func (*Template) Start

func (t *Template) Start() error

func (*Template) Stop

func (t *Template) Stop() error

Jump to

Keyboard shortcuts

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