boards

package
v0.0.0-...-d399794 Latest Latest
Warning

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

Go to latest
Published: May 3, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PubsubThreadsPrefix = "/" + protocol + "/" + version + "/boards"
	PubsubPostsPrefix   = "/" + protocol + "/" + version + "/threads"

	PubsubSyncThreads = "/" + protocol + "/" + version + "/sync"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient() (*Client, error)

func (*Client) AdvertiseThreads

func (c *Client) AdvertiseThreads(threads map[string][]string)

func (*Client) GetPost

func (c *Client) GetPost(ref string) (*Post, error)

func (*Client) PutPost

func (c *Client) PutPost(p Post) (string, error)

type Post

type Post struct {
	Extensions map[string]interface{} `json:",omitempty"`
	Topic      string                 `json:",omitempty"`
	Title      string                 `json:",omitempty"`
	Thread     string                 `json:",omitempty"`
	Protocol   string
	Version    string
	Content    string
	Posted     string
}

Jump to

Keyboard shortcuts

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