Documentation
¶
Index ¶
- type Module
- func (m *Module) Adapter() *store.Adapter
- func (m *Module) Configure(config any) error
- func (m *Module) Dependencies() []string
- func (m *Module) GetMigrationSources(projectRoot string) []migration_runner.Source
- func (m *Module) Initialize(ctx context.Context, db *gorm.DB, ginRouter *gin.Engine) error
- func (m *Module) Manager() *connections.Manager
- func (m *Module) MigrationsDir() string
- func (m *Module) Name() string
- func (m *Module) Namespace() module.ModuleNamespace
- func (m *Module) NewConfig() any
- func (m *Module) ProvidesMigrations() bool
- func (m *Module) Shutdown(ctx context.Context) error
- func (m *Module) Subscriptions() *store.Subscriptions
- func (m *Module) Version() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Module ¶
type Module struct {
// contains filtered or unexported fields
}
Module implements the WebSocket module for NebularCore.
func New ¶
New creates a new WebSocket module. The event.Bus is required for event bridging between WebSocket clients and the internal event system.
func (*Module) Adapter ¶
Adapter returns the adapter for other modules to interact with WebSocket connections.
func (*Module) Dependencies ¶
Dependencies implements module.Module.
func (*Module) GetMigrationSources ¶
func (m *Module) GetMigrationSources(projectRoot string) []migration_runner.Source
GetMigrationSources implements module.Module.
func (*Module) Initialize ¶
Initialize implements module.Module.
func (*Module) Manager ¶
func (m *Module) Manager() *connections.Manager
Manager returns the connection manager for external access.
func (*Module) MigrationsDir ¶
MigrationsDir implements module.Module.
func (*Module) Namespace ¶
func (m *Module) Namespace() module.ModuleNamespace
Namespace implements module.Module.
func (*Module) ProvidesMigrations ¶
ProvidesMigrations implements module.Module.
func (*Module) Subscriptions ¶
func (m *Module) Subscriptions() *store.Subscriptions
Subscriptions returns the subscription store.