Documentation ¶
Index ¶
- Variables
- type SearchChannelStore
- func (c *SearchChannelStore) AutocompleteInTeam(teamId string, term string, includeDeleted bool) (*model.ChannelList, error)
- func (c *SearchChannelStore) CreateDirectChannel(user *model.User, otherUser *model.User, channelOptions ...model.ChannelOption) (*model.Channel, error)
- func (c *SearchChannelStore) PermanentDelete(channelId string) error
- func (c *SearchChannelStore) PermanentDeleteMembersByChannel(channelId string) error
- func (c *SearchChannelStore) PermanentDeleteMembersByUser(userId string) error
- func (c *SearchChannelStore) RemoveAllDeactivatedMembers(channelId string) error
- func (c *SearchChannelStore) RemoveMember(channelId, userIdToRemove string) error
- func (c *SearchChannelStore) RemoveMembers(channelId string, userIds []string) error
- 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, error)
- func (c *SearchChannelStore) Update(channel *model.Channel) (*model.Channel, error)
- func (c *SearchChannelStore) UpdateMember(cm *model.ChannelMember) (*model.ChannelMember, error)
- type SearchFileInfoStore
- func (s SearchFileInfoStore) AttachToPost(fileId, postId, creatorId string) error
- func (s SearchFileInfoStore) DeleteForPost(postId string) (string, error)
- func (s SearchFileInfoStore) PermanentDelete(fileId string) error
- func (s SearchFileInfoStore) PermanentDeleteBatch(endTime int64, limit int64) (int64, error)
- func (s SearchFileInfoStore) PermanentDeleteByUser(userId string) (int64, error)
- func (s SearchFileInfoStore) Save(info *model.FileInfo) (*model.FileInfo, error)
- func (s SearchFileInfoStore) Search(paramsList []*model.SearchParams, userId, teamId string, page, perPage int) (*model.FileInfoList, error)
- func (s SearchFileInfoStore) SetContent(fileID, content string) error
- type SearchPostStore
- func (s SearchPostStore) Delete(postId string, date int64, deletedByID string) error
- func (s *SearchPostStore) Overwrite(post *model.Post) (*model.Post, error)
- func (s SearchPostStore) PermanentDeleteByChannel(channelID string) error
- func (s SearchPostStore) PermanentDeleteByUser(userID string) error
- func (s SearchPostStore) Save(post *model.Post) (*model.Post, error)
- func (s SearchPostStore) SearchPostsInTeamForUser(paramsList []*model.SearchParams, userId, teamId string, page, perPage int) (*model.PostSearchResults, error)
- func (s SearchPostStore) Update(newPost, oldPost *model.Post) (*model.Post, error)
- type SearchStore
- type SearchTeamStore
- func (s SearchTeamStore) RemoveAllMembersByUser(userId string) error
- func (s SearchTeamStore) RemoveMember(teamId string, userId string) error
- func (s SearchTeamStore) SaveMember(teamMember *model.TeamMember, maxUsersPerTeam int) (*model.TeamMember, error)
- func (s SearchTeamStore) UpdateMember(teamMember *model.TeamMember) (*model.TeamMember, error)
- type SearchUserStore
- func (s *SearchUserStore) AutocompleteUsersInChannel(teamId, channelId, term string, options *model.UserSearchOptions) (*model.UserAutocompleteInChannel, error)
- func (s *SearchUserStore) PermanentDelete(userId string) error
- func (s *SearchUserStore) Save(user *model.User) (*model.User, error)
- func (s *SearchUserStore) Search(teamId, term string, options *model.UserSearchOptions) ([]*model.User, error)
- func (s *SearchUserStore) Update(user *model.User, trustedUpdateData bool) (*model.UserUpdate, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var MySQLStopWords = []string{"a", "about", "an", "are", "as", "at", "be", "by", "com", "de", "en", "for", "from", "how", "i", "in", "is", "it", "la", "of",
"on", "or", "that", "the", "this", "to", "was", "what", "when", "where", "who", "will", "with", "und", "the", "www"}
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, error)
func (*SearchChannelStore) CreateDirectChannel ¶
func (c *SearchChannelStore) CreateDirectChannel(user *model.User, otherUser *model.User, channelOptions ...model.ChannelOption) (*model.Channel, error)
func (*SearchChannelStore) PermanentDelete ¶
func (c *SearchChannelStore) PermanentDelete(channelId string) error
func (*SearchChannelStore) PermanentDeleteMembersByChannel ¶
func (c *SearchChannelStore) PermanentDeleteMembersByChannel(channelId string) error
func (*SearchChannelStore) PermanentDeleteMembersByUser ¶
func (c *SearchChannelStore) PermanentDeleteMembersByUser(userId string) error
func (*SearchChannelStore) RemoveAllDeactivatedMembers ¶
func (c *SearchChannelStore) RemoveAllDeactivatedMembers(channelId string) error
func (*SearchChannelStore) RemoveMember ¶
func (c *SearchChannelStore) RemoveMember(channelId, userIdToRemove string) error
func (*SearchChannelStore) RemoveMembers ¶ added in v5.26.0
func (c *SearchChannelStore) RemoveMembers(channelId string, userIds []string) error
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, error)
func (*SearchChannelStore) UpdateMember ¶
func (c *SearchChannelStore) UpdateMember(cm *model.ChannelMember) (*model.ChannelMember, error)
type SearchFileInfoStore ¶ added in v5.32.0
type SearchFileInfoStore struct { store.FileInfoStore // contains filtered or unexported fields }
func (SearchFileInfoStore) AttachToPost ¶ added in v5.32.0
func (s SearchFileInfoStore) AttachToPost(fileId, postId, creatorId string) error
func (SearchFileInfoStore) DeleteForPost ¶ added in v5.32.0
func (s SearchFileInfoStore) DeleteForPost(postId string) (string, error)
func (SearchFileInfoStore) PermanentDelete ¶ added in v5.32.0
func (s SearchFileInfoStore) PermanentDelete(fileId string) error
func (SearchFileInfoStore) PermanentDeleteBatch ¶ added in v5.32.0
func (s SearchFileInfoStore) PermanentDeleteBatch(endTime int64, limit int64) (int64, error)
func (SearchFileInfoStore) PermanentDeleteByUser ¶ added in v5.32.0
func (s SearchFileInfoStore) PermanentDeleteByUser(userId string) (int64, error)
func (SearchFileInfoStore) Search ¶ added in v5.32.0
func (s SearchFileInfoStore) Search(paramsList []*model.SearchParams, userId, teamId string, page, perPage int) (*model.FileInfoList, error)
func (SearchFileInfoStore) SetContent ¶ added in v5.32.0
func (s SearchFileInfoStore) SetContent(fileID, content string) error
type SearchPostStore ¶
func (SearchPostStore) Delete ¶
func (s SearchPostStore) Delete(postId string, date int64, deletedByID string) error
func (SearchPostStore) PermanentDeleteByChannel ¶ added in v5.26.0
func (s SearchPostStore) PermanentDeleteByChannel(channelID string) error
func (SearchPostStore) PermanentDeleteByUser ¶ added in v5.26.0
func (s SearchPostStore) PermanentDeleteByUser(userID string) error
func (SearchPostStore) SearchPostsInTeamForUser ¶
func (s SearchPostStore) SearchPostsInTeamForUser(paramsList []*model.SearchParams, userId, teamId string, page, perPage int) (*model.PostSearchResults, error)
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) FileInfo ¶ added in v5.32.0
func (s *SearchStore) FileInfo() store.FileInfoStore
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) error
func (SearchTeamStore) RemoveMember ¶
func (s SearchTeamStore) RemoveMember(teamId string, userId string) error
func (SearchTeamStore) SaveMember ¶
func (s SearchTeamStore) SaveMember(teamMember *model.TeamMember, maxUsersPerTeam int) (*model.TeamMember, error)
func (SearchTeamStore) UpdateMember ¶
func (s SearchTeamStore) UpdateMember(teamMember *model.TeamMember) (*model.TeamMember, error)
type SearchUserStore ¶
func (*SearchUserStore) AutocompleteUsersInChannel ¶
func (s *SearchUserStore) AutocompleteUsersInChannel(teamId, channelId, term string, options *model.UserSearchOptions) (*model.UserAutocompleteInChannel, error)
func (*SearchUserStore) PermanentDelete ¶
func (s *SearchUserStore) PermanentDelete(userId string) error
func (*SearchUserStore) Search ¶
func (s *SearchUserStore) Search(teamId, term string, options *model.UserSearchOptions) ([]*model.User, error)
func (*SearchUserStore) Update ¶
func (s *SearchUserStore) Update(user *model.User, trustedUpdateData bool) (*model.UserUpdate, error)
Click to show internal directories.
Click to hide internal directories.