Documentation ¶
Index ¶
- func New(ctx context.Context, ts oauth2.TokenSource, fsNamespace, fsProjectId string) (types.BugsDB, error)
- type FirestoreDB
- func (f *FirestoreDB) GenerateRunId(ts time.Time) string
- func (f *FirestoreDB) GetAllRecognizedRunIds(ctx context.Context) (map[string]bool, error)
- func (f *FirestoreDB) GetClientsFromDB(ctx context.Context) (map[types.RecognizedClient]map[types.IssueSource]map[string]bool, error)
- func (f *FirestoreDB) GetCountsFromDB(ctx context.Context, client types.RecognizedClient, source types.IssueSource, ...) (*types.IssueCountsData, error)
- func (f *FirestoreDB) GetQueryDataFromDB(ctx context.Context, client types.RecognizedClient, source types.IssueSource, ...) ([]*types.QueryData, error)
- func (f *FirestoreDB) PutInDB(ctx context.Context, client types.RecognizedClient, source types.IssueSource, ...) error
- func (f *FirestoreDB) StoreRunId(ctx context.Context, runId string) error
- type RunId
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FirestoreDB ¶
type FirestoreDB struct {
// contains filtered or unexported fields
}
FirestoreDB uses Cloud Firestore for store.
func (*FirestoreDB) GenerateRunId ¶
func (f *FirestoreDB) GenerateRunId(ts time.Time) string
See GenerateRunId documentation in types.BugsDB interface.
func (*FirestoreDB) GetAllRecognizedRunIds ¶
See GetAllRecognizedRunIds documentation in types.BugsDB interface.
func (*FirestoreDB) GetClientsFromDB ¶
func (f *FirestoreDB) GetClientsFromDB(ctx context.Context) (map[types.RecognizedClient]map[types.IssueSource]map[string]bool, error)
See GetClientsFromDB documentation in types.BugsDB interface.
func (*FirestoreDB) GetCountsFromDB ¶
func (f *FirestoreDB) GetCountsFromDB(ctx context.Context, client types.RecognizedClient, source types.IssueSource, query string) (*types.IssueCountsData, error)
See GetCountsFromDB documentation in types.BugsDB interface.
func (*FirestoreDB) GetQueryDataFromDB ¶
func (f *FirestoreDB) GetQueryDataFromDB(ctx context.Context, client types.RecognizedClient, source types.IssueSource, query string) ([]*types.QueryData, error)
See GetQueryDataFromDB documentation in types.BugsDB interface.
func (*FirestoreDB) PutInDB ¶
func (f *FirestoreDB) PutInDB(ctx context.Context, client types.RecognizedClient, source types.IssueSource, query, runId string, countsData *types.IssueCountsData) error
See PutInDB documentation in types.BugsDB interface.
func (*FirestoreDB) StoreRunId ¶
func (f *FirestoreDB) StoreRunId(ctx context.Context, runId string) error
See StoreRunId documentation in types.BugsDB interface.
Click to show internal directories.
Click to hide internal directories.