helpers

package
v0.0.0-...-2f1736b Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2016 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DoN1qlQuery

func DoN1qlQuery(bucket *gocb.Bucket, query string, params []interface{}) (*uint64, error)

func GetMaxTweetID

func GetMaxTweetID(bucket *gocb.Bucket, handle string) (*uint64, error)

func GetMinTweetID

func GetMinTweetID(bucket *gocb.Bucket, handle string) (*uint64, error)

func GetTweets

func GetTweets(bucket *gocb.Bucket, handle string) ([]string, error)

func LoadAndStoreTweets

func LoadAndStoreTweets(bucket *gocb.Bucket, api *anaconda.TwitterApi, handle string) (*uint32, error)

func OpenBucket

func OpenBucket() (*gocb.Bucket, error)

func OpenTwitterAPI

func OpenTwitterAPI() *anaconda.TwitterApi

func QueryTweets

func QueryTweets(api *anaconda.TwitterApi, username string, count int64, maxID *uint64, sinceID *uint64) ([]anaconda.Tweet, error)

Types

type TweetDoc

type TweetDoc struct {
	*anaconda.Tweet
	Type string `json:"type"`
}

func InsertTweets

func InsertTweets(bucket *gocb.Bucket, tweets []anaconda.Tweet) ([]*TweetDoc, error)

Jump to

Keyboard shortcuts

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