Documentation ¶
Overview ¶
Package firebase provides wrapper functions for Firebase App initialisers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Credentials string `env:"GOOGLE_APPLICATION_CREDENTIALS"`
}
Config represents the configuration settings for the Firebase app.
type FirebaseApp ¶
type FirebaseApp struct {
// contains filtered or unexported fields
}
func NewApp ¶
func NewApp(cfg Config) (*FirebaseApp, error)
NewApp creates a Firebase app with given configuration. If the Config Credentials field is non-empty, the field is used as the credentials file path. Otherwise, Google application default credentials are used.
func (*FirebaseApp) NewAuth ¶
func (f *FirebaseApp) NewAuth() (*auth.Client, error)
NewAuth returns instance of Firebase authentication client.
func (*FirebaseApp) NewMessaging ¶
func (f *FirebaseApp) NewMessaging() (*messaging.Client, error)
NewMessaging returns instance of Firebase Messaging client.
Click to show internal directories.
Click to hide internal directories.