Documentation
¶
Overview ¶
Package postgres provides an implementation of diag.Repository using PostgreSQL for underlying database storage.
Index ¶
- type Client
- func (c *Client) Close() error
- func (c *Client) FindAllDiagnosisKeys(ctx context.Context) ([]byte, error)
- func (c *Client) LastModified(ctx context.Context) (time.Time, error)
- func (c *Client) Ping() error
- func (c *Client) StoreDiagnosisKeys(ctx context.Context, diagKeys []diag.DiagnosisKey, uploadedAt time.Time) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client implements diag.Repository.
func (*Client) FindAllDiagnosisKeys ¶
FindAllDiagnosisKeys finds all the Diagnosis Keys and returns them in their binary representation in a buffer.
func (*Client) LastModified ¶
LastModified returns the timestamp of the latest uploaded Diagnosis Key.
func (*Client) StoreDiagnosisKeys ¶
func (c *Client) StoreDiagnosisKeys(ctx context.Context, diagKeys []diag.DiagnosisKey, uploadedAt time.Time) error
StoreDiagnosisKeys persists an array of diagnosis keys in the database.
Click to show internal directories.
Click to hide internal directories.