Documentation
¶
Index ¶
- type App
- func (a *App) AccountStore() core.AccountStore
- func (a *App) CallManager() *rtc.CallManager
- func (a *App) ContactStore() core.ContactStore
- func (a *App) DBBackend() *db.Backend
- func (a *App) Debug(format string, args ...interface{})
- func (a *App) DeviceStore() core.DeviceStore
- func (a *App) E2EEStore() e2ee.KeyStore
- func (a *App) Error(format string, args ...interface{})
- func (a *App) Info(format string, args ...interface{})
- func (a *App) JWTAuth() *auth.JWTAuth
- func (a *App) Logger() *observ.Logger
- func (a *App) MessageStore() core.MessageStore
- func (a *App) Metrics() *observ.Metrics
- func (a *App) Mux() *http.ServeMux
- func (a *App) NotificationHub() *notification.Hub
- func (a *App) OnAccountCreated(h func(context.Context, core.User))
- func (a *App) OnCallEnd(h func(core.CallEvent))
- func (a *App) OnCallStart(h func(core.CallEvent))
- func (a *App) OnMessage(h func(core.Message))
- func (a *App) OnMessageStored(h func(context.Context, core.Message))
- func (a *App) OnSignal(t core.SignalType, h func(core.Signal))
- func (a *App) OnUserJoin(h func(string, core.User))
- func (a *App) OnUserLeave(h func(string, core.User))
- func (a *App) PreferenceStore() core.PreferenceStore
- func (a *App) ProductStore() *product.Store
- func (a *App) ProfileStore() core.ProfileStore
- func (a *App) RBAC() *auth.RBAC
- func (a *App) RTCManager() *rtc.Manager
- func (a *App) RoomManager() *room.Manager
- func (a *App) RoomStore() core.RoomStore
- func (a *App) Shutdown(ctx context.Context) error
- func (a *App) SignalHub() *signaling.Hub
- func (a *App) Start() error
- func (a *App) StartWithGracefulShutdown() error
- func (a *App) Warn(format string, args ...interface{})
- func (a *App) WithAccountStore(s core.AccountStore) *App
- func (a *App) WithContactStore(s core.ContactStore) *App
- func (a *App) WithDatabase(dbConn *sql.DB, driver string) *App
- func (a *App) WithDeviceStore(s core.DeviceStore) *App
- func (a *App) WithMessageStore(s core.MessageStore) *App
- func (a *App) WithPreferenceStore(s core.PreferenceStore) *App
- func (a *App) WithProductStore(s *product.Store) *App
- func (a *App) WithProfileStore(s core.ProfileStore) *App
- func (a *App) WithRoomStore(s core.RoomStore) *App
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
App is the main Mana application instance. It orchestrates all packages — it does NOT implement business logic itself.
func (*App) AccountStore ¶
func (a *App) AccountStore() core.AccountStore
func (*App) CallManager ¶
func (a *App) CallManager() *rtc.CallManager
func (*App) ContactStore ¶
func (a *App) ContactStore() core.ContactStore
func (*App) DeviceStore ¶
func (a *App) DeviceStore() core.DeviceStore
func (*App) MessageStore ¶
func (a *App) MessageStore() core.MessageStore
func (*App) NotificationHub ¶
func (a *App) NotificationHub() *notification.Hub
func (*App) OnCallStart ¶
func (*App) PreferenceStore ¶
func (a *App) PreferenceStore() core.PreferenceStore
func (*App) ProductStore ¶ added in v0.3.0
func (*App) ProfileStore ¶
func (a *App) ProfileStore() core.ProfileStore
func (*App) RTCManager ¶
func (*App) RoomManager ¶
func (*App) StartWithGracefulShutdown ¶
StartWithGracefulShutdown starts the server and handles OS signals.
func (*App) WithAccountStore ¶
func (a *App) WithAccountStore(s core.AccountStore) *App
func (*App) WithContactStore ¶
func (a *App) WithContactStore(s core.ContactStore) *App
func (*App) WithDeviceStore ¶
func (a *App) WithDeviceStore(s core.DeviceStore) *App
func (*App) WithMessageStore ¶
func (a *App) WithMessageStore(s core.MessageStore) *App
func (*App) WithPreferenceStore ¶
func (a *App) WithPreferenceStore(s core.PreferenceStore) *App
func (*App) WithProductStore ¶ added in v0.3.0
func (*App) WithProfileStore ¶
func (a *App) WithProfileStore(s core.ProfileStore) *App
Click to show internal directories.
Click to hide internal directories.