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

Function dbHostGroupToModelFull

server-source-code/internal/store/convert.go:258–267  ·  view source on GitHub ↗
(h db.HostGroup)

Source from the content-addressed store, hash-verified

256}
257
258func dbHostGroupToModelFull(h db.HostGroup) models.HostGroup {
259 return models.HostGroup{
260 ID: h.ID,
261 Name: h.Name,
262 Description: h.Description,
263 Color: h.Color,
264 CreatedAt: pgTime(h.CreatedAt),
265 UpdatedAt: pgTime(h.UpdatedAt),
266 }
267}
268
269func dbDashboardPreferenceToModel(d db.DashboardPreference) models.DashboardPreference {
270 return models.DashboardPreference{

Callers 2

ListMethod · 0.85
GetByIDMethod · 0.85

Calls 1

pgTimeFunction · 0.70

Tested by

no test coverage detected