Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var NewSession = func(ctx context.Context, opt config.Firestore) (ISession, error) { options := make([]option.ClientOption, 0) if opt.EndPoint != "" { options = append(options, option.WithEndpoint(opt.EndPoint)) } return newClient(ctx, opt.ProjectID, options...) }
NewSession method
Functions ¶
This section is empty.
Types ¶
type ISession ¶
type ISession interface { Close() error Collection(path string) *firestore.CollectionRef Doc(path string) *firestore.DocumentRef CollectionGroup(collectionID string) *firestore.CollectionGroupRef GetAll(ctx context.Context, docRefs []*firestore.DocumentRef) (_ []*firestore.DocumentSnapshot, err error) Collections(ctx context.Context) *firestore.CollectionIterator Batch() *firestore.WriteBatch RunTransaction(ctx context.Context, f func(context.Context, *firestore.Transaction) error, opts ...firestore.TransactionOption) (err error) }
ISession interface
Click to show internal directories.
Click to hide internal directories.