webmention

package
v0.0.0-...-2efcb5c Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package webmention implements a handler for receiving webmentions.

See the specification https://www.w3.org/TR/webmention/.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Endpoint

func Endpoint(blog Blog) http.Handler

Endpoint receives webmentions, immediately returning a response of Accepted, and processing them asynchronously.

func Send

func Send(source, target string) error

Types

type Blog

type Blog interface {
	Entry(url string) (data map[string][]interface{}, err error)
	Mention(source string, data map[string][]interface{}) error
	BaseURL() string
}

Jump to

Keyboard shortcuts

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