Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoApp = errors.New("no h-x-app or h-app could be found")
ErrNoApp is used to signal when no app microformat exists.
Functions ¶
This section is empty.
Types ¶
type EventType ¶
type EventType uint
EventType defines what has occured.
const ( // Error means something went wrong when trying to request a URL. Error EventType = iota // Found means a new link has been found that could be used for // authentication. Found // Verified means a link has been confirmed as usable for authentication. Verified // Unverified means a previously found link can't be used for authentication. Unverified // PGP means a pgpkey has been found that can be used for authentication. PGP )
type RelMe ¶
func (*RelMe) Find ¶
Find takes a profile URL and returns a list of all hrefs in <a rel="me"/> elements on the page.
func (*RelMe) FindAuth ¶
FindAuth takes a profile URL and returns a list of all hrefs in <a rel="me authn"/> elements on the page that also link back to the profile, if none exist it fallsback to using hrefs in <a rel="me"/> elements as FindVerified does.
Click to show internal directories.
Click to hide internal directories.