FirebaseApp creates a new instance of firebase.App
()
| 419 | |
| 420 | // FirebaseApp creates a new instance of firebase.App |
| 421 | func (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. |
| 433 | func (container *Container) InMemoryCache() cache.Cache { |
no test coverage detected