controller

package
v0.0.0-...-4d07d55 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2019 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	//Version of this package
	Version int = 1
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	Node   *shared.NodeCfg
	Logger shared.LoggerInterface
}

func (*Controller) APIHandler

func (ctrl *Controller) APIHandler(*http.Request, []string) ([]byte, error)

func (*Controller) DeployPkg

func (ctrl *Controller) DeployPkg(pkg *multipart.FileHeader) error
func (ctrl *Controller) GetAssetLink(ID noid.Identifier) (string, error)

func (*Controller) GetFunctionInfo

func (ctrl *Controller) GetFunctionInfo(ID noid.Identifier) (shared.FunctionInfo, error)

func (*Controller) GetNodeVersion

func (ctrl *Controller) GetNodeVersion() shared.NodeVersion

func (*Controller) HandleMessage

func (ctrl *Controller) HandleMessage(msg *shared.NetMsg) error

func (*Controller) Init

func (ctrl *Controller) Init() error

func (*Controller) Version

func (ctrl *Controller) Version() int

type Registry

type Registry struct {
	Name string
	ID   string
}

Jump to

Keyboard shortcuts

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