Documentation
¶
Index ¶
- Constants
- func CloseAllFirestoreClientsByFirebaseId(temp *gen_firebase.FirebaseClientId)
- func CloseCollectionRef(temp *CollectionId)
- func CloseFirestoreClient(temp *FirestoreClientId)
- func CreateCollectionRef(temp *Collection)
- func CreateFirestoreClient(temp *FirestoreClient)
- func GetCollectionRef(temp *CollectionId) (*firestore.CollectionRef, error)
- func GetFirestoreClient(temp *FirestoreClientId) (*firestore.Client, error)
- type Collection
- type CollectionConf
- type CollectionId
- type Collections
- type FirestoreClient
- type FirestoreClientId
- type FirestoreClients
Constants ¶
View Source
const ( ERROR_CLIENT_INSTANCE = "firestore_connection : failed to get the firestore client instance" ERROR_COLLECTION_INSTANCE = "firestore_collection_connection : failed to get the firestore collection instance" )
Variables ¶
This section is empty.
Functions ¶
func CloseAllFirestoreClientsByFirebaseId ¶
func CloseAllFirestoreClientsByFirebaseId(temp *gen_firebase.FirebaseClientId)
func CloseCollectionRef ¶
func CloseCollectionRef(temp *CollectionId)
func CloseFirestoreClient ¶
func CloseFirestoreClient(temp *FirestoreClientId)
CloseFirestoreClient used to close the Firestore client connection
func CreateCollectionRef ¶
func CreateCollectionRef(temp *Collection)
func CreateFirestoreClient ¶
func CreateFirestoreClient(temp *FirestoreClient)
CreateFirestoreClient used to create a new Firestore Client connection
func GetCollectionRef ¶
func GetCollectionRef(temp *CollectionId) (*firestore.CollectionRef, error)
func GetFirestoreClient ¶
func GetFirestoreClient(temp *FirestoreClientId) (*firestore.Client, error)
GetFirestoreClient used to get the Firestore client connection
Types ¶
type Collection ¶
type Collection struct {
Id *CollectionId
Once *sync.Once
Conf *CollectionConf
Err *error
// contains filtered or unexported fields
}
type CollectionConf ¶
type CollectionConf struct {
FirestoreCollectionPath string
FirestoreClientId *FirestoreClientId
}
type CollectionId ¶
type CollectionId struct {
Id string
}
type Collections ¶
type Collections struct {
// contains filtered or unexported fields
}
type FirestoreClient ¶
type FirestoreClient struct {
Id *FirestoreClientId
Once *sync.Once
FirebaseId *gen_firebase.FirebaseClientId
Err *error
// contains filtered or unexported fields
}
type FirestoreClientId ¶
type FirestoreClientId struct {
Id string
}
type FirestoreClients ¶
type FirestoreClients struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.