MCPcopy Create free account
hub / github.com/foxcpp/maddy / New

Function New

internal/check/dnsbl/dnsbl.go:80–87  ·  view source on GitHub ↗
(c *container.C, modName, instName string)

Source from the content-addressed store, hash-verified

78}
79
80func New(c *container.C, modName, instName string) (module.Module, error) {
81 return &DNSBL{
82 instName: instName,
83
84 resolver: dns.DefaultResolver(),
85 log: c.DefaultLogger.Sublogger(modName),
86 }, nil
87}
88
89func (bl *DNSBL) Name() string {
90 return "dnsbl"

Callers

nothing calls this directly

Calls 2

DefaultResolverFunction · 0.92
SubloggerMethod · 0.80

Tested by

no test coverage detected