ostatus

package module
v0.0.0-...-30adf6a Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2018 License: MIT Imports: 7 Imported by: 3 modules, 4 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

go-ostatus

GoDoc Build Status

An OStatus library written in Go. It can be used to build custom OStatus instances (e.g. a Twitter instance).

The protocol suite includes:

License

MIT

Documentation

Overview

Package ostatus implements the OStatus protocol suite.

Index

Constants

View Source
const RelSubscribe = "http://ostatus.org/schema/1.0/subscribe"

RelSubscribe is the subscribe relation.

Variables

View Source
var (
	HubPath    = "/hub"
	SalmonPath = "/salmon"
)

Default endpoints.

Functions

This section is empty.

Types

type Backend

type Backend interface {
	webfinger.Backend
	pubsubhubbub.Backend
	salmon.Backend

	// Feed fetches a feed about a topic.
	Feed(topic string) (*activitystream.Feed, error)
}

A Backend is used to create OStatus instances.

type Handler

type Handler struct {
	http.Handler

	Publisher *pubsubhubbub.Publisher
}

Handler handles OStatus requests.

func NewHandler

func NewHandler(be Backend, hostmetaResource *xrd.Resource) *Handler

NewHandler creates a new OStatus endpoint.

Directories

Path Synopsis
Package activitystream implements Atom Activity Streams 1.0, as defined in http://activitystrea.ms/specs/atom/1.0/.
Package activitystream implements Atom Activity Streams 1.0, as defined in http://activitystrea.ms/specs/atom/1.0/.
Package pubsubhubbub implements PubSubHubbub, as defined in http://pubsubhubbub.github.io/PubSubHubbub/pubsubhubbub-core-0.4.html.
Package pubsubhubbub implements PubSubHubbub, as defined in http://pubsubhubbub.github.io/PubSubHubbub/pubsubhubbub-core-0.4.html.
Package salmon implements the Salmon protocol, as defined in http://www.salmon-protocol.org/salmon-protocol-summary.
Package salmon implements the Salmon protocol, as defined in http://www.salmon-protocol.org/salmon-protocol-summary.
xrd
Package xrd implements Extensible Resource Descriptor as defined in http://docs.oasis-open.org/xri/xrd/v1.0/xrd-1.0.html.
Package xrd implements Extensible Resource Descriptor as defined in http://docs.oasis-open.org/xri/xrd/v1.0/xrd-1.0.html.
hostmeta
Package hostmeta implements Web Host Metadata, as defined in https://tools.ietf.org/html/rfc6415.
Package hostmeta implements Web Host Metadata, as defined in https://tools.ietf.org/html/rfc6415.
lrdd
Package lrdd implements Link-based Resource Descriptor Discovery as defined in https://tools.ietf.org/html/draft-hammer-discovery-04.
Package lrdd implements Link-based Resource Descriptor Discovery as defined in https://tools.ietf.org/html/draft-hammer-discovery-04.
webfinger
Package webfinger implements WebFinger, as defined in https://tools.ietf.org/html/rfc7033.
Package webfinger implements WebFinger, as defined in https://tools.ietf.org/html/rfc7033.

Jump to

Keyboard shortcuts

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