engine

package
v0.0.0-...-49d3f61 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2020 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CoreRPC

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

func (*CoreRPC) GetManifests

func (self *CoreRPC) GetManifests(nothing *PluginResponse, res *ManifestResponse) error

func (*CoreRPC) GetPlugins

func (self *CoreRPC) GetPlugins(nothing *PluginResponse, res *PluginResponse) error

func (*CoreRPC) GetVersion

func (self *CoreRPC) GetVersion(_ int, res *string) error

type HttpConn

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

func (*HttpConn) Close

func (c *HttpConn) Close() error

func (*HttpConn) Read

func (c *HttpConn) Read(p []byte) (n int, err error)

func (*HttpConn) Write

func (c *HttpConn) Write(d []byte) (n int, err error)

type ManifestResponse

type ManifestResponse struct {
	Manifests []*plugins.Manifest `json:"manifests"`
}

type PluginResponse

type PluginResponse struct {
	Plugins []*SimplePluginRes `json:"plugins"`
}

type RpcEngine

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

func NewRpcEngine

func NewRpcEngine(config *core.MainConfig) *RpcEngine

func (*RpcEngine) Activate

func (self *RpcEngine) Activate(p plugins.Plugin)

func (*RpcEngine) Server

func (self *RpcEngine) Server() *rpc.Server

func (*RpcEngine) Start

func (self *RpcEngine) Start()

type SimplePluginRes

type SimplePluginRes struct {
	Name    string `json:"name"`
	Version int    `json:"version"`
}

Jump to

Keyboard shortcuts

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