MCPcopy
hub / github.com/basecamp/once / Run

Method Run

internal/userstats/scraper.go:89–97  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

87}
88
89func (s *Scraper) Run(ctx context.Context) {
90 c, err := client.NewClientWithOpts(client.FromEnv, client.WithAPIVersionNegotiation())
91 if err != nil {
92 slog.Error("Creating Docker client for user stats", "error", err)
93 return
94 }
95
96 s.run(ctx, c)
97}
98
99// Private
100

Callers 4

RunMethod · 0.95
TestWithBackgroundFunction · 0.45
TestFormatDurationFunction · 0.45
RunFunction · 0.45

Calls 2

runMethod · 0.95
ErrorMethod · 0.45

Tested by 2

TestWithBackgroundFunction · 0.36
TestFormatDurationFunction · 0.36