Documentation ¶
Index ¶
- type Datastore
- func (_m *Datastore) AccessRequestIterCollect(ctx context.Context, iter datastore.DiscussionAccessRequestIter) ([]*model.DiscussionAccessRequest, error)
- func (_m *Datastore) AssignFlair(ctx context.Context, participant model.Participant, flairID *string) (*model.Participant, error)
- func (_m *Datastore) BeginTx(ctx context.Context) (*sql.Tx, error)
- func (_m *Datastore) CommitTx(ctx context.Context, tx *sql.Tx) error
- func (_m *Datastore) CreateModerator(ctx context.Context, moderator model.Moderator) (*model.Moderator, error)
- func (_m *Datastore) CreateOrUpdateUserProfile(ctx context.Context, userProfile model.UserProfile) (*model.UserProfile, bool, error)
- func (_m *Datastore) DeleteAllParticipantPosts(ctx context.Context, discussionID string, participantID string, ...) (int, error)
- func (_m *Datastore) DeleteDiscussionUserAccess(ctx context.Context, tx *sql.Tx, discussionID string, userID string) (*model.DiscussionUserAccess, error)
- func (_m *Datastore) DeletePostByID(ctx context.Context, postID string, deletedReasonCode model.PostDeletedReason) (*model.Post, error)
- func (_m *Datastore) DiscussionIterCollect(ctx context.Context, iter datastore.DiscussionIter) ([]*model.Discussion, error)
- func (_m *Datastore) DuaIterCollect(ctx context.Context, iter datastore.DiscussionUserAccessIter) ([]*model.DiscussionUserAccess, error)
- func (_m *Datastore) GetAccessLinkByDiscussionID(ctx context.Context, discussionID string) (*model.DiscussionAccessLink, error)
- func (_m *Datastore) GetAccessLinkBySlug(ctx context.Context, slug string) (*model.DiscussionAccessLink, error)
- func (_m *Datastore) GetDUAForEverythingNotifications(ctx context.Context, discussionID string, userID string) datastore.DiscussionUserAccessIter
- func (_m *Datastore) GetDUAForMentionNotifications(ctx context.Context, discussionID string, userID string, ...) datastore.DiscussionUserAccessIter
- func (_m *Datastore) GetDiscussionAccessRequestByDiscussionIDUserID(ctx context.Context, discussionID string, userID string) (*model.DiscussionAccessRequest, error)
- func (_m *Datastore) GetDiscussionAccessRequestsByDiscussionID(ctx context.Context, discussionID string) datastore.DiscussionAccessRequestIter
- func (_m *Datastore) GetDiscussionArchiveByDiscussionID(ctx context.Context, discussionID string) (*model.DiscussionArchive, error)
- func (_m *Datastore) GetDiscussionByID(ctx context.Context, id string) (*model.Discussion, error)
- func (_m *Datastore) GetDiscussionByLinkSlug(ctx context.Context, slug string) (*model.Discussion, error)
- func (_m *Datastore) GetDiscussionByModeratorID(ctx context.Context, moderatorID string) (*model.Discussion, error)
- func (_m *Datastore) GetDiscussionRequestAccessByID(ctx context.Context, id string) (*model.DiscussionAccessRequest, error)
- func (_m *Datastore) GetDiscussionUserAccess(ctx context.Context, discussionID string, userID string) (*model.DiscussionUserAccess, error)
- func (_m *Datastore) GetDiscussionsByIDs(ctx context.Context, ids []string) (map[string]*model.Discussion, error)
- func (_m *Datastore) GetDiscussionsByUserAccess(ctx context.Context, userID string, state model.DiscussionUserAccessState) datastore.DiscussionIter
- func (_m *Datastore) GetDiscussionsToBeShuffledBeforeTime(ctx context.Context, tx *sql.Tx, epoc time.Time) ([]model.Discussion, error)
- func (_m *Datastore) GetLastPostByDiscussionID(ctx context.Context, discussionID string) (*model.Post, error)
- func (_m *Datastore) GetMediaRecordByID(ctx context.Context, mediaID string) (*model.Media, error)
- func (_m *Datastore) GetModeratedDiscussionsByUserID(ctx context.Context, userID string) datastore.DiscussionIter
- func (_m *Datastore) GetModeratorByDiscussionID(ctx context.Context, discussionID string) (*model.Moderator, error)
- func (_m *Datastore) GetModeratorByID(ctx context.Context, id string) (*model.Moderator, error)
- func (_m *Datastore) GetModeratorByUserID(ctx context.Context, id string) (*model.Moderator, error)
- func (_m *Datastore) GetModeratorByUserIDAndDiscussionID(ctx context.Context, userID string, discussionID string) (*model.Moderator, error)
- func (_m *Datastore) GetModeratorParticipantsByDiscussionID(ctx context.Context, discussionID string) ([]model.Participant, error)
- func (_m *Datastore) GetNextShuffleTimeForDiscussionID(ctx context.Context, id string) (*model.DiscussionShuffleTime, error)
- func (_m *Datastore) GetParticipantByID(ctx context.Context, participantID string) (*model.Participant, error)
- func (_m *Datastore) GetParticipantsByDiscussionID(ctx context.Context, id string) ([]model.Participant, error)
- func (_m *Datastore) GetParticipantsByDiscussionIDUserID(ctx context.Context, discussionID string, userID string) ([]model.Participant, error)
- func (_m *Datastore) GetParticipantsByIDs(ctx context.Context, ids []string) (map[string]*model.Participant, error)
- func (_m *Datastore) GetPostByID(ctx context.Context, postID string) (*model.Post, error)
- func (_m *Datastore) GetPostContentByID(ctx context.Context, id string) (*model.PostContent, error)
- func (_m *Datastore) GetPostsByDiscussionIDFromCursorIter(ctx context.Context, discussionID string, cursor string, limit int) datastore.PostIter
- func (_m *Datastore) GetPostsByDiscussionIDIter(ctx context.Context, discussionID string) datastore.PostIter
- func (_m *Datastore) GetPostsConnectionByDiscussionID(ctx context.Context, discussionID string, cursor string, limit int) (*model.PostsConnection, error)
- func (_m *Datastore) GetSentDiscussionAccessRequestsByUserID(ctx context.Context, userID string) datastore.DiscussionAccessRequestIter
- func (_m *Datastore) GetSocialInfosByUserProfileID(ctx context.Context, userProfileID string) ([]model.SocialInfo, error)
- func (_m *Datastore) GetTotalParticipantCountByDiscussionID(ctx context.Context, discussionID string) int
- func (_m *Datastore) GetUserByID(ctx context.Context, userID string) (*model.User, error)
- func (_m *Datastore) GetUserDevicesByUserID(ctx context.Context, userID string) ([]model.UserDevice, error)
- func (_m *Datastore) GetUserProfileByID(ctx context.Context, id string) (*model.UserProfile, error)
- func (_m *Datastore) GetUserProfileByUserID(ctx context.Context, userID string) (*model.UserProfile, error)
- func (_m *Datastore) GetViewerForDiscussion(ctx context.Context, discussionID string, userID string) (*model.Viewer, error)
- func (_m *Datastore) GetViewersByIDs(ctx context.Context, viewerIDs []string) (map[string]*model.Viewer, error)
- func (_m *Datastore) IncrementDiscussionShuffleCount(ctx context.Context, tx *sql.Tx, id string) (*int, error)
- func (_m *Datastore) ListDiscussions(ctx context.Context) (*model.DiscussionsConnection, error)
- func (_m *Datastore) ListDiscussionsByUserID(ctx context.Context, userID string, state model.DiscussionUserAccessState) (*model.DiscussionsConnection, error)
- func (_m *Datastore) PostIterCollect(ctx context.Context, iter datastore.PostIter) ([]*model.Post, error)
- func (_m *Datastore) PutAccessLinkForDiscussion(ctx context.Context, tx *sql.Tx, input model.DiscussionAccessLink) (*model.DiscussionAccessLink, error)
- func (_m *Datastore) PutActivity(ctx context.Context, tx *sql.Tx, post *model.Post) error
- func (_m *Datastore) PutDiscussionAccessRequestRecord(ctx context.Context, tx *sql.Tx, request model.DiscussionAccessRequest) (*model.DiscussionAccessRequest, error)
- func (_m *Datastore) PutMediaRecord(ctx context.Context, tx *sql.Tx, media model.Media) error
- func (_m *Datastore) PutNextShuffleTimeForDiscussionID(ctx context.Context, tx *sql.Tx, id string, shuffleTime *time.Time) (*model.DiscussionShuffleTime, error)
- func (_m *Datastore) PutPost(ctx context.Context, tx *sql.Tx, post model.Post) (*model.Post, error)
- func (_m *Datastore) PutPostContent(ctx context.Context, tx *sql.Tx, postContent model.PostContent) error
- func (_m *Datastore) RollbackTx(ctx context.Context, tx *sql.Tx) error
- func (_m *Datastore) SetParticipantsMutedUntil(ctx context.Context, participants []*model.Participant, mutedUntil *time.Time) ([]*model.Participant, error)
- func (_m *Datastore) SetViewerLastPostViewed(ctx context.Context, viewerID string, postID string, viewedTime time.Time) (*model.Viewer, error)
- func (_m *Datastore) UpdateDiscussionAccessRequestRecord(ctx context.Context, tx *sql.Tx, request model.DiscussionAccessRequest) (*model.DiscussionAccessRequest, error)
- func (_m *Datastore) UpsertDiscussion(ctx context.Context, discussion model.Discussion) (*model.Discussion, error)
- func (_m *Datastore) UpsertDiscussionArchive(ctx context.Context, tx *sql.Tx, discArchive model.DiscussionArchive) (*model.DiscussionArchive, error)
- func (_m *Datastore) UpsertDiscussionUserAccess(ctx context.Context, tx *sql.Tx, dua model.DiscussionUserAccess) (*model.DiscussionUserAccess, error)
- func (_m *Datastore) UpsertParticipant(ctx context.Context, participant model.Participant) (*model.Participant, error)
- func (_m *Datastore) UpsertSocialInfo(ctx context.Context, obj model.SocialInfo) (*model.SocialInfo, error)
- func (_m *Datastore) UpsertUser(ctx context.Context, user model.User) (*model.User, error)
- func (_m *Datastore) UpsertUserDevice(ctx context.Context, userDevice model.UserDevice) (*model.UserDevice, error)
- func (_m *Datastore) UpsertViewer(ctx context.Context, viewer model.Viewer) (*model.Viewer, error)
- type DelphisAuth
- func (_m *DelphisAuth) NewAccessToken(userID string) (*auth.DelphisAccessToken, error)
- func (_m *DelphisAuth) NewRefreshToken(userID string) (*auth.DelphisRefreshToken, error)
- func (_m *DelphisAuth) ValidateAccessToken(ctx context.Context, token string) (*auth.DelphisAuthedUser, error)
- func (_m *DelphisAuth) ValidateRefreshToken(ctx context.Context, token string) (*auth.DelphisRefreshTokenUser, error)
- type TwitterBackend
- type TwitterClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Datastore ¶
Datastore is an autogenerated mock type for the Datastore type
func (*Datastore) AccessRequestIterCollect ¶
func (_m *Datastore) AccessRequestIterCollect(ctx context.Context, iter datastore.DiscussionAccessRequestIter) ([]*model.DiscussionAccessRequest, error)
AccessRequestIterCollect provides a mock function with given fields: ctx, iter
func (*Datastore) AssignFlair ¶
func (_m *Datastore) AssignFlair(ctx context.Context, participant model.Participant, flairID *string) (*model.Participant, error)
AssignFlair provides a mock function with given fields: ctx, participant, flairID
func (*Datastore) CreateModerator ¶
func (_m *Datastore) CreateModerator(ctx context.Context, moderator model.Moderator) (*model.Moderator, error)
CreateModerator provides a mock function with given fields: ctx, moderator
func (*Datastore) CreateOrUpdateUserProfile ¶
func (_m *Datastore) CreateOrUpdateUserProfile(ctx context.Context, userProfile model.UserProfile) (*model.UserProfile, bool, error)
CreateOrUpdateUserProfile provides a mock function with given fields: ctx, userProfile
func (*Datastore) DeleteAllParticipantPosts ¶
func (_m *Datastore) DeleteAllParticipantPosts(ctx context.Context, discussionID string, participantID string, deletedReasonCode model.PostDeletedReason) (int, error)
DeleteAllParticipantPosts provides a mock function with given fields: ctx, discussionID, participantID, deletedReasonCode
func (*Datastore) DeleteDiscussionUserAccess ¶
func (_m *Datastore) DeleteDiscussionUserAccess(ctx context.Context, tx *sql.Tx, discussionID string, userID string) (*model.DiscussionUserAccess, error)
DeleteDiscussionUserAccess provides a mock function with given fields: ctx, tx, discussionID, userID
func (*Datastore) DeletePostByID ¶
func (_m *Datastore) DeletePostByID(ctx context.Context, postID string, deletedReasonCode model.PostDeletedReason) (*model.Post, error)
DeletePostByID provides a mock function with given fields: ctx, postID, deletedReasonCode
func (*Datastore) DiscussionIterCollect ¶
func (_m *Datastore) DiscussionIterCollect(ctx context.Context, iter datastore.DiscussionIter) ([]*model.Discussion, error)
DiscussionIterCollect provides a mock function with given fields: ctx, iter
func (*Datastore) DuaIterCollect ¶
func (_m *Datastore) DuaIterCollect(ctx context.Context, iter datastore.DiscussionUserAccessIter) ([]*model.DiscussionUserAccess, error)
DuaIterCollect provides a mock function with given fields: ctx, iter
func (*Datastore) GetAccessLinkByDiscussionID ¶
func (_m *Datastore) GetAccessLinkByDiscussionID(ctx context.Context, discussionID string) (*model.DiscussionAccessLink, error)
GetAccessLinkByDiscussionID provides a mock function with given fields: ctx, discussionID
func (*Datastore) GetAccessLinkBySlug ¶
func (_m *Datastore) GetAccessLinkBySlug(ctx context.Context, slug string) (*model.DiscussionAccessLink, error)
GetAccessLinkBySlug provides a mock function with given fields: ctx, slug
func (*Datastore) GetDUAForEverythingNotifications ¶
func (_m *Datastore) GetDUAForEverythingNotifications(ctx context.Context, discussionID string, userID string) datastore.DiscussionUserAccessIter
GetDUAForEverythingNotifications provides a mock function with given fields: ctx, discussionID, userID
func (*Datastore) GetDUAForMentionNotifications ¶
func (_m *Datastore) GetDUAForMentionNotifications(ctx context.Context, discussionID string, userID string, mentionedUserIDs []string) datastore.DiscussionUserAccessIter
GetDUAForMentionNotifications provides a mock function with given fields: ctx, discussionID, userID, mentionedUserIDs
func (*Datastore) GetDiscussionAccessRequestByDiscussionIDUserID ¶
func (_m *Datastore) GetDiscussionAccessRequestByDiscussionIDUserID(ctx context.Context, discussionID string, userID string) (*model.DiscussionAccessRequest, error)
GetDiscussionAccessRequestByDiscussionIDUserID provides a mock function with given fields: ctx, discussionID, userID
func (*Datastore) GetDiscussionAccessRequestsByDiscussionID ¶
func (_m *Datastore) GetDiscussionAccessRequestsByDiscussionID(ctx context.Context, discussionID string) datastore.DiscussionAccessRequestIter
GetDiscussionAccessRequestsByDiscussionID provides a mock function with given fields: ctx, discussionID
func (*Datastore) GetDiscussionArchiveByDiscussionID ¶
func (_m *Datastore) GetDiscussionArchiveByDiscussionID(ctx context.Context, discussionID string) (*model.DiscussionArchive, error)
GetDiscussionArchiveByDiscussionID provides a mock function with given fields: ctx, discussionID
func (*Datastore) GetDiscussionByID ¶
GetDiscussionByID provides a mock function with given fields: ctx, id
func (*Datastore) GetDiscussionByLinkSlug ¶
func (_m *Datastore) GetDiscussionByLinkSlug(ctx context.Context, slug string) (*model.Discussion, error)
GetDiscussionByLinkSlug provides a mock function with given fields: ctx, slug
func (*Datastore) GetDiscussionByModeratorID ¶
func (_m *Datastore) GetDiscussionByModeratorID(ctx context.Context, moderatorID string) (*model.Discussion, error)
GetDiscussionByModeratorID provides a mock function with given fields: ctx, moderatorID
func (*Datastore) GetDiscussionRequestAccessByID ¶
func (_m *Datastore) GetDiscussionRequestAccessByID(ctx context.Context, id string) (*model.DiscussionAccessRequest, error)
GetDiscussionRequestAccessByID provides a mock function with given fields: ctx, id
func (*Datastore) GetDiscussionUserAccess ¶
func (_m *Datastore) GetDiscussionUserAccess(ctx context.Context, discussionID string, userID string) (*model.DiscussionUserAccess, error)
GetDiscussionUserAccess provides a mock function with given fields: ctx, discussionID, userID
func (*Datastore) GetDiscussionsByIDs ¶
func (_m *Datastore) GetDiscussionsByIDs(ctx context.Context, ids []string) (map[string]*model.Discussion, error)
GetDiscussionsByIDs provides a mock function with given fields: ctx, ids
func (*Datastore) GetDiscussionsByUserAccess ¶
func (_m *Datastore) GetDiscussionsByUserAccess(ctx context.Context, userID string, state model.DiscussionUserAccessState) datastore.DiscussionIter
GetDiscussionsByUserAccess provides a mock function with given fields: ctx, userID, state
func (*Datastore) GetDiscussionsToBeShuffledBeforeTime ¶
func (_m *Datastore) GetDiscussionsToBeShuffledBeforeTime(ctx context.Context, tx *sql.Tx, epoc time.Time) ([]model.Discussion, error)
GetDiscussionsToBeShuffledBeforeTime provides a mock function with given fields: ctx, tx, epoc
func (*Datastore) GetLastPostByDiscussionID ¶
func (_m *Datastore) GetLastPostByDiscussionID(ctx context.Context, discussionID string) (*model.Post, error)
GetLastPostByDiscussionID provides a mock function with given fields: ctx, discussionID
func (*Datastore) GetMediaRecordByID ¶
GetMediaRecordByID provides a mock function with given fields: ctx, mediaID
func (*Datastore) GetModeratedDiscussionsByUserID ¶
func (_m *Datastore) GetModeratedDiscussionsByUserID(ctx context.Context, userID string) datastore.DiscussionIter
GetModeratedDiscussionsByUserID provides a mock function with given fields: ctx, userID
func (*Datastore) GetModeratorByDiscussionID ¶
func (_m *Datastore) GetModeratorByDiscussionID(ctx context.Context, discussionID string) (*model.Moderator, error)
GetModeratorByDiscussionID provides a mock function with given fields: ctx, discussionID
func (*Datastore) GetModeratorByID ¶
GetModeratorByID provides a mock function with given fields: ctx, id
func (*Datastore) GetModeratorByUserID ¶
GetModeratorByUserID provides a mock function with given fields: ctx, id
func (*Datastore) GetModeratorByUserIDAndDiscussionID ¶
func (_m *Datastore) GetModeratorByUserIDAndDiscussionID(ctx context.Context, userID string, discussionID string) (*model.Moderator, error)
GetModeratorByUserIDAndDiscussionID provides a mock function with given fields: ctx, userID, discussionID
func (*Datastore) GetModeratorParticipantsByDiscussionID ¶
func (_m *Datastore) GetModeratorParticipantsByDiscussionID(ctx context.Context, discussionID string) ([]model.Participant, error)
GetModeratorParticipantsByDiscussionID provides a mock function with given fields: ctx, discussionID
func (*Datastore) GetNextShuffleTimeForDiscussionID ¶
func (_m *Datastore) GetNextShuffleTimeForDiscussionID(ctx context.Context, id string) (*model.DiscussionShuffleTime, error)
GetNextShuffleTimeForDiscussionID provides a mock function with given fields: ctx, id
func (*Datastore) GetParticipantByID ¶
func (_m *Datastore) GetParticipantByID(ctx context.Context, participantID string) (*model.Participant, error)
GetParticipantByID provides a mock function with given fields: ctx, participantID
func (*Datastore) GetParticipantsByDiscussionID ¶
func (_m *Datastore) GetParticipantsByDiscussionID(ctx context.Context, id string) ([]model.Participant, error)
GetParticipantsByDiscussionID provides a mock function with given fields: ctx, id
func (*Datastore) GetParticipantsByDiscussionIDUserID ¶
func (_m *Datastore) GetParticipantsByDiscussionIDUserID(ctx context.Context, discussionID string, userID string) ([]model.Participant, error)
GetParticipantsByDiscussionIDUserID provides a mock function with given fields: ctx, discussionID, userID
func (*Datastore) GetParticipantsByIDs ¶
func (_m *Datastore) GetParticipantsByIDs(ctx context.Context, ids []string) (map[string]*model.Participant, error)
GetParticipantsByIDs provides a mock function with given fields: ctx, ids
func (*Datastore) GetPostByID ¶
GetPostByID provides a mock function with given fields: ctx, postID
func (*Datastore) GetPostContentByID ¶
GetPostContentByID provides a mock function with given fields: ctx, id
func (*Datastore) GetPostsByDiscussionIDFromCursorIter ¶
func (_m *Datastore) GetPostsByDiscussionIDFromCursorIter(ctx context.Context, discussionID string, cursor string, limit int) datastore.PostIter
GetPostsByDiscussionIDFromCursorIter provides a mock function with given fields: ctx, discussionID, cursor, limit
func (*Datastore) GetPostsByDiscussionIDIter ¶
func (_m *Datastore) GetPostsByDiscussionIDIter(ctx context.Context, discussionID string) datastore.PostIter
GetPostsByDiscussionIDIter provides a mock function with given fields: ctx, discussionID
func (*Datastore) GetPostsConnectionByDiscussionID ¶
func (_m *Datastore) GetPostsConnectionByDiscussionID(ctx context.Context, discussionID string, cursor string, limit int) (*model.PostsConnection, error)
GetPostsConnectionByDiscussionID provides a mock function with given fields: ctx, discussionID, cursor, limit
func (*Datastore) GetSentDiscussionAccessRequestsByUserID ¶
func (_m *Datastore) GetSentDiscussionAccessRequestsByUserID(ctx context.Context, userID string) datastore.DiscussionAccessRequestIter
GetSentDiscussionAccessRequestsByUserID provides a mock function with given fields: ctx, userID
func (*Datastore) GetSocialInfosByUserProfileID ¶
func (_m *Datastore) GetSocialInfosByUserProfileID(ctx context.Context, userProfileID string) ([]model.SocialInfo, error)
GetSocialInfosByUserProfileID provides a mock function with given fields: ctx, userProfileID
func (*Datastore) GetTotalParticipantCountByDiscussionID ¶
func (_m *Datastore) GetTotalParticipantCountByDiscussionID(ctx context.Context, discussionID string) int
GetTotalParticipantCountByDiscussionID provides a mock function with given fields: ctx, discussionID
func (*Datastore) GetUserByID ¶
GetUserByID provides a mock function with given fields: ctx, userID
func (*Datastore) GetUserDevicesByUserID ¶
func (_m *Datastore) GetUserDevicesByUserID(ctx context.Context, userID string) ([]model.UserDevice, error)
GetUserDevicesByUserID provides a mock function with given fields: ctx, userID
func (*Datastore) GetUserProfileByID ¶
GetUserProfileByID provides a mock function with given fields: ctx, id
func (*Datastore) GetUserProfileByUserID ¶
func (_m *Datastore) GetUserProfileByUserID(ctx context.Context, userID string) (*model.UserProfile, error)
GetUserProfileByUserID provides a mock function with given fields: ctx, userID
func (*Datastore) GetViewerForDiscussion ¶
func (_m *Datastore) GetViewerForDiscussion(ctx context.Context, discussionID string, userID string) (*model.Viewer, error)
GetViewerForDiscussion provides a mock function with given fields: ctx, discussionID, userID
func (*Datastore) GetViewersByIDs ¶
func (_m *Datastore) GetViewersByIDs(ctx context.Context, viewerIDs []string) (map[string]*model.Viewer, error)
GetViewersByIDs provides a mock function with given fields: ctx, viewerIDs
func (*Datastore) IncrementDiscussionShuffleCount ¶
func (_m *Datastore) IncrementDiscussionShuffleCount(ctx context.Context, tx *sql.Tx, id string) (*int, error)
IncrementDiscussionShuffleCount provides a mock function with given fields: ctx, tx, id
func (*Datastore) ListDiscussions ¶
ListDiscussions provides a mock function with given fields: ctx
func (*Datastore) ListDiscussionsByUserID ¶
func (_m *Datastore) ListDiscussionsByUserID(ctx context.Context, userID string, state model.DiscussionUserAccessState) (*model.DiscussionsConnection, error)
ListDiscussionsByUserID provides a mock function with given fields: ctx, userID, state
func (*Datastore) PostIterCollect ¶
func (_m *Datastore) PostIterCollect(ctx context.Context, iter datastore.PostIter) ([]*model.Post, error)
PostIterCollect provides a mock function with given fields: ctx, iter
func (*Datastore) PutAccessLinkForDiscussion ¶
func (_m *Datastore) PutAccessLinkForDiscussion(ctx context.Context, tx *sql.Tx, input model.DiscussionAccessLink) (*model.DiscussionAccessLink, error)
PutAccessLinkForDiscussion provides a mock function with given fields: ctx, tx, input
func (*Datastore) PutActivity ¶
PutActivity provides a mock function with given fields: ctx, tx, post
func (*Datastore) PutDiscussionAccessRequestRecord ¶
func (_m *Datastore) PutDiscussionAccessRequestRecord(ctx context.Context, tx *sql.Tx, request model.DiscussionAccessRequest) (*model.DiscussionAccessRequest, error)
PutDiscussionAccessRequestRecord provides a mock function with given fields: ctx, tx, request
func (*Datastore) PutMediaRecord ¶
PutMediaRecord provides a mock function with given fields: ctx, tx, media
func (*Datastore) PutNextShuffleTimeForDiscussionID ¶
func (_m *Datastore) PutNextShuffleTimeForDiscussionID(ctx context.Context, tx *sql.Tx, id string, shuffleTime *time.Time) (*model.DiscussionShuffleTime, error)
PutNextShuffleTimeForDiscussionID provides a mock function with given fields: ctx, tx, id, shuffleTime
func (*Datastore) PutPostContent ¶
func (_m *Datastore) PutPostContent(ctx context.Context, tx *sql.Tx, postContent model.PostContent) error
PutPostContent provides a mock function with given fields: ctx, tx, postContent
func (*Datastore) RollbackTx ¶
RollbackTx provides a mock function with given fields: ctx, tx
func (*Datastore) SetParticipantsMutedUntil ¶
func (_m *Datastore) SetParticipantsMutedUntil(ctx context.Context, participants []*model.Participant, mutedUntil *time.Time) ([]*model.Participant, error)
SetParticipantsMutedUntil provides a mock function with given fields: ctx, participants, mutedUntil
func (*Datastore) SetViewerLastPostViewed ¶
func (_m *Datastore) SetViewerLastPostViewed(ctx context.Context, viewerID string, postID string, viewedTime time.Time) (*model.Viewer, error)
SetViewerLastPostViewed provides a mock function with given fields: ctx, viewerID, postID, viewedTime
func (*Datastore) UpdateDiscussionAccessRequestRecord ¶
func (_m *Datastore) UpdateDiscussionAccessRequestRecord(ctx context.Context, tx *sql.Tx, request model.DiscussionAccessRequest) (*model.DiscussionAccessRequest, error)
UpdateDiscussionAccessRequestRecord provides a mock function with given fields: ctx, tx, request
func (*Datastore) UpsertDiscussion ¶
func (_m *Datastore) UpsertDiscussion(ctx context.Context, discussion model.Discussion) (*model.Discussion, error)
UpsertDiscussion provides a mock function with given fields: ctx, discussion
func (*Datastore) UpsertDiscussionArchive ¶
func (_m *Datastore) UpsertDiscussionArchive(ctx context.Context, tx *sql.Tx, discArchive model.DiscussionArchive) (*model.DiscussionArchive, error)
UpsertDiscussionArchive provides a mock function with given fields: ctx, tx, discArchive
func (*Datastore) UpsertDiscussionUserAccess ¶
func (_m *Datastore) UpsertDiscussionUserAccess(ctx context.Context, tx *sql.Tx, dua model.DiscussionUserAccess) (*model.DiscussionUserAccess, error)
UpsertDiscussionUserAccess provides a mock function with given fields: ctx, tx, dua
func (*Datastore) UpsertParticipant ¶
func (_m *Datastore) UpsertParticipant(ctx context.Context, participant model.Participant) (*model.Participant, error)
UpsertParticipant provides a mock function with given fields: ctx, participant
func (*Datastore) UpsertSocialInfo ¶
func (_m *Datastore) UpsertSocialInfo(ctx context.Context, obj model.SocialInfo) (*model.SocialInfo, error)
UpsertSocialInfo provides a mock function with given fields: ctx, obj
func (*Datastore) UpsertUser ¶
UpsertUser provides a mock function with given fields: ctx, user
func (*Datastore) UpsertUserDevice ¶
func (_m *Datastore) UpsertUserDevice(ctx context.Context, userDevice model.UserDevice) (*model.UserDevice, error)
UpsertUserDevice provides a mock function with given fields: ctx, userDevice
type DelphisAuth ¶
DelphisAuth is an autogenerated mock type for the DelphisAuth type
func (*DelphisAuth) NewAccessToken ¶
func (_m *DelphisAuth) NewAccessToken(userID string) (*auth.DelphisAccessToken, error)
NewAccessToken provides a mock function with given fields: userID
func (*DelphisAuth) NewRefreshToken ¶
func (_m *DelphisAuth) NewRefreshToken(userID string) (*auth.DelphisRefreshToken, error)
NewRefreshToken provides a mock function with given fields: userID
func (*DelphisAuth) ValidateAccessToken ¶
func (_m *DelphisAuth) ValidateAccessToken(ctx context.Context, token string) (*auth.DelphisAuthedUser, error)
ValidateAccessToken provides a mock function with given fields: ctx, token
func (*DelphisAuth) ValidateRefreshToken ¶
func (_m *DelphisAuth) ValidateRefreshToken(ctx context.Context, token string) (*auth.DelphisRefreshTokenUser, error)
ValidateRefreshToken provides a mock function with given fields: ctx, token
type TwitterBackend ¶
TwitterBackend is an autogenerated mock type for the TwitterBackend type
func (*TwitterBackend) GetTwitterClientWithAccessTokens ¶
func (_m *TwitterBackend) GetTwitterClientWithAccessTokens(ctx context.Context, consumerKey string, consumerSecret string, accessToken string, accessTokenSecret string) (twitter.TwitterClient, error)
GetTwitterClientWithAccessTokens provides a mock function with given fields: ctx, consumerKey, consumerSecret, accessToken, accessTokenSecret
type TwitterClient ¶
TwitterClient is an autogenerated mock type for the TwitterClient type
func (*TwitterClient) FriendshipLookup ¶
func (_m *TwitterClient) FriendshipLookup(fromScreenName string, toScreenName string) (*twitter.Relationship, error)
FriendshipLookup provides a mock function with given fields: fromScreenName, toScreenName
func (*TwitterClient) LookupUsers ¶
func (_m *TwitterClient) LookupUsers(screenNames []string) ([]twitter.User, error)
LookupUsers provides a mock function with given fields: screenNames
func (*TwitterClient) SearchUsers ¶
SearchUsers provides a mock function with given fields: query, page, count