Documentation ¶
Index ¶
- type Firestore
- func (f *Firestore) Close() error
- func (f *Firestore) DeleteDoc(ctx context.Context, collection string, document string) error
- func (f *Firestore) Get(ctx context.Context, collection string, document string) (*firestore.DocumentSnapshot, error)
- func (f *Firestore) GetAll(ctx context.Context, collection string) *firestore.DocumentIterator
- func (f *Firestore) GetAllFirst(ctx context.Context, collection string, orderBy string, sort string, ...) ([]*firestore.DocumentSnapshot, error)
- func (f *Firestore) GetAllFromStartAt(ctx context.Context, collection string, orderBy string, sort string, ...) ([]*firestore.DocumentSnapshot, error)
- func (f *Firestore) GetByQueries(ctx context.Context, collection string, queries []*Query) *firestore.DocumentIterator
- func (f *Firestore) GetByQuery(ctx context.Context, collection string, query *Query) *firestore.DocumentIterator
- func (f *Firestore) Search(ctx context.Context, collection string, orderBy string, sort string, ...) ([]*firestore.DocumentSnapshot, error)
- func (f *Firestore) SearchFromStartAt(ctx context.Context, collection string, orderBy string, sort string, ...) ([]*firestore.DocumentSnapshot, error)
- func (f *Firestore) Set(ctx context.Context, collection string, document string, data interface{}) error
- type Query
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Firestore ¶
Firestore - Firestoreの構造体
func (*Firestore) Get ¶
func (f *Firestore) Get(ctx context.Context, collection string, document string) (*firestore.DocumentSnapshot, error)
Get - 単一のドキュメントの内容を取得
func (*Firestore) GetAllFirst ¶
func (f *Firestore) GetAllFirst( ctx context.Context, collection string, orderBy string, sort string, length int, ) ([]*firestore.DocumentSnapshot, error)
GetAllFirst - 初めから指定の件数分ドキュメントを取得
func (*Firestore) GetAllFromStartAt ¶
func (f *Firestore) GetAllFromStartAt( ctx context.Context, collection string, orderBy string, sort string, document string, length int, ) ([]*firestore.DocumentSnapshot, error)
GetAllFromStartAt - 指定した箇所から指定の件数分ドキュメントを取得
func (*Firestore) GetByQueries ¶
func (f *Firestore) GetByQueries(ctx context.Context, collection string, queries []*Query) *firestore.DocumentIterator
GetByQueries - 複数のwhere()メソッドをつなぎ合わせて、特定の条件を満たすすべてのドキュメントを取得
func (*Firestore) GetByQuery ¶
func (f *Firestore) GetByQuery(ctx context.Context, collection string, query *Query) *firestore.DocumentIterator
GetByQuery - where()を使用して、特定の条件を満たすすべてのドキュメントを取得
func (*Firestore) Search ¶
func (f *Firestore) Search( ctx context.Context, collection string, orderBy string, sort string, query string, length int, ) ([]*firestore.DocumentSnapshot, error)
Search - 前方一致検索
Click to show internal directories.
Click to hide internal directories.