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
Click to show internal directories.
Click to hide internal directories.