websub

package
Version: v0.0.0-...-edf5a02 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2022 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetHubURL

func GetHubURL(client *http.Client, topic string) (string, error)

GetHubURL finds the HubURL for topic

func Subscribe

func Subscribe(client *http.Client, hubURL, topicURL, callbackURL, secret string, leaseSeconds int) error

Subscribe subscribes topicURL on hubURL

func ValidateHubSignature

func ValidateHubSignature(sig string, feedContent, secret []byte) error

ValidateHubSignature validate a sha1 signature that could be send with the hub as an extra header

Types

This section is empty.

Jump to

Keyboard shortcuts

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