firestore

package
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 13, 2021 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL