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

Method saveDNSPresentMemory

solvers.go:541–548  ·  view source on GitHub ↗
(mem dnsPresentMemory)

Source from the content-addressed store, hash-verified

539}
540
541func (s *DNSManager) saveDNSPresentMemory(mem dnsPresentMemory) {
542 s.recordsMu.Lock()
543 if s.records == nil {
544 s.records = make(map[string][]dnsPresentMemory)
545 }
546 s.records[mem.dnsName] = append(s.records[mem.dnsName], mem)
547 s.recordsMu.Unlock()
548}
549
550func (s *DNSManager) getDNSPresentMemory(dnsName, recType, value string) (dnsPresentMemory, error) {
551 s.recordsMu.Lock()

Callers 1

PresentMethod · 0.80

Calls 2

LockMethod · 0.65
UnlockMethod · 0.65

Tested by

no test coverage detected