From d6487933c758be647bff7a568d6a33e6155e6599 Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Tue, 10 Jan 2023 15:19:05 +0100 Subject: [feature] Implement Report database model and utility functions (#1310) * implement report database model * implement report cache + config changes * implement report database functions * report uri / regex functions * update envparsing test * remove unnecessary uri index * remove unused function + cache lookup * process error when storing report --- internal/db/status.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'internal/db/status.go') diff --git a/internal/db/status.go b/internal/db/status.go index f854664c8..15d1362f5 100644 --- a/internal/db/status.go +++ b/internal/db/status.go @@ -29,6 +29,9 @@ type Status interface { // GetStatusByID returns one status from the database, with no rel fields populated, only their linking ID / URIs GetStatusByID(ctx context.Context, id string) (*gtsmodel.Status, Error) + // GetStatuses gets a slice of statuses corresponding to the given status IDs. + GetStatuses(ctx context.Context, ids []string) ([]*gtsmodel.Status, Error) + // GetStatusByURI returns one status from the database, with no rel fields populated, only their linking ID / URIs GetStatusByURI(ctx context.Context, uri string) (*gtsmodel.Status, Error) -- cgit v1.2.3