Versions in this module Expand all Collapse all v0 v0.0.4 Dec 21, 2023 v0.0.3 Oct 20, 2023 v0.0.2 Oct 19, 2023 Changes in this version + func GetAuthClient() *auth.Client + func InitFirebaseClient(ctx context.Context, serviceAccountPath string) error + func InitPubSubClient(ctx context.Context, config PubsubConfig) error + type Database struct + func GetDatabase() *Database + func InitDatabase(config DatabaseConfig, retries int) (*Database, error) + func (db *Database) DropAll() error + func (db *Database) RunMigrations() error + func (db *Database) Seed() error + type DatabaseConfig struct + DbName string + Host string + Password string + Port int + SslMode string + User string + type PubsubClient struct + func GetPubSubClient() *PubsubClient + func (c *PubsubClient) PublishAuthorEvent(ctx context.Context, kind model.NoticeKind, ...) error + func (c *PubsubClient) PublishInstanceEvent(ctx context.Context, kind model.NoticeKind, ...) error + func (c *PubsubClient) PublishUserEvent(ctx context.Context, kind model.NoticeKind, user pixellandchat.UserFragment) error + type PubsubConfig struct + Active bool + AuthorEventsTopic string + InstanceEventsTopic string + IsProd bool + PubsubProjectId string + ServiceAccountPath string + UserEventsTopic string + type PubsubData struct + Payload []byte + Token string