Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrUserNotFound = errors.New("twitter user not found")
)
Functions ¶
This section is empty.
Types ¶
type Record ¶
type Store ¶
type Store interface {
// SaveUser saves a Twitter user's information
SaveUser(ctx context.Context, record *Record) error
// GetUser gets a Twitter user's information
GetUser(ctx context.Context, username string) (*Record, error)
// GetStaleUsers gets user that have their last updated timestamp older than minAge
GetStaleUsers(ctx context.Context, minAge time.Duration, limit int) ([]*Record, error)
// MarkTweetAsProcessed marks a tweet as being processed
MarkTweetAsProcessed(ctx context.Context, tweetId string) error
// IsTweetProcessed returns whether a tweet is processed
IsTweetProcessed(ctx context.Context, tweetId string) (bool, error)
}
Click to show internal directories.
Click to hide internal directories.