webmention

package
v0.0.0-...-7609c90 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 5, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

webmention project webmention.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Link struct {
	URL    *url.URL
	Params map[string][]string
}
func GetHeaderLinks(headers []string) []*Link

type WebMention

type WebMention struct {
	Mention func(source, target *url.URL, sourceData *microformats.Data) error
	// contains filtered or unexported fields
}

func New

func New() *WebMention

func (*WebMention) GetTargetEndpoint

func (wm *WebMention) GetTargetEndpoint(target *url.URL) (*url.URL, error)

func (*WebMention) SendNotification

func (wm *WebMention) SendNotification(target *url.URL, source *url.URL)

func (*WebMention) WebMentionEndpoint

func (wm *WebMention) WebMentionEndpoint(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL