MCPcopy Create free account
hub / github.com/PatchMon/PatchMon / dbDashboardLayoutToModel

Function dbDashboardLayoutToModel

server-source-code/internal/store/convert.go:282–289  ·  view source on GitHub ↗
(d db.DashboardLayout)

Source from the content-addressed store, hash-verified

280}
281
282func dbDashboardLayoutToModel(d db.DashboardLayout) models.DashboardLayout {
283 return models.DashboardLayout{
284 UserID: d.UserID,
285 StatsColumns: int(d.StatsColumns),
286 ChartsColumns: int(d.ChartsColumns),
287 UpdatedAt: pgTime(d.UpdatedAt),
288 }
289}
290
291func dbDockerContainerToModel(d db.DockerContainer) models.DockerContainer {
292 return models.DockerContainer{

Callers 1

GetLayoutMethod · 0.85

Calls 1

pgTimeFunction · 0.70

Tested by

no test coverage detected