Documentation ¶
Index ¶
- func CheckUpdates(version string, configFile string, logger *zap.Logger) error
- func EventsEmit(ctx context.Context, eventName string, optionalData ...interface{})
- func GetAppDirectory() (string, error)
- func HeadlessContext() context.Context
- func IsHeadless(ctx context.Context) bool
- type App
- type Bindings
- func (b *Bindings) AddPlugin(name string, url string) error
- func (b *Bindings) GetAPIURL() string
- func (b *Bindings) GetAPIVersion() string
- func (b *Bindings) GetAppDirectory() string
- func (b *Bindings) GetConfig() config.Config
- func (b *Bindings) GetPlugins() map[string]handlers.PluginInfo
- func (b *Bindings) GetStreams() []StreamInfo
- func (b *Bindings) GetVersion() string
- func (b *Bindings) OpenAppDirectory()
- func (b *Bindings) RemovePlugin(name string) error
- func (b *Bindings) WaitForStartup()
- type EventWatcher
- type StreamInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EventsEmit ¶
func GetAppDirectory ¶
func HeadlessContext ¶
func IsHeadless ¶
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
App application struct
func (*App) Initialize ¶
Initialize is called before the application is started
type Bindings ¶
type Bindings struct {
// contains filtered or unexported fields
}
func GetBindings ¶
func (*Bindings) GetAPIVersion ¶
func (*Bindings) GetAppDirectory ¶
func (*Bindings) GetPlugins ¶
func (b *Bindings) GetPlugins() map[string]handlers.PluginInfo
func (*Bindings) GetStreams ¶
func (b *Bindings) GetStreams() []StreamInfo
func (*Bindings) GetVersion ¶
func (*Bindings) OpenAppDirectory ¶
func (b *Bindings) OpenAppDirectory()
func (*Bindings) RemovePlugin ¶
func (*Bindings) WaitForStartup ¶
func (b *Bindings) WaitForStartup()
type EventWatcher ¶
type EventWatcher struct {
// contains filtered or unexported fields
}
EventWatcher emits app events whenever events are triggered
func NewEventWatcher ¶
func NewEventWatcher( streamEventSource models.StreamEventSource, configProvider *config.Provider, authHandler *handlers.Auth, ctx context.Context, logger *zap.Logger, ) *EventWatcher
NewEventWatcher returns a new EventWatcher
func (*EventWatcher) Serve ¶
func (s *EventWatcher) Serve()
Serve runs the service for the app event watcher
func (*EventWatcher) Stop ¶
func (s *EventWatcher) Stop()
Stop will shutdown this service and wait on it to stop before returning.
type StreamInfo ¶
Click to show internal directories.
Click to hide internal directories.