import "github.com/jeremyschlatter/firebase"
Package firebase wraps the official Firebase client with an interface that can be faked in tests.
This package is designed to be close to a drop-in replacement for firebase.google.org/go, though it only implements a very small subset of that interface.
type App interface {
Database(context.Context) (db.Client, error)
}
App mirrors https://godoc.org/firebase.google.com/go#App
func NewApp(ctx context.Context, config *Config, opts ...option.ClientOption) (App, error)
NewApp mirrors https://godoc.org/firebase.google.com/go#NewApp
It returns a real Firebase client that implements App.
func NewFake() App
NewFake returns a fake implementation of App. The fake implementation provides an in-memory database.
type Config = firebase.Config
Generated by godoc2md