clio

package
v0.0.0-...-406b088 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2018 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultViaURL is the via-URL for via-less posts (created on FriendFeed site)
	DefaultViaURL = "http://friendfeed.com"
	// DefaultViaName is the via-name for via-less posts (created on FriendFeed site)
	DefaultViaName = "FriendFeed"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Comment

type Comment struct {
	AuthorName string
	Author     *account.Account
	Hashtags   []string
	// contains filtered or unexported fields
}

Comment represents archived comment

func (*Comment) UnmarshalJSON

func (c *Comment) UnmarshalJSON(data []byte) error

UnmarshalJSON unmarshalls Comment from the archive

type Entry

type Entry struct {
	AuthorName string
	Author     *account.Account
	Links      []string
	Hashtags   []string
	// contains filtered or unexported fields
}

Entry represents archived FriendFeed entry

func (*Entry) Init

func (entry *Entry) Init(accs *account.Store)

Init initialize entry after unmarshalling

func (*Entry) UnmarshalJSON

func (entry *Entry) UnmarshalJSON(data []byte) error

UnmarshalJSON unmarshalls Entry from the archive

type Like

type Like struct {
	AuthorName string
	Author     *account.Account
	// contains filtered or unexported fields
}

Like represents archived like

func (*Like) UnmarshalJSON

func (l *Like) UnmarshalJSON(data []byte) error

UnmarshalJSON unmarshalls Like from the archive

type UserJSON

type UserJSON struct {
	UserName string `json:"id"`
	Type     string `json:"type"`
}

UserJSON is a json-data of user account

type ViaJSON

type ViaJSON struct {
	URL  string `json:"url"`
	Name string `json:"name"`
}

ViaJSON represents via-source of entry

type ViaStatItem

type ViaStatItem struct {
	ViaJSON
	Count int `json:"count"`
}

ViaStatItem represents element of via statistic

Jump to

Keyboard shortcuts

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