MCPcopy Index your code
hub / github.com/NdoleStudio/httpsms / FirebaseApp

Method FirebaseApp

api/pkg/di/container.go:421–430  ·  view source on GitHub ↗

FirebaseApp creates a new instance of firebase.App

()

Source from the content-addressed store, hash-verified

419
420// FirebaseApp creates a new instance of firebase.App
421func (container *Container) FirebaseApp() (app *firebase.App) {
422 container.logger.Debug(fmt.Sprintf("creating %T", app))
423
424 app, err := firebase.NewApp(context.Background(), nil, option.WithCredentialsJSON(container.FirebaseCredentials()))
425 if err != nil {
426 msg := "cannot initialize firebase application"
427 container.logger.Fatal(stacktrace.Propagate(err, msg))
428 }
429 return app
430}
431
432// InMemoryCache returns the shared in-memory cache.Cache, creating it on the first call.
433func (container *Container) InMemoryCache() cache.Cache {

Callers 2

FirebaseAuthClientMethod · 0.95
FCMClientMethod · 0.95

Calls 3

FirebaseCredentialsMethod · 0.95
DebugMethod · 0.65
FatalMethod · 0.65

Tested by

no test coverage detected