Documentation ¶
Index ¶
- func GetAuthClient() *auth.Client
- func InitFirebaseClient(ctx context.Context, serviceAccountPath string) error
- func InitPubSubClient(ctx context.Context, config PubsubConfig) error
- type Database
- type DatabaseConfig
- type 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
- type PubsubData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAuthClient ¶
func InitFirebaseClient ¶
func InitPubSubClient ¶
func InitPubSubClient(ctx context.Context, config PubsubConfig) error
Types ¶
type Database ¶
func GetDatabase ¶
func GetDatabase() *Database
GetSqlClient returns the singleton database instance
func InitDatabase ¶
func InitDatabase(config DatabaseConfig, retries int) (*Database, error)
Opening the database and create singleton client instance
func (*Database) RunMigrations ¶
type DatabaseConfig ¶
type PubsubClient ¶
type PubsubClient struct {
// contains filtered or unexported fields
}
func GetPubSubClient ¶
func GetPubSubClient() *PubsubClient
func (*PubsubClient) PublishAuthorEvent ¶
func (c *PubsubClient) PublishAuthorEvent(ctx context.Context, kind model.NoticeKind, author pixellandchat.AuthorFragment) error
func (*PubsubClient) PublishInstanceEvent ¶
func (c *PubsubClient) PublishInstanceEvent(ctx context.Context, kind model.NoticeKind, instance pixellandchat.InstanceFragment) error
func (*PubsubClient) PublishUserEvent ¶
func (c *PubsubClient) PublishUserEvent(ctx context.Context, kind model.NoticeKind, user pixellandchat.UserFragment) error
type PubsubConfig ¶
type PubsubData ¶
Click to show internal directories.
Click to hide internal directories.