maps-service/pkg/datastore/datastore.go
2024-11-26 18:30:58 -05:00

20 lines
315 B
Go

package datastore
import (
"context"
"errors"
"git.itzana.me/strafesnet/maps-service/pkg/model"
)
var (
ErrNotExist = errors.New("resource does not exist")
)
type Datastore interface {
Submissions() Submissions
}
type Submissions interface {
Get(ctx context.Context, id int64) (model.Submission, error)
}