maps-service/pkg/datastore/datastore.go

20 lines
315 B
Go
Raw Normal View History

2024-11-26 21:36:40 +00:00
package datastore
import (
"context"
"errors"
2024-11-26 23:30:58 +00:00
"git.itzana.me/strafesnet/maps-service/pkg/model"
2024-11-26 21:36:40 +00:00
)
var (
ErrNotExist = errors.New("resource does not exist")
)
type Datastore interface {
2024-11-26 23:30:58 +00:00
Submissions() Submissions
2024-11-26 21:36:40 +00:00
}
2024-11-26 23:30:58 +00:00
type Submissions interface {
Get(ctx context.Context, id int64) (model.Submission, error)
2024-11-26 21:36:40 +00:00
}