MCPcopy Index your code
hub / github.com/coder/coder / withLastSeenAt

Function withLastSeenAt

coderd/healthcheck/provisioner_test.go:394–399  ·  view source on GitHub ↗
(at time.Time)

Source from the content-addressed store, hash-verified

392}
393
394func withLastSeenAt(at time.Time) func(*database.ProvisionerDaemon) {
395 return func(pd *database.ProvisionerDaemon) {
396 pd.LastSeenAt.Valid = true
397 pd.LastSeenAt.Time = at
398 }
399}
400
401func withVersion(v string) func(*database.ProvisionerDaemon) {
402 return func(pd *database.ProvisionerDaemon) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected