websub

package
v0.0.0-...-6b0313b Latest Latest
Warning

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

Go to latest
Published: May 7, 2023 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrDiscoverMissing = errors.New("websub: hub or topic missing from discover response")

Functions

This section is empty.

Types

type Client

type Client struct {
	Client *http.Client

	CallbackURL string

	Content chan []byte
	// contains filtered or unexported fields
}

func (*Client) Discover

func (c *Client) Discover(url string) (hub string, topic string, err error)

func (*Client) ServeHTTP

func (c *Client) ServeHTTP(w http.ResponseWriter, r *http.Request)

func (*Client) Subscribe

func (c *Client) Subscribe(hub, topic string) error

func (*Client) Unsubscribe

func (c *Client) Unsubscribe(topic string) error

Jump to

Keyboard shortcuts

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