social

package
v0.0.0-...-eeb6358 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2018 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetThread

func GetThread(tx *bolt.Tx, ref ssb.Ref) []*ssb.SignedMessage

func GetVotes

func GetVotes(tx *bolt.Tx, ref ssb.Ref) []*ssb.SignedMessage

Types

type About

type About struct {
	ssb.MessageBody
	About ssb.Ref `json:"about"`
	Name  string  `json:"name,omitempty"`
	Image *Image  `json:"image,omitempty"`
}

func GetAbout

func GetAbout(tx *bolt.Tx, ref ssb.Ref) (a *About)

type Image

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

func (*Image) UnmarshalJSON

func (i *Image) UnmarshalJSON(b []byte) error
type Link struct {
	Link ssb.Ref `json:"link"`
}

type Post

type Post struct {
	ssb.MessageBody
	Text     string  `json:"text"`
	Channel  string  `json:"channel,omitempty"`
	Root     ssb.Ref `json:"root,omitempty"`
	Branch   ssb.Ref `json:"branch,omitempty"`
	Recps    []Link  `json:"recps,omitempty"`
	Mentions []Link  `json:"mentions,omitempty"`
}

type Vote

type Vote struct {
	ssb.MessageBody
	Vote struct {
		Link   ssb.Ref `json:"link"`
		Value  int     `json:"value"`
		Reason string  `json:"reason,omitempty"`
	} `json:"vote"`
}

Jump to

Keyboard shortcuts

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