MCPcopy Index your code
hub / github.com/foxcpp/maddy / CheckConnection

Method CheckConnection

internal/check/command/command.go:332–341  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

330}
331
332func (s *state) CheckConnection(ctx context.Context) module.CheckResult {
333 if s.c.stage != StageConnection {
334 return module.CheckResult{}
335 }
336
337 defer trace.StartRegion(ctx, "command/CheckConnection-"+s.c.cmd).End()
338
339 cmdName, cmdArgs := s.expandCommand("")
340 return s.run(cmdName, cmdArgs, bytes.NewReader(nil))
341}
342
343func (s *state) CheckSender(ctx context.Context, addr string) module.CheckResult {
344 s.mailFrom = addr

Callers

nothing calls this directly

Calls 2

expandCommandMethod · 0.95
runMethod · 0.95

Tested by

no test coverage detected