Documentation ¶
Index ¶
- Constants
- 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) List(ctx context.Context, collection string, params *Params, queries []*Query) ([]*firestore.DocumentSnapshot, error)
- func (f *Firestore) Search(ctx context.Context, collection string, params *Params, value string) ([]*firestore.DocumentSnapshot, error)
- func (f *Firestore) Set(ctx context.Context, collection string, document string, data interface{}) error
- type Params
- type Query
Constants ¶
View Source
const ( OrderByAsc = "asc" // 昇順 OrderByDesc = "desc" // 降順 )
ソート順
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) List ¶
func (f *Firestore) List( ctx context.Context, collection string, params *Params, queries []*Query, ) ([]*firestore.DocumentSnapshot, error)
List - コレクション内のドキュメントを福数取得
Click to show internal directories.
Click to hide internal directories.