MCPcopy
hub / github.com/caddyserver/certmagic / Present

Method Present

solvers.go:872–877  ·  view source on GitHub ↗
(ctx context.Context, chal acme.Challenge)

Source from the content-addressed store, hash-verified

870type solverWrapper struct{ acmez.Solver }
871
872func (sw solverWrapper) Present(ctx context.Context, chal acme.Challenge) error {
873 activeChallengesMu.Lock()
874 activeChallenges[challengeKey(chal)] = Challenge{Challenge: chal}
875 activeChallengesMu.Unlock()
876 return sw.Solver.Present(ctx, chal)
877}
878
879func (sw solverWrapper) Wait(ctx context.Context, chal acme.Challenge) error {
880 if waiter, ok := sw.Solver.(acmez.Waiter); ok {

Callers

nothing calls this directly

Calls 4

challengeKeyFunction · 0.85
LockMethod · 0.65
UnlockMethod · 0.65
PresentMethod · 0.45

Tested by

no test coverage detected