MCPcopy
hub / github.com/keploy/keploy / Add

Method Add

pkg/platform/telemetry/domain.go:121–127  ·  view source on GitHub ↗

Add adds a domain to the set. Safe for concurrent use.

(domain string)

Source from the content-addressed store, hash-verified

119
120// Add adds a domain to the set. Safe for concurrent use.
121func (ds *DomainSet) Add(domain string) {
122 if domain != "" {
123 ds.mu.Lock()
124 ds.domains[domain] = struct{}{}
125 ds.mu.Unlock()
126 }
127}
128
129// AddAll adds multiple domains to the set. Safe for concurrent use.
130func (ds *DomainSet) AddAll(domains []string) {

Calls

no outgoing calls