app

package
v0.0.0-...-640912d Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppManager

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

func NewAppManager

func NewAppManager(config *configs.BuiltinConfig) *AppManager

func (*AppManager) AddRemoteApp

func (m *AppManager) AddRemoteApp(appID string, conn *websocket.Conn) error

func (*AppManager) CallFunction

func (m *AppManager) CallFunction(appID string, name string, req *nlibshared.Request) *nlibshared.Response

the unified interface to call functions from both builtin and remote apps

func (*AppManager) Start

func (m *AppManager) Start() error

func (*AppManager) Stop

func (m *AppManager) Stop() error

type AppManagerBuiltin

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

func NewAppManagerBuiltin

func NewAppManagerBuiltin(config *configs.BuiltinConfig) *AppManagerBuiltin

func (*AppManagerBuiltin) CallFunction

func (m *AppManagerBuiltin) CallFunction(appID string, name string, req *nlibshared.Request) (*nlibshared.Response, bool)

func (*AppManagerBuiltin) Start

func (m *AppManagerBuiltin) Start() error

func (*AppManagerBuiltin) Stop

func (m *AppManagerBuiltin) Stop() error

Directories

Path Synopsis
builtin
kv
ssh

Jump to

Keyboard shortcuts

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