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

Method CheckConnection

internal/check/stateless_check.go:86–99  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

84}
85
86func (s *statelessCheckState) CheckConnection(ctx context.Context) module.CheckResult {
87 if s.c.connCheck == nil {
88 return module.CheckResult{}
89 }
90 defer trace.StartRegion(ctx, s.c.modName+"/CheckConnection").End()
91
92 originalRes := s.c.connCheck(StatelessCheckContext{
93 Context: ctx,
94 Resolver: s.c.resolver,
95 MsgMeta: s.msgMeta,
96 Logger: target.DeliveryLogger(s.c.logger, s.msgMeta),
97 })
98 return s.c.failAction.Apply(originalRes)
99}
100
101func (s *statelessCheckState) CheckSender(ctx context.Context, mailFrom string) module.CheckResult {
102 if s.c.senderCheck == nil {

Callers

nothing calls this directly

Calls 1

ApplyMethod · 0.45

Tested by

no test coverage detected