snapshot of https://github.com/traggo/server.git (master, 2026-09-16; blobs > 131072B omitted)
Some checks failed
build / build (push) Failing after 3s
Some checks failed
build / build (push) Failing after 3s
This commit is contained in:
27
dashboard/dashboardresolver.go
Normal file
27
dashboard/dashboardresolver.go
Normal 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,
|
||||
},
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user