Versions in this module Expand all Collapse all v5 v5.31.1 Dec 23, 2020 Changes in this version + var EmailRegex = regexp.MustCompile(`^[^\s"]+@[^\s"]+$`) + func GetSuggestionInputsSplitBy(term, splitStr string) []string + func GetSuggestionInputsSplitByMultiple(term string, splitStrs []string) []string + type Broker struct + BleveEngine SearchEngineInterface + ElasticsearchEngine SearchEngineInterface + func NewBroker(cfg *model.Config, jobServer *jobs.JobServer) *Broker + func (seb *Broker) GetActiveEngines() []SearchEngineInterface + func (seb *Broker) RegisterBleveEngine(be SearchEngineInterface) + func (seb *Broker) RegisterElasticsearchEngine(es SearchEngineInterface) + func (seb *Broker) UpdateConfig(cfg *model.Config) *model.AppError + type SearchEngineInterface interface + DataRetentionDeleteIndexes func(cutoff time.Time) *model.AppError + DeleteChannel func(channel *model.Channel) *model.AppError + DeleteChannelPosts func(channelID string) *model.AppError + DeletePost func(post *model.Post) *model.AppError + DeleteUser func(user *model.User) *model.AppError + DeleteUserPosts func(userID string) *model.AppError + GetName func() string + GetVersion func() int + IndexChannel func(channel *model.Channel) *model.AppError + IndexPost func(post *model.Post, teamId string) *model.AppError + IndexUser func(user *model.User, teamsIds, channelsIds []string) *model.AppError + IsActive func() bool + IsAutocompletionEnabled func() bool + IsIndexingEnabled func() bool + IsIndexingSync func() bool + IsSearchEnabled func() bool + PurgeIndexes func() *model.AppError + RefreshIndexes func() *model.AppError + SearchChannels func(teamId, term string) ([]string, *model.AppError) + SearchPosts func(channels *model.ChannelList, searchParams []*model.SearchParams, ...) ([]string, model.PostSearchMatches, *model.AppError) + SearchUsersInChannel func(teamId, channelId string, restrictedToChannels []string, term string, ...) ([]string, []string, *model.AppError) + SearchUsersInTeam func(teamId string, restrictedToChannels []string, term string, ...) ([]string, *model.AppError) + Start func() *model.AppError + Stop func() *model.AppError + TestConfig func(cfg *model.Config) *model.AppError + UpdateConfig func(cfg *model.Config) Other modules containing this package github.com/adacta-ru/mattermost-server/v6