db

package
v0.0.0-...-0ada750 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 31, 2024 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(ctx context.Context, ts oauth2.TokenSource, fsNamespace, fsProjectId string) (types.BugsDB, error)

New returns an instance of FirestoreDB.

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

func (f *FirestoreDB) GetAllRecognizedRunIds(ctx context.Context) (map[string]bool, error)

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.

type RunId

type RunId struct {
	RunId string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL