entity

package
v0.0.0-...-4aa8526 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrTweetDoesNotExist     = errors.New("tweet does not exist")
	ErrTweetAlreadyFavorited = errors.New("tweet already favorited")
	ErrTweetAlreadyRetweeted = errors.New("tweet already retweeted")
)

Functions

This section is empty.

Types

type Reply

type Reply struct {
	ID             int64    `json:"id,omitempty"`
	Content        string   `json:"content,omitempty"`
	PhotoURLs      []string `json:"photo_urls"`
	AuthorName     string   `json:"author_name,omitempty"`
	AuthorHandle   string   `json:"author_handle,omitempty"`
	AuthorPhotoURL string   `json:"author_photo_url,omitempty"`
	FavoritesCount int      `json:"favorites_count"`
	RepliesCount   int      `json:"replies_count"`
	RetweetsCount  int      `json:"retweets_count"`
	AlreadyLiked   bool     `json:"already_liked"`
}

type Tweet

type Tweet struct {
	ID             int64     `json:"id"`
	Content        string    `json:"content"`
	PhotoURLs      []string  `json:"photo_urls"`
	FavoritesCount int       `json:"favorites_count"`
	RepliesCount   int       `json:"replies_count"`
	RetweetsCount  int       `json:"retweets_count"`
	CreatedAt      time.Time `json:"created_at"`
}

Jump to

Keyboard shortcuts

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