Documentation
¶
Index ¶
- func NewFirebaseAuthorizationClient(app *firebase.App) *auth.Client
- func NewFirebaseClient() *firebase.App
- func NewFirebaseFirestoreClient(app *firebase.App) *firestore.Client
- func NewRouterWithInject(auth *auth.Client, routers ...potato.Router) *mux.Router
- func NewRouterWithTestInject(auth *auth.Client, routers ...potato.Router) *mux.Router
- type Listener
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFirebaseAuthorizationClient ¶
NewFirebaseAuthorizationClient creates a new Firebase authorization client
func NewFirebaseClient ¶
NewFirebaseClient creates a new Firebase connection
func NewFirebaseFirestoreClient ¶
NewFirebaseFirestoreClient creates a new Firebase realtime database client
func NewRouterWithInject ¶
NewRouterWithInject creates a new router with inject user middleware
Types ¶
type Listener ¶
type Listener struct {
// contains filtered or unexported fields
}
Listener is a struct for read firestore snapshots
func NewListener ¶
func NewListener(client *firestore.Client, cache *potato.CacheService) *Listener
NewListener creates a new Listener instance for getting firestore snapshots.
func (*Listener) ListenFirestoreUpdate ¶
ListenFirestoreUpdate listens specified collection snapshots forever and updates the cache using the snapshot. This method should be called as goroutine.
Click to show internal directories.
Click to hide internal directories.