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: 0

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