Documentation ¶
Index ¶
- type SearchChannelStore
- func (c *SearchChannelStore) AutocompleteInTeam(teamId string, term string, includeDeleted bool) (*model.ChannelList, *model.AppError)
- func (c *SearchChannelStore) CreateDirectChannel(user *model.User, otherUser *model.User) (*model.Channel, error)
- func (c *SearchChannelStore) PermanentDelete(channelId string) error
- func (c *SearchChannelStore) PermanentDeleteMembersByChannel(channelId string) *model.AppError
- func (c *SearchChannelStore) PermanentDeleteMembersByUser(userId string) *model.AppError
- func (c *SearchChannelStore) RemoveAllDeactivatedMembers(channelId string) *model.AppError
- func (c *SearchChannelStore) RemoveMember(channelId, userIdToRemove string) *model.AppError
- func (c *SearchChannelStore) RemoveMembers(channelId string, userIds []string) *model.AppError
- func (c *SearchChannelStore) Save(channel *model.Channel, maxChannels int64) (*model.Channel, error)
- func (c *SearchChannelStore) SaveDirectChannel(directchannel *model.Channel, member1 *model.ChannelMember, ...) (*model.Channel, error)
- func (c *SearchChannelStore) SaveMember(cm *model.ChannelMember) (*model.ChannelMember, *model.AppError)
- func (c *SearchChannelStore) Update(channel *model.Channel) (*model.Channel, error)
- func (c *SearchChannelStore) UpdateMember(cm *model.ChannelMember) (*model.ChannelMember, *model.AppError)
- type SearchPostStore
- func (s SearchPostStore) Delete(postId string, date int64, deletedByID string) *model.AppError
- func (s *SearchPostStore) Overwrite(post *model.Post) (*model.Post, *model.AppError)
- func (s SearchPostStore) PermanentDeleteByChannel(channelID string) *model.AppError
- func (s SearchPostStore) PermanentDeleteByUser(userID string) *model.AppError
- func (s SearchPostStore) Save(post *model.Post) (*model.Post, *model.AppError)
- func (s SearchPostStore) SearchPostsInTeamForUser(paramsList []*model.SearchParams, userId, teamId string, ...) (*model.PostSearchResults, *model.AppError)
- func (s SearchPostStore) Update(newPost, oldPost *model.Post) (*model.Post, *model.AppError)
- type SearchStore
- type SearchTeamStore
- func (s SearchTeamStore) RemoveAllMembersByUser(userId string) *model.AppError
- func (s SearchTeamStore) RemoveMember(teamId string, userId string) *model.AppError
- func (s SearchTeamStore) SaveMember(teamMember *model.TeamMember, maxUsersPerTeam int) (*model.TeamMember, *model.AppError)
- func (s SearchTeamStore) UpdateMember(teamMember *model.TeamMember) (*model.TeamMember, *model.AppError)
- type SearchUserStore
- func (s *SearchUserStore) AutocompleteUsersInChannel(teamId, channelId, term string, options *model.UserSearchOptions) (*model.UserAutocompleteInChannel, *model.AppError)
- func (s *SearchUserStore) PermanentDelete(userId string) *model.AppError
- func (s *SearchUserStore) Save(user *model.User) (*model.User, *model.AppError)
- func (s *SearchUserStore) Search(teamId, term string, options *model.UserSearchOptions) ([]*model.User, *model.AppError)
- func (s *SearchUserStore) Update(user *model.User, trustedUpdateData bool) (*model.UserUpdate, *model.AppError)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SearchChannelStore ¶
type SearchChannelStore struct { store.ChannelStore // contains filtered or unexported fields }
func (*SearchChannelStore) AutocompleteInTeam ¶
func (c *SearchChannelStore) AutocompleteInTeam(teamId string, term string, includeDeleted bool) (*model.ChannelList, *model.AppError)
func (*SearchChannelStore) CreateDirectChannel ¶
func (*SearchChannelStore) PermanentDelete ¶
func (c *SearchChannelStore) PermanentDelete(channelId string) error
func (*SearchChannelStore) PermanentDeleteMembersByChannel ¶
func (c *SearchChannelStore) PermanentDeleteMembersByChannel(channelId string) *model.AppError
func (*SearchChannelStore) PermanentDeleteMembersByUser ¶
func (c *SearchChannelStore) PermanentDeleteMembersByUser(userId string) *model.AppError
func (*SearchChannelStore) RemoveAllDeactivatedMembers ¶
func (c *SearchChannelStore) RemoveAllDeactivatedMembers(channelId string) *model.AppError
func (*SearchChannelStore) RemoveMember ¶
func (c *SearchChannelStore) RemoveMember(channelId, userIdToRemove string) *model.AppError
func (*SearchChannelStore) RemoveMembers ¶ added in v5.26.0
func (c *SearchChannelStore) RemoveMembers(channelId string, userIds []string) *model.AppError
func (*SearchChannelStore) SaveDirectChannel ¶ added in v5.26.0
func (c *SearchChannelStore) SaveDirectChannel(directchannel *model.Channel, member1 *model.ChannelMember, member2 *model.ChannelMember) (*model.Channel, error)
func (*SearchChannelStore) SaveMember ¶
func (c *SearchChannelStore) SaveMember(cm *model.ChannelMember) (*model.ChannelMember, *model.AppError)
func (*SearchChannelStore) UpdateMember ¶
func (c *SearchChannelStore) UpdateMember(cm *model.ChannelMember) (*model.ChannelMember, *model.AppError)
type SearchPostStore ¶
func (SearchPostStore) PermanentDeleteByChannel ¶ added in v5.26.0
func (s SearchPostStore) PermanentDeleteByChannel(channelID string) *model.AppError
func (SearchPostStore) PermanentDeleteByUser ¶ added in v5.26.0
func (s SearchPostStore) PermanentDeleteByUser(userID string) *model.AppError
func (SearchPostStore) SearchPostsInTeamForUser ¶
func (s SearchPostStore) SearchPostsInTeamForUser(paramsList []*model.SearchParams, userId, teamId string, isOrSearch, includeDeletedChannels bool, page, perPage int) (*model.PostSearchResults, *model.AppError)
type SearchStore ¶
func NewSearchLayer ¶
func NewSearchLayer(baseStore store.Store, searchEngine *searchengine.Broker, cfg *model.Config) *SearchStore
func (*SearchStore) Channel ¶
func (s *SearchStore) Channel() store.ChannelStore
func (*SearchStore) Post ¶
func (s *SearchStore) Post() store.PostStore
func (*SearchStore) Team ¶
func (s *SearchStore) Team() store.TeamStore
func (*SearchStore) UpdateConfig ¶ added in v5.24.0
func (s *SearchStore) UpdateConfig(cfg *model.Config)
func (*SearchStore) User ¶
func (s *SearchStore) User() store.UserStore
type SearchTeamStore ¶
func (SearchTeamStore) RemoveAllMembersByUser ¶
func (s SearchTeamStore) RemoveAllMembersByUser(userId string) *model.AppError
func (SearchTeamStore) RemoveMember ¶
func (s SearchTeamStore) RemoveMember(teamId string, userId string) *model.AppError
func (SearchTeamStore) SaveMember ¶
func (s SearchTeamStore) SaveMember(teamMember *model.TeamMember, maxUsersPerTeam int) (*model.TeamMember, *model.AppError)
func (SearchTeamStore) UpdateMember ¶
func (s SearchTeamStore) UpdateMember(teamMember *model.TeamMember) (*model.TeamMember, *model.AppError)
type SearchUserStore ¶
func (*SearchUserStore) AutocompleteUsersInChannel ¶
func (s *SearchUserStore) AutocompleteUsersInChannel(teamId, channelId, term string, options *model.UserSearchOptions) (*model.UserAutocompleteInChannel, *model.AppError)
func (*SearchUserStore) PermanentDelete ¶
func (s *SearchUserStore) PermanentDelete(userId string) *model.AppError
func (*SearchUserStore) Search ¶
func (s *SearchUserStore) Search(teamId, term string, options *model.UserSearchOptions) ([]*model.User, *model.AppError)
func (*SearchUserStore) Update ¶
func (s *SearchUserStore) Update(user *model.User, trustedUpdateData bool) (*model.UserUpdate, *model.AppError)
Click to show internal directories.
Click to hide internal directories.