Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( MergeAll = mergeSetOption{firestore.MergeAll} Asc Direction = firestore.Asc Desc Direction = firestore.Desc ErrBlankFirestoreClient = errors.New("err_blankclient") )
delegate implementation
Functions ¶
func NewRepository ¶
func NewRepository(client Client) raizel.Repository
Types ¶
type Client ¶
type Client interface { Close() error Doc(string) DocumentRef Collection(string) CollectionRef GetAll(context.Context, ...DocumentRef) ([]DocumentSnapshot, error) Batch() WriteBatch }
type CollectionRef ¶
type CollectionRef interface { Query // contains filtered or unexported methods }
type DocumentIterator ¶
type DocumentIterator interface {
GetAll() ([]DocumentSnapshot, error)
}
type DocumentRef ¶
type DocumentSnapshot ¶
type WriteBatch ¶ added in v0.0.2
type WriteBatch interface { Set(DocumentRef, interface{}, ...SetOption) WriteBatch Delete(DocumentRef) WriteBatch Commit(context.Context) error }
Click to show internal directories.
Click to hide internal directories.