Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppConstructor ¶
type AppConstructor func( messages.LoadApp, IAppManager, ) IApp
AppConstructor represents a function that can be used to create an App instance
type IApp ¶
type IApp interface { GetName() string GetSessionUUID() uuid.UUID OnInput(pmessages.Input) Start() Stop() }
IApp implement this interface for apps.
func WelcomeApp ¶
func WelcomeApp(message messages.LoadApp, appManager IAppManager) IApp
WelcomeApp creates a new WelcomeApp instance
type IAppManager ¶
type IAppManager interface { // Core Methods CreateLogger(IApp) *logrus.Entry Engine() engine.Engine SetRegisteredApps(map[string]AppConstructor) // Lifecycle methods Start() Stop() // Rendering PutsToSession(IApp, string) RenderStringToSession(IApp, string) error RenderTemplateToSession(IApp, string) error // App store GetFromAppStore(IApp, string, interface{}) error SetInAppStore(IApp, string, interface{}) error }
IAppManager handles management of apps that are used by sessions for interactions
func NewManager ¶
func NewManager(e engine.Engine, t templates.TemplateManager) IAppManager
NewManager creates a new app manager instance
Click to show internal directories.
Click to hide internal directories.