21 lines
380 B
Go
21 lines
380 B
Go
package gormstore
|
|
|
|
import (
|
|
"git.itzana.me/strafesnet/maps-service/internal/datastore"
|
|
"github.com/eko/gocache/lib/v4/cache"
|
|
"gorm.io/gorm"
|
|
)
|
|
|
|
type Gormstore struct {
|
|
db *gorm.DB
|
|
cache *cache.Cache[[]byte]
|
|
}
|
|
|
|
func (g Gormstore) Users() datastore.Users {
|
|
return &Users{db: g.db}
|
|
}
|
|
|
|
func (g Gormstore) Submissions() datastore.Submissions {
|
|
return &Submissions{db: g.db}
|
|
}
|