webmention

package module
v0.0.0-...-ad8e538 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2019 License: Apache-2.0 Imports: 13 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

A Google Cloud Functions implementation of Webmention.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IncomingWebMention

func IncomingWebMention(w http.ResponseWriter, r *http.Request)

IncomingWebMention handles incoming Webmentions.

func Mentions

func Mentions(w http.ResponseWriter, r *http.Request)

Mentions returns HTML describing all the good Webmentions for the given URL.

func Thumbnail

func Thumbnail(w http.ResponseWriter, r *http.Request)

func Triage

func Triage(w http.ResponseWriter, r *http.Request)

Triage displays the triage page for Webmentions.

func UpdateMention

func UpdateMention(w http.ResponseWriter, r *http.Request)

UpdateMention updates the triage state of a webmention. Called from the Triage page.

func VerifyQueuedMentions

func VerifyQueuedMentions(ctx context.Context, ps PubSubMessage) error

VerifyQueuedMentions verifies untriaged webmentions.

Should be called on a timer.

Types

type MentionsContext

type MentionsContext struct {
	Host     string
	Mentions []*mention.Mention
}

type PubSubMessage

type PubSubMessage struct {
	Data []byte `json:"data"`
}

Directories

Path Synopsis
ds is a package for using Google Cloud Datastore.
ds is a package for using Google Cloud Datastore.

Jump to

Keyboard shortcuts

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