# Functions
No description provided by the author
No description provided by the author
ExtractMention parses a given request object and tries to extract source and target from it.
NewEndpointDiscoverer creates a new EndpointDiscoverer configured with the given configurators.
NewSender creates a configured sender implementation.
NewVerifier creates a new verifier instance.
Verify uses a basic HTTP client and a default Verifier.
# Variables
ErrInvalidRequest is returned by ExtractMention if either source or target are not provided or not URLs.
ErrUnsupportedContentType is returned by ExtractMention if the POST request is not form-urlencoded.
ErrUnsupportedMethod is returned by ExtractMention if a non-POST request is present.
# Structs
No description provided by the author
EndpointDiscoveryConfiguration allows to pass configuration parameters to a new Discoverer.
Mention is what is sent to a receiver linking source and target.
SenderConfiguration allows to inject a custom HTTP Client into the Sender.
No description provided by the author
# Interfaces
EndpointDiscoverer is used to discover the Webmention endpoint for the given URL.
Sender is used to send webmentions.
Verifier is used to check if a given response body produced by fetching mention.Source contains a link to mention.Target.
# Type aliases
EndpointDiscoveryConfigurator is passed to NewEndDiscoverer to configure it.
SenderConfigurator is used as argument for the NewSender method and helps configuring a new Sender instance.