tweets

package
v0.0.0-...-217dc0b Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TweetData

type TweetData struct {
	TweetID    string `json:"tweetid"`    // tweet id for client lookup
	NextLoadMS int    `json:"nextloadms"` // random next load time
	Error      string `json:"error"`
}

TweetData summary tweet data for client

func GetTweetData

func GetTweetData() (*TweetData, error)

GetTweetData get a new TweetData item. Fetch 10 at a time and cache them, giving out one at a time until the cache stack is empty, then reload.

func NewTweetData

func NewTweetData(tweetID string) *TweetData

NewTweetData get a prepared new tweet data

func TweetDataError

func TweetDataError() *TweetData

TweetDataError get a tweet data instance with an error message

Jump to

Keyboard shortcuts

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