Documentation
¶
Index ¶
- Variables
- func AddRecord(ctx context.Context, r model.Record) error
- func ClosePostgres()
- func EnsureTables(ctx context.Context) error
- func FetchAllRecords(ctx context.Context) ([]model.Record, error)
- func FetchRecords(ctx context.Context, domain, qtype string) ([]model.Record, error)
- func GetDomainHits(ctx context.Context, domain, qtype string) (int64, error)
- func IncrementMetric(ctx context.Context, domain, qtype string) error
- func InitPostgres(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
View Source
var PgPool *pgxpool.Pool
Functions ¶
func ClosePostgres ¶
func ClosePostgres()
func FetchRecords ¶
func InitPostgres ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.