package pingback
import "github.com/google/martian/v3/pingback"
Package pingback provides verification that specific URLs have been seen by the proxy.
Index ¶
Functions ¶
func NewVerifier ¶
func NewVerifier(url *url.URL) verify.RequestVerifier
NewVerifier returns a new pingback verifier.
Types ¶
type Verifier ¶
type Verifier struct {
// contains filtered or unexported fields
}
Verifier verifies that the specific URL has been seen.
func (*Verifier) ModifyRequest ¶
ModifyRequest verifies that the request URL matches all parts of url.
If the value in url is non-empty, it must be an exact match. If the URL matches the pingback, it is recorded by setting the error to nil. The error will continue to be nil until the verifier has been reset, regardless of subsequent requests matching.
func (*Verifier) ResetRequestVerifications ¶
func (v *Verifier) ResetRequestVerifications()
ResetRequestVerifications clears the failed request verification.
func (*Verifier) VerifyRequests ¶
VerifyRequests returns an error if pingback never occurred.
Source Files ¶
- Version
- v3.3.3 (latest)
- Published
- Aug 16, 2022
- Platform
- windows/amd64
- Imports
- 7 packages
- Last checked
- 9 hours ago –
Tools for package owners.