snapshot of https://github.com/traggo/server.git (master, 2026-09-16; blobs > 131072B omitted)
Some checks failed
build / build (push) Failing after 3s

This commit is contained in:
upstream-mirror
2026-09-16 05:24:45 +05:00
commit cda7c1a474
272 changed files with 31973 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
package dashboard
import (
"github.com/jinzhu/gorm"
"github.com/traggo/server/dashboard/dbrange"
"github.com/traggo/server/dashboard/entry"
)
// ResolverForDashboard resolves dashboard specific things.
type ResolverForDashboard struct {
DB *gorm.DB
entry.ResolverForEntry
dbrange.ResolverForRange
}
// NewResolverForDashboard creates a new resolver.
func NewResolverForDashboard(db *gorm.DB) ResolverForDashboard {
return ResolverForDashboard{
DB: db,
ResolverForEntry: entry.ResolverForEntry{
DB: db,
},
ResolverForRange: dbrange.ResolverForRange{
DB: db,
},
}
}