Documentation ¶
Index ¶
- func Convert[T any](snapshot *firestore.DocumentSnapshot) *T
- func Delete(ref firestore.Query)
- func FindMany[T any](ref firestore.Query) []*T
- func FindOne[T any](ref firestore.Query) *T
- func Get[T any](r IFirestoreRepository, id string) *T
- func NewId() string
- func Save[T any](r IFirestoreRepository, id string, data any) *T
- type DataAccess
- type IFirestoreRepository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Convert ¶
func Convert[T any](snapshot *firestore.DocumentSnapshot) *T
func Get ¶
func Get[T any](r IFirestoreRepository, id string) *T
Types ¶
type DataAccess ¶
func GetConnection ¶
func GetConnection() DataAccess
type IFirestoreRepository ¶
type IFirestoreRepository interface {
Ref() *firestore.CollectionRef
}
Click to show internal directories.
Click to hide internal directories.