twitter

package
v0.0.0-...-3b05dd8 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRandString

func GetRandString(length int) string

Types

type Tweet

type Tweet struct {
	ID        int64  `json:"id"`
	TweetText string `json:"tweetText"`
	Timestamp int64  `json:"timestamp"`
}

type TweetService

type TweetService struct {
	Tweets     []*Tweet
	TweetCount int64
	// contains filtered or unexported fields
}

func NewTweetService

func NewTweetService() *TweetService

func (*TweetService) AddRandTweet

func (t *TweetService) AddRandTweet() (*Tweet, error)

func (*TweetService) AddTweet

func (t *TweetService) AddTweet(tweetText string) (*Tweet, error)

func (*TweetService) GetTweets

func (t *TweetService) GetTweets() []*Tweet

Jump to

Keyboard shortcuts

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