app

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Name = "plugin_app"
)

Variables

This section is empty.

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 Register

func Register(register eosc.IExtenderDriverRegister)

Types

type App

type App struct {
	drivers.WorkerBase
}

func (*App) CheckSkill

func (a *App) CheckSkill(skill string) bool

func (*App) Destroy

func (a *App) Destroy()

func (*App) DoFilter

func (a *App) DoFilter(ctx eocontext.EoContext, next eocontext.IChain) (err error)

func (*App) DoHttpFilter

func (a *App) DoHttpFilter(ctx http_service.IHttpContext, next eocontext.IChain) error

func (*App) DoWebsocketFilter added in v0.9.0

func (a *App) DoWebsocketFilter(ctx http_service.IWebsocketContext, next eocontext.IChain) error

func (*App) Reset

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

func (*App) Start

func (a *App) Start() error

func (*App) Stop

func (a *App) Stop() error

type Config

type Config struct {
}

type Factory

type Factory struct {
	eosc.IExtenderDriverFactory
}

func NewFactory

func NewFactory() *Factory

func (*Factory) Create

func (f *Factory) Create(profession string, name string, label string, desc string, params map[string]interface{}) (eosc.IExtenderDriver, error)

Jump to

Keyboard shortcuts

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