Documentation ¶
Index ¶
- type AuthorCount
- type DatabaseConnectionSecret
- type MyDB
- func (db *MyDB) AddComment(p reddit.PostComment) error
- func (db *MyDB) AddPost(p reddit.SubredditPost) error
- func (db *MyDB) AddSubreddit(s reddit.Subreddit) error
- func (db *MyDB) GetAverageSentimentOfSubreddits() ([]SubredditAvgSentiment, error)
- func (db *MyDB) GetComments(subreddit, postID string) ([]reddit.PostComment, error)
- func (db *MyDB) GetPosts(subreddit string) ([]reddit.SubredditPost, error)
- func (db *MyDB) GetPostsBetweenDates(now, then string) ([]reddit.SubredditPost, error)
- func (db *MyDB) GetSubredditNames() ([]string, error)
- func (db *MyDB) GetTopAuthorsPerSubreddit(subredditName string) ([]AuthorCount, error)
- func (db *MyDB) GetTopLevelComments(postID string) ([]reddit.PostComment, error)
- func (db *MyDB) SubredditSearch(searchValue string) ([]reddit.Subreddit, error)
- func (db *MyDB) SubredditSentiment(subredditID string) (SubredditSentiment, error)
- func (db *MyDB) TopicOccurance(subredditID string) ([]TopicCount, error)
- func (db *MyDB) UpdatePost(p reddit.SubredditPost) error
- func (db *MyDB) UpdateTopic(PostID string, topic string) error
- type SubredditAvgSentiment
- type SubredditSentiment
- type TopicCount
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthorCount ¶
type MyDB ¶
func (*MyDB) AddComment ¶
func (db *MyDB) AddComment(p reddit.PostComment) error
func (*MyDB) GetAverageSentimentOfSubreddits ¶
func (db *MyDB) GetAverageSentimentOfSubreddits() ([]SubredditAvgSentiment, error)
func (*MyDB) GetComments ¶
func (db *MyDB) GetComments(subreddit, postID string) ([]reddit.PostComment, error)
func (*MyDB) GetPostsBetweenDates ¶
func (db *MyDB) GetPostsBetweenDates(now, then string) ([]reddit.SubredditPost, error)
func (*MyDB) GetSubredditNames ¶
func (*MyDB) GetTopAuthorsPerSubreddit ¶
func (db *MyDB) GetTopAuthorsPerSubreddit(subredditName string) ([]AuthorCount, error)
func (*MyDB) GetTopLevelComments ¶
func (db *MyDB) GetTopLevelComments(postID string) ([]reddit.PostComment, error)
func (*MyDB) SubredditSearch ¶
func (*MyDB) SubredditSentiment ¶
func (db *MyDB) SubredditSentiment(subredditID string) (SubredditSentiment, error)
func (*MyDB) TopicOccurance ¶
func (db *MyDB) TopicOccurance(subredditID string) ([]TopicCount, error)
func (*MyDB) UpdatePost ¶
func (db *MyDB) UpdatePost(p reddit.SubredditPost) error
type SubredditAvgSentiment ¶
type SubredditSentiment ¶
type SubredditSentiment struct { PostSentiment float64 `json:"postSent" db:"postSent"` PostPositive float64 `json:"postSentPos" db:"postSentPos"` PostNegative float64 `json:"postSentNeg" db:"postSentNeg"` PostNeutral float64 `json:"postSentNeu" db:"postSentNeu"` CommentSentiment float64 `json:"commentSent" db:"commentSent"` CommentPositive float64 `json:"commentSentPos" db:"commentSentPos"` CommentNegative float64 `json:"commentSentNeg" db:"commentSentNeg"` CommentNeutral float64 `json:"commentSentNeu" db:"commentSentNeu"` }
type TopicCount ¶
Click to show internal directories.
Click to hide internal directories.