Documentation ¶
Index ¶
- func Has(b, flag Bits) bool
- func SetDDBLogger(logger *logrus.Logger) func(*DDBDriver)
- func SetDDBProfile(profile string) func(*DDBDriver)
- func SetDDBRegion(region string) func(*DDBDriver)
- func SetDDBTablePrefix(tablePrefix string) func(*DDBDriver)
- type Bits
- type CursoredTweetConfigQuery
- type DDBDriver
- func (config *DDBDriver) DeleteMedia(mediaItem *MediaItem) error
- func (config *DDBDriver) DeleteRunnerUser(params *RunnerItem) error
- func (config *DDBDriver) ExportList(tableArn string) (*dynamodb.ListExportsOutput, error)
- func (config *DDBDriver) ExportStatus(exportArn string) (*dynamodb.DescribeExportOutput, error)
- func (config *DDBDriver) ExportTable(params *TableExportRequest) (*dynamodb.ExportTableToPointInTimeOutput, error)
- func (config *DDBDriver) GetDriverName() string
- func (config *DDBDriver) GetFavoritesByTweetId(tweetID int64) ([]*UserToTweetLink, error)
- func (config *DDBDriver) GetFavoritesByUserId(userID int64) ([]*UserToTweetLink, error)
- func (config *DDBDriver) GetFavoritesConfig(userID int64) (*FavoritesItem, error)
- func (config *DDBDriver) GetFollowersByFollowId(followID int64) ([]*UserToFollowerLink, error)
- func (config *DDBDriver) GetFollowersByUserId(userID int64) ([]*UserToFollowerLink, error)
- func (config *DDBDriver) GetFollowersConfig(userID int64) (*FollowersItem, error)
- func (config *DDBDriver) GetFriendsByFriendId(friendID int64) ([]*UserToFriendLink, error)
- func (config *DDBDriver) GetFriendsByUserId(userID int64) ([]*UserToFriendLink, error)
- func (config *DDBDriver) GetFriendsConfig(userID int64) (*FriendsItem, error)
- func (config *DDBDriver) GetRunnerUsers(runnerUsers *RunnerItem) ([]*RunnerItem, error)
- func (config *DDBDriver) GetTimelineConfig(userID int64) (*TweetsItem, error)
- func (config *DDBDriver) PutFavorites(links []*UserToTweetLink) error
- func (config *DDBDriver) PutFavoritesConfig(query *TweetConfigQuery) error
- func (config *DDBDriver) PutFollowers(links []*UserToFollowerLink) error
- func (config *DDBDriver) PutFollowersConfig(query *CursoredTweetConfigQuery) error
- func (config *DDBDriver) PutFriends(links []*UserToFriendLink) error
- func (config *DDBDriver) PutFriendsConfig(query *CursoredTweetConfigQuery) error
- func (config *DDBDriver) PutMedia(mediaItem *MediaItem) error
- func (config *DDBDriver) PutRunnerFlags(params *RunnerItem) error
- func (config *DDBDriver) PutTimelineConfig(query *TweetConfigQuery) error
- type DDBOption
- type FavoritesItem
- type FollowersItem
- type FriendsItem
- type MediaItem
- type RunnerItem
- type TableExportRequest
- type TweetConfigQuery
- type TweetsItem
- type UserToFollowerLink
- type UserToFriendLink
- type UserToTweetLink
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetDDBLogger ¶
func SetDDBProfile ¶
func SetDDBRegion ¶
func SetDDBTablePrefix ¶
Types ¶
type DDBDriver ¶
type DDBDriver struct {
// contains filtered or unexported fields
}
func (*DDBDriver) DeleteMedia ¶
func (*DDBDriver) DeleteRunnerUser ¶
func (config *DDBDriver) DeleteRunnerUser(params *RunnerItem) error
func (*DDBDriver) ExportList ¶
func (config *DDBDriver) ExportList(tableArn string) (*dynamodb.ListExportsOutput, error)
func (*DDBDriver) ExportStatus ¶
func (config *DDBDriver) ExportStatus(exportArn string) (*dynamodb.DescribeExportOutput, error)
func (*DDBDriver) ExportTable ¶
func (config *DDBDriver) ExportTable(params *TableExportRequest) (*dynamodb.ExportTableToPointInTimeOutput, error)
func (*DDBDriver) GetDriverName ¶
func (*DDBDriver) GetFavoritesByTweetId ¶
func (config *DDBDriver) GetFavoritesByTweetId(tweetID int64) ([]*UserToTweetLink, error)
func (*DDBDriver) GetFavoritesByUserId ¶
func (config *DDBDriver) GetFavoritesByUserId(userID int64) ([]*UserToTweetLink, error)
func (*DDBDriver) GetFavoritesConfig ¶
func (config *DDBDriver) GetFavoritesConfig(userID int64) (*FavoritesItem, error)
func (*DDBDriver) GetFollowersByFollowId ¶
func (config *DDBDriver) GetFollowersByFollowId(followID int64) ([]*UserToFollowerLink, error)
func (*DDBDriver) GetFollowersByUserId ¶
func (config *DDBDriver) GetFollowersByUserId(userID int64) ([]*UserToFollowerLink, error)
func (*DDBDriver) GetFollowersConfig ¶
func (config *DDBDriver) GetFollowersConfig(userID int64) (*FollowersItem, error)
func (*DDBDriver) GetFriendsByFriendId ¶
func (config *DDBDriver) GetFriendsByFriendId(friendID int64) ([]*UserToFriendLink, error)
func (*DDBDriver) GetFriendsByUserId ¶
func (config *DDBDriver) GetFriendsByUserId(userID int64) ([]*UserToFriendLink, error)
func (*DDBDriver) GetFriendsConfig ¶
func (config *DDBDriver) GetFriendsConfig(userID int64) (*FriendsItem, error)
func (*DDBDriver) GetRunnerUsers ¶
func (config *DDBDriver) GetRunnerUsers(runnerUsers *RunnerItem) ([]*RunnerItem, error)
func (*DDBDriver) GetTimelineConfig ¶
func (config *DDBDriver) GetTimelineConfig(userID int64) (*TweetsItem, error)
func (*DDBDriver) PutFavorites ¶
func (config *DDBDriver) PutFavorites(links []*UserToTweetLink) error
func (*DDBDriver) PutFavoritesConfig ¶
func (config *DDBDriver) PutFavoritesConfig(query *TweetConfigQuery) error
func (*DDBDriver) PutFollowers ¶
func (config *DDBDriver) PutFollowers(links []*UserToFollowerLink) error
func (*DDBDriver) PutFollowersConfig ¶
func (config *DDBDriver) PutFollowersConfig(query *CursoredTweetConfigQuery) error
func (*DDBDriver) PutFriends ¶
func (config *DDBDriver) PutFriends(links []*UserToFriendLink) error
func (*DDBDriver) PutFriendsConfig ¶
func (config *DDBDriver) PutFriendsConfig(query *CursoredTweetConfigQuery) error
func (*DDBDriver) PutRunnerFlags ¶
func (config *DDBDriver) PutRunnerFlags(params *RunnerItem) error
func (*DDBDriver) PutTimelineConfig ¶
func (config *DDBDriver) PutTimelineConfig(query *TweetConfigQuery) error
type FavoritesItem ¶
type FavoritesItem struct { Domain string `json:"Domain" yaml:"Domain"` UserID int64 `json:"UserID" yaml:"UserID"` MaxID int64 `json:"MaxID" yaml:"MaxID"` SinceID int64 `json:"SinceID" yaml:"SinceID"` LastUpdate int64 `json:"LastUpdate" yaml:"LastUpdate"` LastUpdateTimestamp time.Time `json:"LastUpdateTimestamp" yaml:"LastUpdateTimestamp"` }
type FollowersItem ¶
type FollowersItem struct { Domain string `json:"Domain" yaml:"Domain"` UserID int64 `json:"UserID" yaml:"UserID"` NextCursor int64 `json:"NextCursor" yaml:"NextCursor"` PreviousCursor int64 `json:"PreviousCursor" yaml:"PreviousCursor"` LastUpdate int64 `json:"LastUpdate" yaml:"LastUpdate"` LastUpdateTimestamp time.Time `json:"LastUpdateTimestamp" yaml:"LastUpdateTimestamp"` }
type FriendsItem ¶
type FriendsItem struct { Domain string `json:"Domain" yaml:"Domain"` UserID int64 `json:"UserID" yaml:"UserID"` NextCursor int64 `json:"NextCursor" yaml:"NextCursor"` PreviousCursor int64 `json:"PreviousCursor" yaml:"PreviousCursor"` LastUpdate int64 `json:"LastUpdate" yaml:"LastUpdate"` LastUpdateTimestamp time.Time `json:"LastUpdateTimestamp" yaml:"LastUpdateTimestamp"` }
type MediaItem ¶
type MediaItem struct { Bucket string `json:"Bucket"` S3Key string `json:"S3Key"` UserID int64 `json:"UserID"` TweetID int64 `json:"TweetID"` Faces []rekognitionTypes.FaceDetail `json:"Faces"` Labels []rekognitionTypes.Label `json:"Labels"` Moderation []rekognitionTypes.ModerationLabel `json:"Moderation"` Text []rekognitionTypes.TextDetection `json:"Text"` FacesCount int `json:"FacesCount"` LabelsCount int `json:"LabelsCount"` ModerationCount int `json:"ModerationCount"` TextCount int `json:"TextCount"` }
type RunnerItem ¶
type TableExportRequest ¶
type TweetConfigQuery ¶
type TweetsItem ¶
type TweetsItem struct { Domain string `json:"Domain" yaml:"Domain"` UserID int64 `json:"UserID" yaml:"UserID"` MaxID int64 `json:"MaxID" yaml:"MaxID"` SinceID int64 `json:"SinceID" yaml:"SinceID"` LastUpdate int64 `json:"LastUpdate" yaml:"LastUpdate"` LastUpdateTimestamp time.Time `json:"LastUpdateTimestamp" yaml:"LastUpdateTimestamp"` }
type UserToFollowerLink ¶
type UserToFriendLink ¶
type UserToTweetLink ¶
Click to show internal directories.
Click to hide internal directories.