common

package
v0.2.29 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrAllTweetsAreFresh = errors.New("all tweets are fresh")
View Source
var ErrRatingNotFound = errors.New("rating for this user not found")

Functions

This section is empty.

Types

type ChannelMessage

type ChannelMessage struct {
	ID       int
	Tweet    *Tweet
	Likes    map[string]int
	Dislikes map[string]int
}

type Photo

type Photo struct {
	ID  string
	URL string
}

Photo type.

type Rating added in v0.0.4

type Rating struct {
	Likes    int
	Dislikes int
}

type RequestLimitData

type RequestLimitData struct {
	RequestsCount uint64
	Threshold     uint64
}

type Tweet

type Tweet struct {
	ID           string
	Likes        int
	Name         string
	PermanentURL string
	Replies      int
	Retweets     int
	Text         string
	TimeParsed   time.Time
	Timestamp    int64
	UserID       string
	Username     string
	Views        int
	Photos       []Photo
	Videos       []Video
}

type TweetSnapshot

type TweetSnapshot struct {
	*Tweet
	RatingGrowSpeed float64
	CheckedAt       time.Time
}

func (TweetSnapshot) String

func (t TweetSnapshot) String() string

type TweetSnapshotIndex added in v0.0.81

type TweetSnapshotIndex struct {
	ID              string
	Key             fdb.Key `json:"-"`
	RatingGrowSpeed float64
	CreatedAt       time.Time
	CheckedAt       time.Time
}

type TwitterAccount added in v0.0.4

type TwitterAccount struct {
	Login        string
	AccessToken  string
	Confirmation string
}

type UsernameRating added in v0.0.4

type UsernameRating struct {
	Username string
	*Rating
}

type Video

type Video struct {
	ID      string
	Preview string
	URL     string
}

Video type.

Jump to

Keyboard shortcuts

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