social

package
v0.0.0-...-bce068c Latest Latest
Warning

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

Go to latest
Published: May 3, 2017 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type About

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

func GetAbout

func GetAbout(tx *bolt.Tx, ref ssb.Ref) (a *About)
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
⌂ 换网址