MCPcopy Create free account

hub / github.com/asggo/spf / functions

Functions24 in github.com/asggo/spf

↓ 5 callersFunctionNewSPF
Create a new SPF record for the given domain using the provided string. If the provided string is not valid an error is returned.
spf.go:104
↓ 5 callersFunctionparseMechanism
(r Result, str, domain string)
mechanism.go:226
↓ 3 callersFunctionNewMechanism
NewMechanism creates a new Mechanism struct using the given string and domain name. When the mechanism does not define the domain, the provided domain
mechanism.go:206
↓ 3 callersMethodTest
Test evaluates each mechanism to determine the result for the client. Mechanisms are evaluated in order until one of them provides a valid result. If
spf.go:42
↓ 2 callersFunctionbuildNetworks
(ips []string, prefix string)
net.go:36
↓ 2 callersFunctiongetSPFRecord
(domain string)
spf.go:82
↓ 2 callersFunctionipInNetworks
(ip net.IP, networks []*net.IPNet)
net.go:26
↓ 2 callersFunctionnetworkCIDR
(ip, prefix string)
net.go:9
↓ 1 callersMethodEvaluate
Evaluate determines if the given IP address is covered by the mechanism. If the IP is covered, the mechanism result is returned and error is nil. If t
mechanism.go:135
↓ 1 callersMethodResultTag
ResultTag maps the Result code to a suitable char
mechanism.go:56
↓ 1 callersMethodSPFString
SPFString returns a formatted SPF object as a string suitable for use in a TXT record.
spf.go:71
↓ 1 callersFunctionSPFTest
* Exported functions. */ SPFTest determines the clients sending status for the given email addres. SPFTest will return one of the following results:
spf.go:174
↓ 1 callersMethodString
Return a Mechanism as a string
mechanism.go:37
↓ 1 callersMethodString
Return an SPF record as a string.
spf.go:54
↓ 1 callersMethodValid
Ensure the mechanism is valid
mechanism.go:103
↓ 1 callersFunctionaNetworks
(m *Mechanism)
net.go:49
↓ 1 callersFunctionmxNetworks
(m *Mechanism)
net.go:55
↓ 1 callersFunctiontestPTR
(m *Mechanism, ip string)
net.go:68
MethodSPFString
SPFString return a string representation of a mechanism, suitable for using in a TXT record.
mechanism.go:73
FunctionTestNewMechanism
(t *testing.T)
mechanism_test.go:37
FunctionTestNewSPF
(t *testing.T)
spf_test.go:25
FunctionTestSPFString
(t *testing.T)
spf_test.go:64
FunctionTestSPFTest
(t *testing.T)
spf_test.go:42
FunctionTestValidMechanism
(t *testing.T)
mechanism_test.go:15