MCPcopy Create free account
hub / github.com/compozy/agh / WithStartedAt

Function WithStartedAt

internal/api/httpapi/server.go:146–150  ·  view source on GitHub ↗

WithStartedAt overrides the daemon start time reported by the API.

(startedAt time.Time)

Source from the content-addressed store, hash-verified

144
145// WithStartedAt overrides the daemon start time reported by the API.
146func WithStartedAt(startedAt time.Time) Option {
147 return func(server *Server) {
148 server.startedAt = startedAt
149 }
150}
151
152// WithNow overrides the server clock, mainly for tests.
153func WithNow(now func() time.Time) Option {

Callers 4

newParityHTTPRouterFunction · 0.92
httpServerOptionsFunction · 0.92
newToolParityHTTPEngineFunction · 0.92

Calls

no outgoing calls

Tested by 3

newParityHTTPRouterFunction · 0.74
newToolParityHTTPEngineFunction · 0.74