Documentation ¶
Index ¶
- Variables
- func IsValidKey(key string) bool
- type Logger
- type Repository
- func (r *Repository) Close() error
- func (r *Repository) DownloadImageFromDB(downloadDir string) error
- func (r *Repository) GetMaxID() (int64, error)
- func (r *Repository) GetMinID() (int64, error)
- func (r *Repository) SaveMaxId(maxId int64) (bool, error)
- func (r *Repository) SaveMinId(minId int64) (bool, error)
- func (r *Repository) SaveTweet(tweet *anaconda.Tweet) error
- func (r *Repository) SendTweetStrToChannel(ch chan string) error
- func (r *Repository) SetMaxId(maxId int64) error
- func (r *Repository) SetMinId(minId int64) error
Constants ¶
This section is empty.
Variables ¶
View Source
var MaxIDKey = "maxID"
View Source
var MinIDKey = "minID"
Functions ¶
func IsValidKey ¶
Types ¶
type Logger ¶
type Logger interface { Println(i ...interface{}) Printf(format string, i ...interface{}) }
type Repository ¶
type Repository struct {
// contains filtered or unexported fields
}
func (*Repository) Close ¶
func (r *Repository) Close() error
func (*Repository) DownloadImageFromDB ¶
func (r *Repository) DownloadImageFromDB(downloadDir string) error
func (*Repository) GetMaxID ¶
func (r *Repository) GetMaxID() (int64, error)
func (*Repository) GetMinID ¶
func (r *Repository) GetMinID() (int64, error)
func (*Repository) SendTweetStrToChannel ¶
func (r *Repository) SendTweetStrToChannel(ch chan string) error
SendTweetStrToChannel send tweet strings in DB to provided channel
func (*Repository) SetMaxId ¶
func (r *Repository) SetMaxId(maxId int64) error
func (*Repository) SetMinId ¶
func (r *Repository) SetMinId(minId int64) error
Click to show internal directories.
Click to hide internal directories.