searchlayer

package
v5.23.0-rc3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 6, 2020 License: AGPL-3.0, Apache-2.0 Imports: 5 Imported by: 8

Documentation

Index

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 (c *SearchChannelStore) CreateDirectChannel(user *model.User, otherUser *model.User) (*model.Channel, *model.AppError)

func (*SearchChannelStore) PermanentDelete

func (c *SearchChannelStore) PermanentDelete(channelId string) *model.AppError

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) Save

func (c *SearchChannelStore) Save(channel *model.Channel, maxChannels int64) (*model.Channel, *model.AppError)

func (*SearchChannelStore) SaveMember

func (*SearchChannelStore) Update

func (c *SearchChannelStore) Update(channel *model.Channel) (*model.Channel, *model.AppError)

func (*SearchChannelStore) UpdateMember

type SearchPostStore

type SearchPostStore struct {
	store.PostStore
	// contains filtered or unexported fields
}

func (SearchPostStore) Delete

func (s SearchPostStore) Delete(postId string, date int64, deletedByID string) *model.AppError

func (SearchPostStore) Save

func (s SearchPostStore) Save(post *model.Post) (*model.Post, *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)

func (SearchPostStore) Update

func (s SearchPostStore) Update(newPost, oldPost *model.Post) (*model.Post, *model.AppError)

type SearchStore

type SearchStore struct {
	store.Store
	// contains filtered or unexported fields
}

func NewSearchLayer

func NewSearchLayer(baseStore store.Store, searchEngine *searchengine.Broker) 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) User

func (s SearchStore) User() store.UserStore

type SearchTeamStore

type SearchTeamStore struct {
	store.TeamStore
	// contains filtered or unexported fields
}

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

type SearchUserStore struct {
	store.UserStore
	// contains filtered or unexported fields
}

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) Save

func (s *SearchUserStore) Save(user *model.User) (*model.User, *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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL