Versions in this module Expand all Collapse all v5 v5.31.1 Dec 23, 2020 Changes in this version + const BRAND_FILE_NAME + const BRAND_FILE_PATH + const CLILevelID + const COOKIE_OAUTH + const DAY_MILLISECONDS + const DISCOVERY_SERVICE_WRITE_PING + const EMAIL_BATCHING_TASK_NAME + const EMOJIS_PERMISSIONS_MIGRATION_KEY + const ERROR_TERMS_OF_SERVICE_NO_ROWS_FOUND + const GUEST_ROLES_CREATION_MIGRATION_KEY + const HTTP_REQUEST_TIMEOUT + const IMAGE_PREVIEW_PIXEL_WIDTH + const IMAGE_PROFILE_PIXEL_DIMENSION + const IMAGE_THUMBNAIL_PIXEL_HEIGHT + const IMAGE_THUMBNAIL_PIXEL_WIDTH + const INVITATION_EXPIRY_TIME + const ImagePreviewWidth + const ImageThumbnailHeight + const ImageThumbnailRatio + const ImageThumbnailWidth + const JWTDefaultTokenExpiration + const LINK_CACHE_DURATION + const LINK_CACHE_SIZE + const LicenseEnv + const LicenseRenewalURL + const MAX_REPEAT_VIEWINGS + const MIN_SECONDS_BETWEEN_REPEAT_VIEWINGS + const MISSING_ACCOUNT_ERROR + const MISSING_AUTH_ACCOUNT_ERROR + const MISSING_CHANNEL_MEMBER_ERROR + const MONTH_MILLISECONDS + const MaxEmojiFileSize + const MaxEmojiHeight + const MaxEmojiOriginalHeight + const MaxEmojiOriginalWidth + const MaxEmojiWidth + const MaxImageSize + const MaxIntegrationResponseSize + const MaxMetadataImageSize + const MaxOpenGraphResponseSize + const OAUTH_COOKIE_MAX_AGE_SECONDS + const OPENID_SCOPE + const OneHourMillis + const PAGE_DEFAULT + const PASSWORD_RECOVER_EXPIRY_TIME + const PENDING_POST_IDS_CACHE_SIZE + const PENDING_POST_IDS_CACHE_TTL + const PERMISSION_ADD_REACTION + const PERMISSION_CONVERT_PRIVATE_CHANNEL_TO_PUBLIC + const PERMISSION_CONVERT_PUBLIC_CHANNEL_TO_PRIVATE + const PERMISSION_CREATE_BOT + const PERMISSION_CREATE_EMOJIS + const PERMISSION_CREATE_POST + const PERMISSION_CREATE_POST_PUBLIC + const PERMISSION_DELETE_EMOJIS + const PERMISSION_DELETE_OTHERS_EMOJIS + const PERMISSION_DELETE_PRIVATE_CHANNEL + const PERMISSION_DELETE_PUBLIC_CHANNEL + const PERMISSION_DEMOTE_TO_GUEST + const PERMISSION_EDIT_BRAND + const PERMISSION_EDIT_OTHER_USERS + const PERMISSION_INVITE_GUEST + const PERMISSION_INVITE_USER + const PERMISSION_JOIN_PRIVATE_TEAMS + const PERMISSION_JOIN_PUBLIC_TEAMS + const PERMISSION_LIST_PRIVATE_TEAMS + const PERMISSION_LIST_PUBLIC_TEAMS + const PERMISSION_MANAGE_BOTS + const PERMISSION_MANAGE_EMOJIS + const PERMISSION_MANAGE_INCOMING_WEBHOOKS + const PERMISSION_MANAGE_JOBS + const PERMISSION_MANAGE_OTHERS_BOTS + const PERMISSION_MANAGE_OTHERS_EMOJIS + const PERMISSION_MANAGE_OTHERS_INCOMING_WEBHOOKS + const PERMISSION_MANAGE_OTHERS_OUTGOING_WEBHOOKS + const PERMISSION_MANAGE_OTHERS_WEBHOOKS + const PERMISSION_MANAGE_OUTGOING_WEBHOOKS + const PERMISSION_MANAGE_PRIVATE_CHANNEL_MEMBERS + const PERMISSION_MANAGE_PRIVATE_CHANNEL_PROPERTIES + const PERMISSION_MANAGE_PUBLIC_CHANNEL_MEMBERS + const PERMISSION_MANAGE_PUBLIC_CHANNEL_PROPERTIES + const PERMISSION_MANAGE_REMOTE_CLUSTERS + const PERMISSION_MANAGE_SHARED_CHANNELS + const PERMISSION_MANAGE_SYSTEM + const PERMISSION_MANAGE_TEAM + const PERMISSION_MANAGE_WEBHOOKS + const PERMISSION_PERMANENT_DELETE_USER + const PERMISSION_PROMOTE_GUEST + const PERMISSION_READ_BOTS + const PERMISSION_READ_JOBS + const PERMISSION_READ_OTHERS_BOTS + const PERMISSION_READ_OTHER_USERS_TEAMS + const PERMISSION_READ_PRIVATE_CHANNEL_GROUPS + const PERMISSION_READ_PUBLIC_CHANNEL_GROUPS + const PERMISSION_REMOVE_REACTION + const PERMISSION_USE_CHANNEL_MENTIONS + const PERMISSION_USE_GROUP_MENTIONS + const PERMISSION_VIEW_MEMBERS + const PROP_SECURITY_ACTIVE_USER_COUNT + const PROP_SECURITY_BUILD + const PROP_SECURITY_DATABASE + const PROP_SECURITY_ENTERPRISE_READY + const PROP_SECURITY_ID + const PROP_SECURITY_OS + const PROP_SECURITY_TEAM_COUNT + const PROP_SECURITY_UNIT_TESTS + const PROP_SECURITY_USER_COUNT + const RestContentLevelID + const RestLevelID + const RestPermsLevelID + const RotatedCCW + const RotatedCCWMirrored + const RotatedCW + const RotatedCWMirrored + const SECURITY_UPDATE_PERIOD + const SECURITY_URL + const SESSIONS_CLEANUP_BATCH_SIZE + const SYSTEM_CONSOLE_ROLES_CREATION_MIGRATION_KEY + const SamlIdpCertificateName + const SamlPrivateKeyName + const SamlPublicCertificateName + const TIMESTAMP_FORMAT + const TIME_TO_WAIT_FOR_CONNECTIONS_TO_CLOSE_ON_SERVER_SHUTDOWN + const TOKEN_TYPE_CWS_ACCESS + const TOKEN_TYPE_GUEST_INVITATION + const TOKEN_TYPE_PASSWORD_RECOVERY + const TOKEN_TYPE_TEAM_INVITATION + const TOKEN_TYPE_VERIFY_EMAIL + const TRIGGERWORDS_EXACT_MATCH + const TRIGGERWORDS_STARTS_WITH + const Upright + const UprightMirrored + const UpsideDown + const UpsideDownMirrored + var LevelAPI = mlog.LvlAuditAPI + var LevelCLI = mlog.LvlAuditCLI + var LevelContent = mlog.LvlAuditContent + var LevelPerms = mlog.LvlAuditPerms + var MaxNotificationsPerChannelDefault int64 = 1000000 + var SENTRY_DSN = "placeholder_sentry_dsn" + func CheckEmailDomain(email string, domains string) bool + func CheckUserDomain(user *model.User, domains string) bool + func CreateProfileImage(username string, userId string, initialFont string) ([]byte, *model.AppError) + func DoesNotifyPropsAllowPushNotification(user *model.User, channelNotifyProps model.StringMap, post *model.Post, ...) bool + func DoesStatusAllowPushNotification(userNotifyProps model.StringMap, status *model.Status, channelId string) bool + func GeneratePublicLinkHash(fileId, salt string) string + func GetProtocol(r *http.Request) string + func IsCWSLogin(a *App, token string) bool + func JoinCluster(s *Server) error + func RegisterAccountMigrationInterface(f func(*App) einterfaces.AccountMigrationInterface) + func RegisterCloudInterface(f func(*App) einterfaces.CloudInterface) + func RegisterClusterInterface(f func(*Server) einterfaces.ClusterInterface) + func RegisterCommandProvider(newProvider CommandProvider) + func RegisterComplianceInterface(f func(*Server) einterfaces.ComplianceInterface) + func RegisterDataRetentionInterface(f func(*Server) einterfaces.DataRetentionInterface) + func RegisterElasticsearchInterface(f func(*Server) searchengine.SearchEngineInterface) + func RegisterJobsActiveUsersInterface(f func(*App) tjobs.ActiveUsersJobInterface) + func RegisterJobsBleveIndexerInterface(f func(*Server) tjobs.IndexerJobInterface) + func RegisterJobsCloudInterface(f func(*Server) ejobs.CloudJobInterface) + func RegisterJobsDataRetentionJobInterface(f func(*Server) ejobs.DataRetentionJobInterface) + func RegisterJobsElasticsearchAggregatorInterface(f func(*Server) ejobs.ElasticsearchAggregatorInterface) + func RegisterJobsElasticsearchIndexerInterface(f func(*Server) tjobs.IndexerJobInterface) + func RegisterJobsExpiryNotifyJobInterface(f func(*App) tjobs.ExpiryNotifyJobInterface) + func RegisterJobsImportProcessInterface(f func(*App) tjobs.ImportProcessInterface) + func RegisterJobsLdapSyncInterface(f func(*App) ejobs.LdapSyncInterface) + func RegisterJobsMessageExportJobInterface(f func(*Server) ejobs.MessageExportJobInterface) + func RegisterJobsMigrationsJobInterface(f func(*Server) tjobs.MigrationsJobInterface) + func RegisterJobsPluginsJobInterface(f func(*App) tjobs.PluginsJobInterface) + func RegisterLdapInterface(f func(*App) einterfaces.LdapInterface) + func RegisterMessageExportInterface(f func(*Server) einterfaces.MessageExportInterface) + func RegisterMetricsInterface(f func(*Server) einterfaces.MetricsInterface) + func RegisterNewSamlInterface(f func(*App) einterfaces.SamlInterface) + func RegisterNotificationInterface(f func(*App) einterfaces.NotificationInterface) + func RegisterProductNoticesJobInterface(f func(*App) tjobs.ProductNoticesJobInterface) + func RemoveRoles(rolesToRemove []string, roles string) string + func RunJobs(s *Server) error + func ShouldSendPushNotification(user *model.User, channelNotifyProps model.StringMap, wasMentioned bool, ...) bool + func SplitWebhookPost(post *model.Post, maxPostSize int) ([]*model.Post, *model.AppError) + func StartMetrics(s *Server) error + func StartSearchEngine(s *Server) error + func UploadFileSetClientId(clientId string) func(t *UploadFileTask) + func UploadFileSetContentLength(contentLength int64) func(t *UploadFileTask) + func UploadFileSetRaw() func(t *UploadFileTask) + func UploadFileSetTeamId(teamId string) func(t *UploadFileTask) + func UploadFileSetTimestamp(timestamp time.Time) func(t *UploadFileTask) + func UploadFileSetUserId(userId string) func(t *UploadFileTask) + type App struct + func New(options ...AppOption) *App + func (a *App) AcceptLanguage() string + func (a *App) AccountMigration() einterfaces.AccountMigrationInterface + func (a *App) ActivateMfa(userId, token string) *model.AppError + func (a *App) AddChannelMember(userId string, channel *model.Channel, userRequestorId string, ...) (*model.ChannelMember, *model.AppError) + func (a *App) AddConfigListener(listener func(*model.Config, *model.Config)) string + func (a *App) AddCursorIdsForPostList(originalList *model.PostList, afterPost, beforePost string, since int64, ...) + func (a *App) AddDirectChannels(teamId string, user *model.User) *model.AppError + func (a *App) AddLdapPrivateCertificate(fileData *multipart.FileHeader) *model.AppError + func (a *App) AddLdapPublicCertificate(fileData *multipart.FileHeader) *model.AppError + func (a *App) AddPublicKey(name string, key io.Reader) *model.AppError + func (a *App) AddSamlIdpCertificate(fileData *multipart.FileHeader) *model.AppError + func (a *App) AddSamlPrivateCertificate(fileData *multipart.FileHeader) *model.AppError + func (a *App) AddSamlPublicCertificate(fileData *multipart.FileHeader) *model.AppError + func (a *App) AddSessionToCache(session *model.Session) + func (a *App) AddStatusCache(status *model.Status) + func (a *App) AddStatusCacheSkipClusterSend(status *model.Status) + func (a *App) AddTeamMember(teamId, userId string) (*model.TeamMember, *model.AppError) + func (a *App) AddTeamMemberByInviteId(inviteId, userId string) (*model.TeamMember, *model.AppError) + func (a *App) AddTeamMemberByToken(userId, tokenId string) (*model.TeamMember, *model.AppError) + func (a *App) AddTeamMembers(teamId string, userIds []string, userRequestorId string, graceful bool) ([]*model.TeamMemberWithError, *model.AppError) + func (a *App) AddUserToChannel(user *model.User, channel *model.Channel) (*model.ChannelMember, *model.AppError) + func (a *App) AddUserToTeam(teamId string, userId string, userRequestorId string) (*model.Team, *model.AppError) + func (a *App) AddUserToTeamByInviteId(inviteId string, userId string) (*model.Team, *model.AppError) + func (a *App) AddUserToTeamByTeamId(teamId string, user *model.User) *model.AppError + func (a *App) AddUserToTeamByToken(userId string, tokenId string) (*model.Team, *model.AppError) + func (a *App) AdjustImage(file io.Reader) (*bytes.Buffer, *model.AppError) + func (a *App) AllowOAuthAppAccessToUser(userId string, authRequest *model.AuthorizeRequest) (string, *model.AppError) + func (a *App) AppendFile(fr io.Reader, path string) (int64, *model.AppError) + func (a *App) AsymmetricSigningKey() *ecdsa.PrivateKey + func (a *App) AttachDeviceId(sessionId string, deviceId string, expiresAt int64) *model.AppError + func (a *App) AttachSessionCookies(w http.ResponseWriter, r *http.Request) + func (a *App) AuthenticateUserForLogin(id, loginId, password, mfaToken, cwsToken string, ldapOnly bool) (user *model.User, err *model.AppError) + func (a *App) AuthorizeOAuthUser(w http.ResponseWriter, r *http.Request, ...) (io.ReadCloser, string, map[string]string, *model.User, *model.AppError) + func (a *App) AutocompleteChannels(teamId string, term string) (*model.ChannelList, *model.AppError) + func (a *App) AutocompleteChannelsForSearch(teamId string, userId string, term string) (*model.ChannelList, *model.AppError) + func (a *App) AutocompleteUsersInChannel(teamId string, channelId string, term string, options *model.UserSearchOptions) (*model.UserAutocompleteInChannel, *model.AppError) + func (a *App) AutocompleteUsersInTeam(teamId string, term string, options *model.UserSearchOptions) (*model.UserAutocompleteInTeam, *model.AppError) + func (a *App) BroadcastStatus(status *model.Status) + func (a *App) BuildPostReactions(postId string) (*[]ReactionImportData, *model.AppError) + func (a *App) BuildPushNotificationMessage(contentsConfig string, post *model.Post, user *model.User, ...) (*model.PushNotification, *model.AppError) + func (a *App) BuildSamlMetadataObject(idpMetadata []byte) (*model.SamlMetadataResponse, *model.AppError) + func (a *App) BulkExport(writer io.Writer, file string, pathToEmojiDir string, ...) *model.AppError + func (a *App) BulkImport(fileReader io.Reader, dryRun bool, workers int) (*model.AppError, int) + func (a *App) BulkImportWithPath(fileReader io.Reader, dryRun bool, workers int, importPath string) (*model.AppError, int) + func (a *App) CancelJob(jobId string) *model.AppError + func (a *App) ChannelMembersMinusGroupMembers(channelID string, groupIDs []string, page, perPage int) ([]*model.UserWithGroups, int64, *model.AppError) + func (a *App) ChannelMembersToAdd(since int64, channelID *string) ([]*model.UserChannelIDPair, *model.AppError) + func (a *App) ChannelMembersToRemove(teamID *string) ([]*model.ChannelMember, *model.AppError) + func (a *App) CheckAndSendUserLimitWarningEmails() *model.AppError + func (a *App) CheckForClientSideCert(r *http.Request) (string, string, string) + func (a *App) CheckMandatoryS3Fields(settings *model.FileSettings) *model.AppError + func (a *App) CheckPasswordAndAllCriteria(user *model.User, password string, mfaToken string) *model.AppError + func (a *App) CheckRolesExist(roleNames []string) *model.AppError + func (a *App) CheckUserAllAuthenticationCriteria(user *model.User, mfaToken string) *model.AppError + func (a *App) CheckUserMfa(user *model.User, token string) *model.AppError + func (a *App) CheckUserPostflightAuthenticationCriteria(user *model.User) *model.AppError + func (a *App) CheckUserPreflightAuthenticationCriteria(user *model.User, mfaToken string) *model.AppError + func (a *App) CheckValidDomains(team *model.Team) *model.AppError + func (a *App) ClearChannelMembersCache(channelID string) + func (a *App) ClearSessionCacheForAllUsers() + func (a *App) ClearSessionCacheForAllUsersSkipClusterSend() + func (a *App) ClearSessionCacheForUser(userId string) + func (a *App) ClearSessionCacheForUserSkipClusterSend(userId string) + func (a *App) ClearTeamMembersCache(teamID string) + func (a *App) ClientConfig() map[string]string + func (a *App) ClientConfigHash() string + func (a *App) ClientConfigWithComputed() map[string]string + func (a *App) Cloud() einterfaces.CloudInterface + func (a *App) Cluster() einterfaces.ClusterInterface + func (a *App) CompareAndDeletePluginKey(pluginId string, key string, oldValue []byte) (bool, *model.AppError) + func (a *App) CompareAndSetPluginKey(pluginId string, key string, oldValue, newValue []byte) (bool, *model.AppError) + func (a *App) CompleteOAuth(service string, body io.ReadCloser, teamId string, props map[string]string, ...) (*model.User, *model.AppError) + func (a *App) CompleteSwitchWithOAuth(service string, userData io.Reader, email string, tokenUser *model.User) (*model.User, *model.AppError) + func (a *App) Compliance() einterfaces.ComplianceInterface + func (a *App) Config() *model.Config + func (a *App) Context() context.Context + func (a *App) ConvertBotToUser(bot *model.Bot, userPatch *model.UserPatch, sysadmin bool) (*model.User, *model.AppError) + func (a *App) ConvertUserToBot(user *model.User) (*model.Bot, *model.AppError) + func (a *App) CopyFileInfos(userId string, fileIds []string) ([]string, *model.AppError) + func (a *App) CreateBot(bot *model.Bot) (*model.Bot, *model.AppError) + func (a *App) CreateChannel(channel *model.Channel, addMember bool) (*model.Channel, *model.AppError) + func (a *App) CreateChannelScheme(channel *model.Channel) (*model.Scheme, *model.AppError) + func (a *App) CreateChannelWithUser(channel *model.Channel, userId string) (*model.Channel, *model.AppError) + func (a *App) CreateCommand(cmd *model.Command) (*model.Command, *model.AppError) + func (a *App) CreateCommandPost(post *model.Post, teamId string, response *model.CommandResponse, ...) (*model.Post, *model.AppError) + func (a *App) CreateCommandWebhook(commandId string, args *model.CommandArgs) (*model.CommandWebhook, *model.AppError) + func (a *App) CreateDefaultChannels(teamID string) ([]*model.Channel, *model.AppError) + func (a *App) CreateDefaultMemberships(since int64) error + func (a *App) CreateEmoji(sessionUserId string, emoji *model.Emoji, multiPartImageData *multipart.Form) (*model.Emoji, *model.AppError) + func (a *App) CreateGroup(group *model.Group) (*model.Group, *model.AppError) + func (a *App) CreateGroupChannel(userIds []string, creatorId string) (*model.Channel, *model.AppError) + func (a *App) CreateGuest(user *model.User) (*model.User, *model.AppError) + func (a *App) CreateIncomingWebhookForChannel(creatorId string, channel *model.Channel, hook *model.IncomingWebhook) (*model.IncomingWebhook, *model.AppError) + func (a *App) CreateJob(job *model.Job) (*model.Job, *model.AppError) + func (a *App) CreateOAuthApp(app *model.OAuthApp) (*model.OAuthApp, *model.AppError) + func (a *App) CreateOAuthStateToken(extra string) (*model.Token, *model.AppError) + func (a *App) CreateOAuthUser(service string, userData io.Reader, teamId string, tokenUser *model.User) (*model.User, *model.AppError) + func (a *App) CreateOutgoingWebhook(hook *model.OutgoingWebhook) (*model.OutgoingWebhook, *model.AppError) + func (a *App) CreatePasswordRecoveryToken(userId, email string) (*model.Token, *model.AppError) + func (a *App) CreatePost(post *model.Post, channel *model.Channel, triggerWebhooks, setOnline bool) (savedPost *model.Post, err *model.AppError) + func (a *App) CreatePostAsUser(post *model.Post, currentSessionId string, setOnline bool) (*model.Post, *model.AppError) + func (a *App) CreatePostMissingChannel(post *model.Post, triggerWebhooks bool) (*model.Post, *model.AppError) + func (a *App) CreateRole(role *model.Role) (*model.Role, *model.AppError) + func (a *App) CreateScheme(scheme *model.Scheme) (*model.Scheme, *model.AppError) + func (a *App) CreateSession(session *model.Session) (*model.Session, *model.AppError) + func (a *App) CreateSidebarCategory(userId, teamId string, newCategory *model.SidebarCategoryWithChannels) (*model.SidebarCategoryWithChannels, *model.AppError) + func (a *App) CreateTeam(team *model.Team) (*model.Team, *model.AppError) + func (a *App) CreateTeamWithUser(team *model.Team, userId string) (*model.Team, *model.AppError) + func (a *App) CreateTermsOfService(text, userId string) (*model.TermsOfService, *model.AppError) + func (a *App) CreateUploadSession(us *model.UploadSession) (*model.UploadSession, *model.AppError) + func (a *App) CreateUser(user *model.User) (*model.User, *model.AppError) + func (a *App) CreateUserAccessToken(token *model.UserAccessToken) (*model.UserAccessToken, *model.AppError) + func (a *App) CreateUserAsAdmin(user *model.User, redirect string) (*model.User, *model.AppError) + func (a *App) CreateUserFromSignup(user *model.User, redirect string) (*model.User, *model.AppError) + func (a *App) CreateUserWithInviteId(user *model.User, inviteId, redirect string) (*model.User, *model.AppError) + func (a *App) CreateUserWithToken(user *model.User, token *model.Token) (*model.User, *model.AppError) + func (a *App) CreateWebhookPost(userId string, channel *model.Channel, ...) (*model.Post, *model.AppError) + func (a *App) DBHealthCheckDelete() error + func (a *App) DBHealthCheckWrite() error + func (a *App) DataRetention() einterfaces.DataRetentionInterface + func (a *App) DeactivateGuests() *model.AppError + func (a *App) DeactivateMfa(userId string) *model.AppError + func (a *App) DeauthorizeOAuthAppForUser(userId, appId string) *model.AppError + func (a *App) DefaultChannelNames() []string + func (a *App) DeleteAllExpiredPluginKeys() *model.AppError + func (a *App) DeleteAllKeysForPlugin(pluginId string) *model.AppError + func (a *App) DeleteBotIconImage(botUserId string) *model.AppError + func (a *App) DeleteBrandImage() *model.AppError + func (a *App) DeleteChannel(channel *model.Channel, userId string) *model.AppError + func (a *App) DeleteChannelScheme(channel *model.Channel) (*model.Channel, *model.AppError) + func (a *App) DeleteCommand(commandId string) *model.AppError + func (a *App) DeleteEmoji(emoji *model.Emoji) *model.AppError + func (a *App) DeleteEphemeralPost(userId, postId string) + func (a *App) DeleteFlaggedPosts(postId string) + func (a *App) DeleteGroup(groupID string) (*model.Group, *model.AppError) + func (a *App) DeleteGroupConstrainedMemberships() error + func (a *App) DeleteGroupMember(groupID string, userID string) (*model.GroupMember, *model.AppError) + func (a *App) DeleteGroupSyncable(groupID string, syncableID string, syncableType model.GroupSyncableType) (*model.GroupSyncable, *model.AppError) + func (a *App) DeleteIncomingWebhook(hookId string) *model.AppError + func (a *App) DeleteOAuthApp(appId string) *model.AppError + func (a *App) DeleteOutgoingWebhook(hookId string) *model.AppError + func (a *App) DeletePluginKey(pluginId string, key string) *model.AppError + func (a *App) DeletePost(postId, deleteByID string) (*model.Post, *model.AppError) + func (a *App) DeletePostFiles(post *model.Post) + func (a *App) DeletePreferences(userId string, preferences model.Preferences) *model.AppError + func (a *App) DeletePublicKey(name string) *model.AppError + func (a *App) DeleteReactionForPost(reaction *model.Reaction) *model.AppError + func (a *App) DeleteScheme(schemeId string) (*model.Scheme, *model.AppError) + func (a *App) DeleteSidebarCategory(userId, teamId, categoryId string) *model.AppError + func (a *App) DeleteToken(token *model.Token) *model.AppError + func (a *App) DemoteUserToGuest(user *model.User) *model.AppError + func (a *App) DisableAutoResponder(userId string, asAdmin bool) *model.AppError + func (a *App) DisablePlugin(id string) *model.AppError + func (a *App) DisableUserAccessToken(token *model.UserAccessToken) *model.AppError + func (a *App) DoActionRequest(rawURL string, body []byte) (*http.Response, *model.AppError) + func (a *App) DoAdvancedPermissionsMigration() + func (a *App) DoAppMigrations() + func (a *App) DoCommandRequest(cmd *model.Command, p url.Values) (*model.Command, *model.CommandResponse, *model.AppError) + func (a *App) DoEmojisPermissionsMigration() + func (a *App) DoGuestRolesCreationMigration() + func (a *App) DoLocalRequest(rawURL string, body []byte) (*http.Response, *model.AppError) + func (a *App) DoLogin(w http.ResponseWriter, r *http.Request, user *model.User, deviceId string, ...) *model.AppError + func (a *App) DoPermissionsMigrations() error + func (a *App) DoPostAction(postId, actionId, userId, selectedOption string) (string, *model.AppError) + func (a *App) DoPostActionWithCookie(postId, actionId, userId, selectedOption string, ...) (string, *model.AppError) + func (a *App) DoSystemConsoleRolesCreationMigration() + func (a *App) DoUploadFile(now time.Time, rawTeamId string, rawChannelId string, rawUserId string, ...) (*model.FileInfo, *model.AppError) + func (a *App) DoUploadFileExpectModification(now time.Time, rawTeamId string, rawChannelId string, rawUserId string, ...) (*model.FileInfo, []byte, *model.AppError) + func (a *App) DoubleCheckPassword(user *model.User, password string) *model.AppError + func (a *App) DownloadFromURL(downloadURL string) ([]byte, error) + func (a *App) EnablePlugin(id string) *model.AppError + func (a *App) EnableUserAccessToken(token *model.UserAccessToken) *model.AppError + func (a *App) EnvironmentConfig() map[string]interface{} + func (a *App) ExecuteCommand(args *model.CommandArgs) (*model.CommandResponse, *model.AppError) + func (a *App) ExportPermissions(w io.Writer) error + func (a *App) ExtendSessionExpiryIfNeeded(session *model.Session) bool + func (a *App) FetchSamlMetadataFromIdp(url string) ([]byte, *model.AppError) + func (a *App) FileBackend() (filesstore.FileBackend, *model.AppError) + func (a *App) FileExists(path string) (bool, *model.AppError) + func (a *App) FileReader(path string) (filesstore.ReadCloseSeeker, *model.AppError) + func (a *App) FileSize(path string) (int64, *model.AppError) + func (a *App) FillInChannelProps(channel *model.Channel) *model.AppError + func (a *App) FillInChannelsProps(channelList *model.ChannelList) *model.AppError + func (a *App) FillInPostProps(post *model.Post, channel *model.Channel) *model.AppError + func (a *App) FilterNonGroupChannelMembers(userIds []string, channel *model.Channel) ([]string, error) + func (a *App) FilterNonGroupTeamMembers(userIds []string, team *model.Team) ([]string, error) + func (a *App) FilterUsersByVisible(viewer *model.User, otherUsers []*model.User) ([]*model.User, *model.AppError) + func (a *App) FindTeamByName(name string) bool + func (a *App) GenerateMfaSecret(userId string) (*model.MfaSecret, *model.AppError) + func (a *App) GeneratePublicLink(siteURL string, info *model.FileInfo) string + func (a *App) GetActivePluginManifests() ([]*model.Manifest, *model.AppError) + func (a *App) GetAllChannels(page, perPage int, opts model.ChannelSearchOpts) (*model.ChannelListWithTeamData, *model.AppError) + func (a *App) GetAllChannelsCount(opts model.ChannelSearchOpts) (int64, *model.AppError) + func (a *App) GetAllLdapGroupsPage(page int, perPage int, opts model.LdapGroupSearchOpts) ([]*model.Group, int, *model.AppError) + func (a *App) GetAllPrivateTeams() ([]*model.Team, *model.AppError) + func (a *App) GetAllPrivateTeamsPage(offset int, limit int) ([]*model.Team, *model.AppError) + func (a *App) GetAllPrivateTeamsPageWithCount(offset int, limit int) (*model.TeamsWithCount, *model.AppError) + func (a *App) GetAllPublicTeams() ([]*model.Team, *model.AppError) + func (a *App) GetAllPublicTeamsPage(offset int, limit int) ([]*model.Team, *model.AppError) + func (a *App) GetAllPublicTeamsPageWithCount(offset int, limit int) (*model.TeamsWithCount, *model.AppError) + func (a *App) GetAllRoles() ([]*model.Role, *model.AppError) + func (a *App) GetAllStatuses() map[string]*model.Status + func (a *App) GetAllTeams() ([]*model.Team, *model.AppError) + func (a *App) GetAllTeamsPage(offset int, limit int) ([]*model.Team, *model.AppError) + func (a *App) GetAllTeamsPageWithCount(offset int, limit int) (*model.TeamsWithCount, *model.AppError) + func (a *App) GetAnalytics(name string, teamId string) (model.AnalyticsRows, *model.AppError) + func (a *App) GetAudits(userId string, limit int) (model.Audits, *model.AppError) + func (a *App) GetAuditsPage(userId string, page int, perPage int) (model.Audits, *model.AppError) + func (a *App) GetAuthorizationCode(w http.ResponseWriter, r *http.Request, service string, ...) (string, *model.AppError) + func (a *App) GetAuthorizedAppsForUser(userId string, page, perPage int) ([]*model.OAuthApp, *model.AppError) + func (a *App) GetBot(botUserId string, includeDeleted bool) (*model.Bot, *model.AppError) + func (a *App) GetBotIconImage(botUserId string) ([]byte, *model.AppError) + func (a *App) GetBots(options *model.BotGetOptions) (model.BotList, *model.AppError) + func (a *App) GetBrandImage() ([]byte, *model.AppError) + func (a *App) GetBulkReactionsForPosts(postIds []string) (map[string][]*model.Reaction, *model.AppError) + func (a *App) GetChannel(channelId string) (*model.Channel, *model.AppError) + func (a *App) GetChannelByName(channelName, teamId string, includeDeleted bool) (*model.Channel, *model.AppError) + func (a *App) GetChannelByNameForTeamName(channelName, teamName string, includeDeleted bool) (*model.Channel, *model.AppError) + func (a *App) GetChannelCounts(teamId string, userId string) (*model.ChannelCounts, *model.AppError) + func (a *App) GetChannelGroupUsers(channelID string) ([]*model.User, *model.AppError) + func (a *App) GetChannelGuestCount(channelId string) (int64, *model.AppError) + func (a *App) GetChannelMember(channelId string, userId string) (*model.ChannelMember, *model.AppError) + func (a *App) GetChannelMemberCount(channelId string) (int64, *model.AppError) + func (a *App) GetChannelMembersByIds(channelId string, userIds []string) (*model.ChannelMembers, *model.AppError) + func (a *App) GetChannelMembersForUser(teamId string, userId string) (*model.ChannelMembers, *model.AppError) + func (a *App) GetChannelMembersForUserWithPagination(teamId, userId string, page, perPage int) ([]*model.ChannelMember, *model.AppError) + func (a *App) GetChannelMembersPage(channelId string, page, perPage int) (*model.ChannelMembers, *model.AppError) + func (a *App) GetChannelMembersTimezones(channelId string) ([]string, *model.AppError) + func (a *App) GetChannelModerationsForChannel(channel *model.Channel) ([]*model.ChannelModeration, *model.AppError) + func (a *App) GetChannelPinnedPostCount(channelId string) (int64, *model.AppError) + func (a *App) GetChannelUnread(channelId, userId string) (*model.ChannelUnread, *model.AppError) + func (a *App) GetChannelsByNames(channelNames []string, teamId string) ([]*model.Channel, *model.AppError) + func (a *App) GetChannelsForScheme(scheme *model.Scheme, offset int, limit int) (model.ChannelList, *model.AppError) + func (a *App) GetChannelsForSchemePage(scheme *model.Scheme, page int, perPage int) (model.ChannelList, *model.AppError) + func (a *App) GetChannelsForUser(teamId string, userId string, includeDeleted bool, lastDeleteAt int) (*model.ChannelList, *model.AppError) + func (a *App) GetChannelsUserNotIn(teamId string, userId string, offset int, limit int) (*model.ChannelList, *model.AppError) + func (a *App) GetCloudSession(token string) (*model.Session, *model.AppError) + func (a *App) GetClusterId() string + func (a *App) GetClusterPluginStatuses() (model.PluginStatuses, *model.AppError) + func (a *App) GetClusterStatus() []*model.ClusterInfo + func (a *App) GetCommand(commandId string) (*model.Command, *model.AppError) + func (a *App) GetComplianceFile(job *model.Compliance) ([]byte, *model.AppError) + func (a *App) GetComplianceReport(reportId string) (*model.Compliance, *model.AppError) + func (a *App) GetComplianceReports(page, perPage int) (model.Compliances, *model.AppError) + func (a *App) GetConfigFile(name string) ([]byte, error) + func (a *App) GetCookieDomain() string + func (a *App) GetDataRetentionPolicy() (*model.DataRetentionPolicy, *model.AppError) + func (a *App) GetDefaultProfileImage(user *model.User) ([]byte, *model.AppError) + func (a *App) GetDeletedChannels(teamId string, offset int, limit int, userId string) (*model.ChannelList, *model.AppError) + func (a *App) GetEmoji(emojiId string) (*model.Emoji, *model.AppError) + func (a *App) GetEmojiByName(emojiName string) (*model.Emoji, *model.AppError) + func (a *App) GetEmojiImage(emojiId string) ([]byte, string, *model.AppError) + func (a *App) GetEmojiList(page, perPage int, sort string) ([]*model.Emoji, *model.AppError) + func (a *App) GetEmojiStaticUrl(emojiName string) (string, *model.AppError) + func (a *App) GetEnvironmentConfig() map[string]interface{} + func (a *App) GetErrorListForEmailsOverLimit(emailList []string, cloudUserLimit int64) ([]string, []*model.EmailInviteWithError, *model.AppError) + func (a *App) GetFile(fileId string) ([]byte, *model.AppError) + func (a *App) GetFileInfo(fileId string) (*model.FileInfo, *model.AppError) + func (a *App) GetFileInfos(page, perPage int, opt *model.GetFileInfosOptions) ([]*model.FileInfo, *model.AppError) + func (a *App) GetFileInfosForPost(postId string, fromMaster bool) ([]*model.FileInfo, *model.AppError) + func (a *App) GetFileInfosForPostWithMigration(postId string) ([]*model.FileInfo, *model.AppError) + func (a *App) GetFilteredUsersStats(options *model.UserCountOptions) (*model.UsersStats, *model.AppError) + func (a *App) GetFlaggedPosts(userId string, offset int, limit int) (*model.PostList, *model.AppError) + func (a *App) GetFlaggedPostsForChannel(userId, channelId string, offset int, limit int) (*model.PostList, *model.AppError) + func (a *App) GetFlaggedPostsForTeam(userId, teamId string, offset int, limit int) (*model.PostList, *model.AppError) + func (a *App) GetGroup(id string) (*model.Group, *model.AppError) + func (a *App) GetGroupByName(name string, opts model.GroupSearchOpts) (*model.Group, *model.AppError) + func (a *App) GetGroupByRemoteID(remoteID string, groupSource model.GroupSource) (*model.Group, *model.AppError) + func (a *App) GetGroupChannel(userIds []string) (*model.Channel, *model.AppError) + func (a *App) GetGroupMemberCount(groupID string) (int64, *model.AppError) + func (a *App) GetGroupMemberUsers(groupID string) ([]*model.User, *model.AppError) + func (a *App) GetGroupMemberUsersPage(groupID string, page int, perPage int) ([]*model.User, int, *model.AppError) + func (a *App) GetGroupSyncable(groupID string, syncableID string, syncableType model.GroupSyncableType) (*model.GroupSyncable, *model.AppError) + func (a *App) GetGroupSyncables(groupID string, syncableType model.GroupSyncableType) ([]*model.GroupSyncable, *model.AppError) + func (a *App) GetGroups(page, perPage int, opts model.GroupSearchOpts) ([]*model.Group, *model.AppError) + func (a *App) GetGroupsAssociatedToChannelsByTeam(teamId string, opts model.GroupSearchOpts) (map[string][]*model.GroupWithSchemeAdmin, *model.AppError) + func (a *App) GetGroupsByChannel(channelId string, opts model.GroupSearchOpts) ([]*model.GroupWithSchemeAdmin, int, *model.AppError) + func (a *App) GetGroupsByIDs(groupIDs []string) ([]*model.Group, *model.AppError) + func (a *App) GetGroupsBySource(groupSource model.GroupSource) ([]*model.Group, *model.AppError) + func (a *App) GetGroupsByTeam(teamId string, opts model.GroupSearchOpts) ([]*model.GroupWithSchemeAdmin, int, *model.AppError) + func (a *App) GetGroupsByUserId(userId string) ([]*model.Group, *model.AppError) + func (a *App) GetHubForUserId(userId string) *Hub + func (a *App) GetIncomingWebhook(hookId string) (*model.IncomingWebhook, *model.AppError) + func (a *App) GetIncomingWebhooksForTeamPage(teamId string, page, perPage int) ([]*model.IncomingWebhook, *model.AppError) + func (a *App) GetIncomingWebhooksForTeamPageByUser(teamId string, userId string, page, perPage int) ([]*model.IncomingWebhook, *model.AppError) + func (a *App) GetIncomingWebhooksPage(page, perPage int) ([]*model.IncomingWebhook, *model.AppError) + func (a *App) GetIncomingWebhooksPageByUser(userId string, page, perPage int) ([]*model.IncomingWebhook, *model.AppError) + func (a *App) GetJob(id string) (*model.Job, *model.AppError) + func (a *App) GetJobs(offset int, limit int) ([]*model.Job, *model.AppError) + func (a *App) GetJobsByType(jobType string, offset int, limit int) ([]*model.Job, *model.AppError) + func (a *App) GetJobsByTypePage(jobType string, page int, perPage int) ([]*model.Job, *model.AppError) + func (a *App) GetJobsPage(page int, perPage int) ([]*model.Job, *model.AppError) + func (a *App) GetKnownUsers(userID string) ([]string, *model.AppError) + func (a *App) GetLatestTermsOfService() (*model.TermsOfService, *model.AppError) + func (a *App) GetLdapGroup(ldapGroupID string) (*model.Group, *model.AppError) + func (a *App) GetLogs(page, perPage int) ([]string, *model.AppError) + func (a *App) GetLogsSkipSend(page, perPage int) ([]string, *model.AppError) + func (a *App) GetMarketplacePlugins(filter *model.MarketplacePluginFilter) ([]*model.MarketplacePlugin, *model.AppError) + func (a *App) GetMemberCountsByGroup(channelID string, includeTimezones bool) ([]*model.ChannelMemberCountByGroup, *model.AppError) + func (a *App) GetMessageForNotification(post *model.Post, translateFunc i18n.TranslateFunc) string + func (a *App) GetMultipleEmojiByName(names []string) ([]*model.Emoji, *model.AppError) + func (a *App) GetNewUsersForTeamPage(teamId string, page, perPage int, asAdmin bool, ...) ([]*model.User, *model.AppError) + func (a *App) GetNextPostIdFromPostList(postList *model.PostList) string + func (a *App) GetNotificationNameFormat(user *model.User) string + func (a *App) GetNumberOfChannelsOnTeam(teamId string) (int, *model.AppError) + func (a *App) GetOAuthAccessTokenForCodeFlow(clientId, grantType, redirectUri, code, secret, refreshToken string) (*model.AccessResponse, *model.AppError) + func (a *App) GetOAuthAccessTokenForImplicitFlow(userId string, authRequest *model.AuthorizeRequest) (*model.Session, *model.AppError) + func (a *App) GetOAuthApp(appId string) (*model.OAuthApp, *model.AppError) + func (a *App) GetOAuthApps(page, perPage int) ([]*model.OAuthApp, *model.AppError) + func (a *App) GetOAuthAppsByCreator(userId string, page, perPage int) ([]*model.OAuthApp, *model.AppError) + func (a *App) GetOAuthCodeRedirect(userId string, authRequest *model.AuthorizeRequest) (string, *model.AppError) + func (a *App) GetOAuthImplicitRedirect(userId string, authRequest *model.AuthorizeRequest) (string, *model.AppError) + func (a *App) GetOAuthLoginEndpoint(w http.ResponseWriter, r *http.Request, ...) (string, *model.AppError) + func (a *App) GetOAuthSignupEndpoint(w http.ResponseWriter, r *http.Request, service, teamId string) (string, *model.AppError) + func (a *App) GetOAuthStateToken(token string) (*model.Token, *model.AppError) + func (a *App) GetOpenGraphMetadata(requestURL string) *opengraph.OpenGraph + func (a *App) GetOrCreateDirectChannel(userId, otherUserId string) (*model.Channel, *model.AppError) + func (a *App) GetOutgoingWebhook(hookId string) (*model.OutgoingWebhook, *model.AppError) + func (a *App) GetOutgoingWebhooksForChannelPageByUser(channelId string, userId string, page, perPage int) ([]*model.OutgoingWebhook, *model.AppError) + func (a *App) GetOutgoingWebhooksForTeamPage(teamId string, page, perPage int) ([]*model.OutgoingWebhook, *model.AppError) + func (a *App) GetOutgoingWebhooksForTeamPageByUser(teamId string, userId string, page, perPage int) ([]*model.OutgoingWebhook, *model.AppError) + func (a *App) GetOutgoingWebhooksPage(page, perPage int) ([]*model.OutgoingWebhook, *model.AppError) + func (a *App) GetOutgoingWebhooksPageByUser(userId string, page, perPage int) ([]*model.OutgoingWebhook, *model.AppError) + func (a *App) GetPasswordRecoveryToken(token string) (*model.Token, *model.AppError) + func (a *App) GetPermalinkPost(postId string, userId string) (*model.PostList, *model.AppError) + func (a *App) GetPinnedPosts(channelId string) (*model.PostList, *model.AppError) + func (a *App) GetPluginKey(pluginId string, key string) ([]byte, *model.AppError) + func (a *App) GetPluginPublicKeyFiles() ([]string, *model.AppError) + func (a *App) GetPluginStatus(id string) (*model.PluginStatus, *model.AppError) + func (a *App) GetPluginStatuses() (model.PluginStatuses, *model.AppError) + func (a *App) GetPlugins() (*model.PluginsResponse, *model.AppError) + func (a *App) GetPluginsEnvironment() *plugin.Environment + func (a *App) GetPostAfterTime(channelId string, time int64) (*model.Post, *model.AppError) + func (a *App) GetPostIdAfterTime(channelId string, time int64) (string, *model.AppError) + func (a *App) GetPostIdBeforeTime(channelId string, time int64) (string, *model.AppError) + func (a *App) GetPostThread(postId string, skipFetchThreads bool) (*model.PostList, *model.AppError) + func (a *App) GetPosts(channelId string, offset int, limit int) (*model.PostList, *model.AppError) + func (a *App) GetPostsAfterPost(options model.GetPostsOptions) (*model.PostList, *model.AppError) + func (a *App) GetPostsAroundPost(before bool, options model.GetPostsOptions) (*model.PostList, *model.AppError) + func (a *App) GetPostsBeforePost(options model.GetPostsOptions) (*model.PostList, *model.AppError) + func (a *App) GetPostsEtag(channelId string) string + func (a *App) GetPostsForChannelAroundLastUnread(channelId, userId string, limitBefore, limitAfter int, skipFetchThreads bool) (*model.PostList, *model.AppError) + func (a *App) GetPostsPage(options model.GetPostsOptions) (*model.PostList, *model.AppError) + func (a *App) GetPostsSince(options model.GetPostsSinceOptions) (*model.PostList, *model.AppError) + func (a *App) GetPreferenceByCategoryAndNameForUser(userId string, category string, preferenceName string) (*model.Preference, *model.AppError) + func (a *App) GetPreferenceByCategoryForUser(userId string, category string) (model.Preferences, *model.AppError) + func (a *App) GetPreferencesForUser(userId string) (model.Preferences, *model.AppError) + func (a *App) GetPrevPostIdFromPostList(postList *model.PostList) string + func (a *App) GetPrivateChannelsForTeam(teamId string, offset int, limit int) (*model.ChannelList, *model.AppError) + func (a *App) GetProductNotices(userId, teamId string, client model.NoticeClientType, clientVersion string, ...) (model.NoticeMessages, *model.AppError) + func (a *App) GetProfileImage(user *model.User) ([]byte, bool, *model.AppError) + func (a *App) GetPublicChannelsByIdsForTeam(teamId string, channelIds []string) (*model.ChannelList, *model.AppError) + func (a *App) GetPublicChannelsForTeam(teamId string, offset int, limit int) (*model.ChannelList, *model.AppError) + func (a *App) GetPublicKey(name string) ([]byte, *model.AppError) + func (a *App) GetReactionsForPost(postId string) ([]*model.Reaction, *model.AppError) + func (a *App) GetRecentlyActiveUsersForTeam(teamId string) (map[string]*model.User, *model.AppError) + func (a *App) GetRecentlyActiveUsersForTeamPage(teamId string, page, perPage int, asAdmin bool, ...) ([]*model.User, *model.AppError) + func (a *App) GetRole(id string) (*model.Role, *model.AppError) + func (a *App) GetRoleByName(name string) (*model.Role, *model.AppError) + func (a *App) GetRolesByNames(names []string) ([]*model.Role, *model.AppError) + func (a *App) GetSamlCertificateStatus() *model.SamlCertificateStatus + func (a *App) GetSamlMetadata() (string, *model.AppError) + func (a *App) GetSamlMetadataFromIdp(idpMetadataUrl string) (*model.SamlMetadataResponse, *model.AppError) + func (a *App) GetSanitizeOptions(asAdmin bool) map[string]bool + func (a *App) GetSanitizedConfig() *model.Config + func (a *App) GetScheme(id string) (*model.Scheme, *model.AppError) + func (a *App) GetSchemeByName(name string) (*model.Scheme, *model.AppError) + func (a *App) GetSchemeRolesForChannel(channelId string) (guestRoleName, userRoleName, adminRoleName string, err *model.AppError) + func (a *App) GetSchemeRolesForTeam(teamId string) (string, string, string, *model.AppError) + func (a *App) GetSchemes(scope string, offset int, limit int) ([]*model.Scheme, *model.AppError) + func (a *App) GetSchemesPage(scope string, page int, perPage int) ([]*model.Scheme, *model.AppError) + func (a *App) GetSession(token string) (*model.Session, *model.AppError) + func (a *App) GetSessionById(sessionId string) (*model.Session, *model.AppError) + func (a *App) GetSessionLengthInMillis(session *model.Session) int64 + func (a *App) GetSessions(userId string) ([]*model.Session, *model.AppError) + func (a *App) GetSidebarCategories(userId, teamId string) (*model.OrderedSidebarCategories, *model.AppError) + func (a *App) GetSidebarCategory(categoryId string) (*model.SidebarCategoryWithChannels, *model.AppError) + func (a *App) GetSidebarCategoryOrder(userId, teamId string) ([]string, *model.AppError) + func (a *App) GetSinglePost(postId string) (*model.Post, *model.AppError) + func (a *App) GetSiteURL() string + func (a *App) GetStatus(userId string) (*model.Status, *model.AppError) + func (a *App) GetStatusFromCache(userId string) *model.Status + func (a *App) GetStatusesByIds(userIds []string) (map[string]interface{}, *model.AppError) + func (a *App) GetSuggestions(commandArgs *model.CommandArgs, commands []*model.Command, roleID string) []model.AutocompleteSuggestion + func (a *App) GetT() goi18n.TranslateFunc + func (a *App) GetTeam(teamId string) (*model.Team, *model.AppError) + func (a *App) GetTeamByInviteId(inviteId string) (*model.Team, *model.AppError) + func (a *App) GetTeamByName(name string) (*model.Team, *model.AppError) + func (a *App) GetTeamGroupUsers(teamID string) ([]*model.User, *model.AppError) + func (a *App) GetTeamIcon(team *model.Team) ([]byte, *model.AppError) + func (a *App) GetTeamIdFromQuery(query url.Values) (string, *model.AppError) + func (a *App) GetTeamMember(teamId, userId string) (*model.TeamMember, *model.AppError) + func (a *App) GetTeamMembers(teamId string, offset int, limit int, ...) ([]*model.TeamMember, *model.AppError) + func (a *App) GetTeamMembersByIds(teamId string, userIds []string, restrictions *model.ViewUsersRestrictions) ([]*model.TeamMember, *model.AppError) + func (a *App) GetTeamMembersForUser(userId string) ([]*model.TeamMember, *model.AppError) + func (a *App) GetTeamMembersForUserWithPagination(userId string, page, perPage int) ([]*model.TeamMember, *model.AppError) + func (a *App) GetTeamSchemeChannelRoles(teamId string) (guestRoleName, userRoleName, adminRoleName string, err *model.AppError) + func (a *App) GetTeamStats(teamId string, restrictions *model.ViewUsersRestrictions) (*model.TeamStats, *model.AppError) + func (a *App) GetTeamUnread(teamId, userId string) (*model.TeamUnread, *model.AppError) + func (a *App) GetTeamsForScheme(scheme *model.Scheme, offset int, limit int) ([]*model.Team, *model.AppError) + func (a *App) GetTeamsForSchemePage(scheme *model.Scheme, page int, perPage int) ([]*model.Team, *model.AppError) + func (a *App) GetTeamsForUser(userId string) ([]*model.Team, *model.AppError) + func (a *App) GetTeamsUnreadForUser(excludeTeamId string, userId string) ([]*model.TeamUnread, *model.AppError) + func (a *App) GetTermsOfService(id string) (*model.TermsOfService, *model.AppError) + func (a *App) GetThreadMembershipsForUser(userId, teamId string) ([]*model.ThreadMembership, error) + func (a *App) GetThreadsForUser(userId, teamId string, options model.GetUserThreadsOpts) (*model.Threads, *model.AppError) + func (a *App) GetTotalUsersStats(viewRestrictions *model.ViewUsersRestrictions) (*model.UsersStats, *model.AppError) + func (a *App) GetUploadSession(uploadId string) (*model.UploadSession, *model.AppError) + func (a *App) GetUploadSessionsForUser(userId string) ([]*model.UploadSession, *model.AppError) + func (a *App) GetUser(userId string) (*model.User, *model.AppError) + func (a *App) GetUserAccessToken(tokenId string, sanitize bool) (*model.UserAccessToken, *model.AppError) + func (a *App) GetUserAccessTokens(page, perPage int) ([]*model.UserAccessToken, *model.AppError) + func (a *App) GetUserAccessTokensForUser(userId string, page, perPage int) ([]*model.UserAccessToken, *model.AppError) + func (a *App) GetUserByAuth(authData *string, authService string) (*model.User, *model.AppError) + func (a *App) GetUserByEmail(email string) (*model.User, *model.AppError) + func (a *App) GetUserByUsername(username string) (*model.User, *model.AppError) + func (a *App) GetUserForLogin(id, loginId string) (*model.User, *model.AppError) + func (a *App) GetUserStatusesByIds(userIds []string) ([]*model.Status, *model.AppError) + func (a *App) GetUserTermsOfService(userId string) (*model.UserTermsOfService, *model.AppError) + func (a *App) GetUsers(options *model.UserGetOptions) ([]*model.User, *model.AppError) + func (a *App) GetUsersByGroupChannelIds(channelIds []string, asAdmin bool) (map[string][]*model.User, *model.AppError) + func (a *App) GetUsersByIds(userIds []string, options *store.UserGetByIdsOpts) ([]*model.User, *model.AppError) + func (a *App) GetUsersByUsernames(usernames []string, asAdmin bool, ...) ([]*model.User, *model.AppError) + func (a *App) GetUsersEtag(restrictionsHash string) string + func (a *App) GetUsersInChannel(options *model.UserGetOptions) ([]*model.User, *model.AppError) + func (a *App) GetUsersInChannelByStatus(options *model.UserGetOptions) ([]*model.User, *model.AppError) + func (a *App) GetUsersInChannelMap(options *model.UserGetOptions, asAdmin bool) (map[string]*model.User, *model.AppError) + func (a *App) GetUsersInChannelPage(options *model.UserGetOptions, asAdmin bool) ([]*model.User, *model.AppError) + func (a *App) GetUsersInChannelPageByStatus(options *model.UserGetOptions, asAdmin bool) ([]*model.User, *model.AppError) + func (a *App) GetUsersInTeam(options *model.UserGetOptions) ([]*model.User, *model.AppError) + func (a *App) GetUsersInTeamEtag(teamId string, restrictionsHash string) string + func (a *App) GetUsersInTeamPage(options *model.UserGetOptions, asAdmin bool) ([]*model.User, *model.AppError) + func (a *App) GetUsersNotInChannel(teamId string, channelId string, groupConstrained bool, offset int, limit int, ...) ([]*model.User, *model.AppError) + func (a *App) GetUsersNotInChannelMap(teamId string, channelId string, groupConstrained bool, offset int, limit int, ...) (map[string]*model.User, *model.AppError) + func (a *App) GetUsersNotInChannelPage(teamId string, channelId string, groupConstrained bool, page int, perPage int, ...) ([]*model.User, *model.AppError) + func (a *App) GetUsersNotInTeam(teamId string, groupConstrained bool, offset int, limit int, ...) ([]*model.User, *model.AppError) + func (a *App) GetUsersNotInTeamEtag(teamId string, restrictionsHash string) string + func (a *App) GetUsersNotInTeamPage(teamId string, groupConstrained bool, page int, perPage int, asAdmin bool, ...) ([]*model.User, *model.AppError) + func (a *App) GetUsersPage(options *model.UserGetOptions, asAdmin bool) ([]*model.User, *model.AppError) + func (a *App) GetUsersWithoutTeam(options *model.UserGetOptions) ([]*model.User, *model.AppError) + func (a *App) GetUsersWithoutTeamPage(options *model.UserGetOptions, asAdmin bool) ([]*model.User, *model.AppError) + func (a *App) GetVerifyEmailToken(token string) (*model.Token, *model.AppError) + func (a *App) GetViewUsersRestrictions(userId string) (*model.ViewUsersRestrictions, *model.AppError) + func (a *App) GetWarnMetricsStatus() (map[string]*model.WarnMetricStatus, *model.AppError) + func (a *App) HTTPService() httpservice.HTTPService + func (a *App) Handle404(w http.ResponseWriter, r *http.Request) + func (a *App) HandleCommandResponse(command *model.Command, args *model.CommandArgs, ...) (*model.CommandResponse, *model.AppError) + func (a *App) HandleCommandResponsePost(command *model.Command, args *model.CommandArgs, ...) (*model.Post, *model.AppError) + func (a *App) HandleCommandWebhook(hookId string, response *model.CommandResponse) *model.AppError + func (a *App) HandleImages(previewPathList []string, thumbnailPathList []string, fileData [][]byte) + func (a *App) HandleIncomingWebhook(hookId string, req *model.IncomingWebhookRequest) *model.AppError + func (a *App) HandleMessageExportConfig(cfg *model.Config, appCfg *model.Config) + func (a *App) HasPermissionTo(askingUserId string, permission *model.Permission) bool + func (a *App) HasPermissionToChannel(askingUserId string, channelId string, permission *model.Permission) bool + func (a *App) HasPermissionToChannelByPost(askingUserId string, postId string, permission *model.Permission) bool + func (a *App) HasPermissionToTeam(askingUserId string, teamId string, permission *model.Permission) bool + func (a *App) HasPermissionToUser(askingUserId string, userId string) bool + func (a *App) HubRegister(webConn *WebConn) + func (a *App) HubStart() + func (a *App) HubStop() + func (a *App) HubUnregister(webConn *WebConn) + func (a *App) ImageProxy() *imageproxy.ImageProxy + func (a *App) ImageProxyAdder() func(string) string + func (a *App) ImageProxyRemover() (f func(string) string) + func (a *App) ImportPermissions(jsonl io.Reader) error + func (a *App) InitPlugins(pluginDir, webappPluginDir string) + func (a *App) InitPostMetadata() + func (a *App) InitServer() + func (a *App) InstallMarketplacePlugin(request *model.InstallMarketplacePluginRequest) (*model.Manifest, *model.AppError) + func (a *App) InstallPlugin(pluginFile io.ReadSeeker, replace bool) (*model.Manifest, *model.AppError) + func (a *App) InstallPluginFromData(data model.PluginEventData) + func (a *App) InstallPluginWithSignature(pluginFile, signature io.ReadSeeker) (*model.Manifest, *model.AppError) + func (a *App) InvalidateAllEmailInvites() *model.AppError + func (a *App) InvalidateCacheForUser(userId string) + func (a *App) InvalidateWebConnSessionCacheForUser(userId string) + func (a *App) InviteGuestsToChannels(teamId string, guestsInvite *model.GuestsInvite, senderId string) *model.AppError + func (a *App) InviteGuestsToChannelsGracefully(teamId string, guestsInvite *model.GuestsInvite, senderId string) ([]*model.EmailInviteWithError, *model.AppError) + func (a *App) InviteNewUsersToTeam(emailList []string, teamId, senderId string) *model.AppError + func (a *App) InviteNewUsersToTeamGracefully(emailList []string, teamId, senderId string) ([]*model.EmailInviteWithError, *model.AppError) + func (a *App) IpAddress() string + func (a *App) IsFirstUserAccount() bool + func (a *App) IsLeader() bool + func (a *App) IsPasswordValid(password string) *model.AppError + func (a *App) IsPhase2MigrationCompleted() *model.AppError + func (a *App) IsUserAway(lastActivityAt int64) bool + func (a *App) IsUserSignUpAllowed() *model.AppError + func (a *App) IsUsernameTaken(name string) bool + func (a *App) JoinChannel(channel *model.Channel, userId string) *model.AppError + func (a *App) JoinDefaultChannels(teamId string, user *model.User, shouldBeAdmin bool, userRequestorId string) *model.AppError + func (a *App) JoinUserToTeam(team *model.Team, user *model.User, userRequestorId string) *model.AppError + func (a *App) Ldap() einterfaces.LdapInterface + func (a *App) LeaveChannel(channelId string, userId string) *model.AppError + func (a *App) LeaveTeam(team *model.Team, user *model.User, requestorId string) *model.AppError + func (a *App) LimitedClientConfig() map[string]string + func (a *App) LimitedClientConfigWithComputed() map[string]string + func (a *App) ListAllCommands(teamId string, T goi18n.TranslateFunc) ([]*model.Command, *model.AppError) + func (a *App) ListAutocompleteCommands(teamId string, T goi18n.TranslateFunc) ([]*model.Command, *model.AppError) + func (a *App) ListDirectory(path string) ([]string, *model.AppError) + func (a *App) ListImports() ([]string, *model.AppError) + func (a *App) ListPluginKeys(pluginId string, page, perPage int) ([]string, *model.AppError) + func (a *App) ListTeamCommands(teamId string) ([]*model.Command, *model.AppError) + func (a *App) Log() *mlog.Logger + func (a *App) LogAuditRec(rec *audit.Record, err error) + func (a *App) LogAuditRecWithLevel(rec *audit.Record, level mlog.LogLevel, err error) + func (a *App) LoginByOAuth(service string, userData io.Reader, teamId string, tokenUser *model.User) (*model.User, *model.AppError) + func (a *App) MakeAuditRecord(event string, initialStatus string) *audit.Record + func (a *App) MakePermissionError(permissions []*model.Permission) *model.AppError + func (a *App) MarkChannelAsUnreadFromPost(postID string, userID string) (*model.ChannelUnreadAt, *model.AppError) + func (a *App) MarkChannelsAsViewed(channelIds []string, userId string, currentSessionId string) (map[string]int64, *model.AppError) + func (a *App) MaxPostSize() int + func (a *App) MentionsToPublicChannels(message, teamId string) model.ChannelMentionMap + func (a *App) MentionsToTeamMembers(message, teamId string) model.UserMentionMap + func (a *App) MessageExport() einterfaces.MessageExportInterface + func (a *App) Metrics() einterfaces.MetricsInterface + func (a *App) MigrateFilenamesToFileInfos(post *model.Post) []*model.FileInfo + func (a *App) MigrateIdLDAP(toAttribute string) *model.AppError + func (a *App) MoveChannel(team *model.Team, channel *model.Channel, user *model.User) *model.AppError + func (a *App) MoveCommand(team *model.Team, command *model.Command) *model.AppError + func (a *App) MoveFile(oldPath, newPath string) *model.AppError + func (a *App) NewClusterDiscoveryService() *ClusterDiscoveryService + func (a *App) NewPluginAPI(manifest *model.Manifest) plugin.API + func (a *App) NewWebConn(ws *websocket.Conn, session model.Session, t goi18n.TranslateFunc, ...) *WebConn + func (a *App) NewWebHub() *Hub + func (a *App) Notification() einterfaces.NotificationInterface + func (a *App) NotificationsLog() *mlog.Logger + func (a *App) NotifyAndSetWarnMetricAck(warnMetricId string, sender *model.User, forceAck bool, isBot bool) *model.AppError + func (a *App) NotifySessionsExpired() *model.AppError + func (a *App) OpenInteractiveDialog(request model.OpenDialogRequest) *model.AppError + func (a *App) OriginChecker() func(*http.Request) bool + func (a *App) OverrideIconURLIfEmoji(post *model.Post) + func (a *App) PatchBot(botUserId string, botPatch *model.BotPatch) (*model.Bot, *model.AppError) + func (a *App) PatchChannel(channel *model.Channel, patch *model.ChannelPatch, userId string) (*model.Channel, *model.AppError) + func (a *App) PatchChannelModerationsForChannel(channel *model.Channel, ...) ([]*model.ChannelModeration, *model.AppError) + func (a *App) PatchPost(postId string, patch *model.PostPatch) (*model.Post, *model.AppError) + func (a *App) PatchRole(role *model.Role, patch *model.RolePatch) (*model.Role, *model.AppError) + func (a *App) PatchScheme(scheme *model.Scheme, patch *model.SchemePatch) (*model.Scheme, *model.AppError) + func (a *App) PatchTeam(teamId string, patch *model.TeamPatch) (*model.Team, *model.AppError) + func (a *App) PatchUser(userId string, patch *model.UserPatch, asAdmin bool) (*model.User, *model.AppError) + func (a *App) Path() string + func (a *App) PermanentDeleteAllUsers() *model.AppError + func (a *App) PermanentDeleteBot(botUserId string) *model.AppError + func (a *App) PermanentDeleteChannel(channel *model.Channel) *model.AppError + func (a *App) PermanentDeleteTeam(team *model.Team) *model.AppError + func (a *App) PermanentDeleteTeamId(teamId string) *model.AppError + func (a *App) PermanentDeleteUser(user *model.User) *model.AppError + func (a *App) PluginCommandsForTeam(teamId string) []*model.Command + func (a *App) PluginContext() *plugin.Context + func (a *App) PostActionCookieSecret() []byte + func (a *App) PostAddToChannelMessage(user *model.User, addedUser *model.User, channel *model.Channel, ...) *model.AppError + func (a *App) PostPatchWithProxyRemovedFromImageURLs(patch *model.PostPatch) *model.PostPatch + func (a *App) PostUpdateChannelDisplayNameMessage(userId string, channel *model.Channel, ...) *model.AppError + func (a *App) PostUpdateChannelHeaderMessage(userId string, channel *model.Channel, ...) *model.AppError + func (a *App) PostUpdateChannelPurposeMessage(userId string, channel *model.Channel, oldChannelPurpose string, ...) *model.AppError + func (a *App) PostWithProxyAddedToImageURLs(post *model.Post) *model.Post + func (a *App) PostWithProxyRemovedFromImageURLs(post *model.Post) *model.Post + func (a *App) PreparePostForClient(originalPost *model.Post, isNewPost bool, isEditPost bool) *model.Post + func (a *App) PreparePostListForClient(originalList *model.PostList) *model.PostList + func (a *App) ProcessSlackAttachments(attachments []*model.SlackAttachment) []*model.SlackAttachment + func (a *App) ProcessSlackText(text string) string + func (a *App) PromoteGuestToUser(user *model.User, requestorId string) *model.AppError + func (a *App) Publish(message *model.WebSocketEvent) + func (a *App) PublishSkipClusterSend(message *model.WebSocketEvent) + func (a *App) PublishUserTyping(userId, channelId, parentId string) *model.AppError + func (a *App) PurgeBleveIndexes() *model.AppError + func (a *App) PurgeElasticsearchIndexes() *model.AppError + func (a *App) ReadFile(path string) ([]byte, *model.AppError) + func (a *App) RecycleDatabaseConnection() + func (a *App) RegenCommandToken(cmd *model.Command) (*model.Command, *model.AppError) + func (a *App) RegenOutgoingWebhookToken(hook *model.OutgoingWebhook) (*model.OutgoingWebhook, *model.AppError) + func (a *App) RegenerateOAuthAppSecret(app *model.OAuthApp) (*model.OAuthApp, *model.AppError) + func (a *App) RegenerateTeamInviteId(teamId string) (*model.Team, *model.AppError) + func (a *App) RegisterPluginCommand(pluginId string, command *model.Command) error + func (a *App) ReloadConfig() error + func (a *App) RemoveAllDeactivatedMembersFromChannel(channel *model.Channel) *model.AppError + func (a *App) RemoveConfigListener(id string) + func (a *App) RemoveDirectory(path string) *model.AppError + func (a *App) RemoveFile(path string) *model.AppError + func (a *App) RemoveLdapPrivateCertificate() *model.AppError + func (a *App) RemoveLdapPublicCertificate() *model.AppError + func (a *App) RemovePlugin(id string) *model.AppError + func (a *App) RemovePluginFromData(data model.PluginEventData) + func (a *App) RemoveSamlIdpCertificate() *model.AppError + func (a *App) RemoveSamlPrivateCertificate() *model.AppError + func (a *App) RemoveSamlPublicCertificate() *model.AppError + func (a *App) RemoveTeamIcon(teamId string) *model.AppError + func (a *App) RemoveTeamMemberFromTeam(teamMember *model.TeamMember, requestorId string) *model.AppError + func (a *App) RemoveUserFromChannel(userIdToRemove string, removerUserId string, channel *model.Channel) *model.AppError + func (a *App) RemoveUserFromTeam(teamId string, userId string, requestorId string) *model.AppError + func (a *App) RemoveUsersFromChannelNotMemberOfTeam(remover *model.User, channel *model.Channel, team *model.Team) *model.AppError + func (a *App) RenameChannel(channel *model.Channel, newChannelName string, newDisplayName string) (*model.Channel, *model.AppError) + func (a *App) RenameTeam(team *model.Team, newTeamName string, newDisplayName string) (*model.Team, *model.AppError) + func (a *App) RequestId() string + func (a *App) RequestLicenseAndAckWarnMetric(warnMetricId string, isBot bool) *model.AppError + func (a *App) ResetPasswordFromToken(userSuppliedTokenString, newPassword string) *model.AppError + func (a *App) ResetPermissionsSystem() *model.AppError + func (a *App) RestoreChannel(channel *model.Channel, userId string) (*model.Channel, *model.AppError) + func (a *App) RestoreTeam(teamId string) *model.AppError + func (a *App) RestrictUsersGetByPermissions(userId string, options *model.UserGetOptions) (*model.UserGetOptions, *model.AppError) + func (a *App) RestrictUsersSearchByPermissions(userId string, options *model.UserSearchOptions) (*model.UserSearchOptions, *model.AppError) + func (a *App) RevokeAccessToken(token string) *model.AppError + func (a *App) RevokeAllSessions(userId string) *model.AppError + func (a *App) RevokeSession(session *model.Session) *model.AppError + func (a *App) RevokeSessionById(sessionId string) *model.AppError + func (a *App) RevokeSessionsForDeviceId(userId string, deviceId string, currentSessionId string) *model.AppError + func (a *App) RevokeSessionsFromAllUsers() *model.AppError + func (a *App) RevokeUserAccessToken(token *model.UserAccessToken) *model.AppError + func (a *App) RolesGrantPermission(roleNames []string, permissionId string) bool + func (a *App) Saml() einterfaces.SamlInterface + func (a *App) SanitizeProfile(user *model.User, asAdmin bool) + func (a *App) SanitizeTeam(session model.Session, team *model.Team) *model.Team + func (a *App) SanitizeTeams(session model.Session, teams []*model.Team) []*model.Team + func (a *App) SaveAndBroadcastStatus(status *model.Status) + func (a *App) SaveBrandImage(imageData *multipart.FileHeader) *model.AppError + func (a *App) SaveComplianceReport(job *model.Compliance) (*model.Compliance, *model.AppError) + func (a *App) SaveConfig(newCfg *model.Config, sendConfigChangeClusterMessage bool) *model.AppError + func (a *App) SaveReactionForPost(reaction *model.Reaction) (*model.Reaction, *model.AppError) + func (a *App) SaveUserTermsOfService(userId, termsOfServiceId string, accepted bool) *model.AppError + func (a *App) SchemesIterator(scope string, batchSize int) func() []*model.Scheme + func (a *App) SearchAllChannels(term string, opts model.ChannelSearchOpts) (*model.ChannelListWithTeamData, int64, *model.AppError) + func (a *App) SearchAllTeams(searchOpts *model.TeamSearch) ([]*model.Team, int64, *model.AppError) + func (a *App) SearchArchivedChannels(teamId string, term string, userId string) (*model.ChannelList, *model.AppError) + func (a *App) SearchChannels(teamId string, term string) (*model.ChannelList, *model.AppError) + func (a *App) SearchChannelsForUser(userId, teamId, term string) (*model.ChannelList, *model.AppError) + func (a *App) SearchChannelsUserNotIn(teamId string, userId string, term string) (*model.ChannelList, *model.AppError) + func (a *App) SearchEmoji(name string, prefixOnly bool, limit int) ([]*model.Emoji, *model.AppError) + func (a *App) SearchEngine() *searchengine.Broker + func (a *App) SearchGroupChannels(userId, term string) (*model.ChannelList, *model.AppError) + func (a *App) SearchPostsInTeam(teamId string, paramsList []*model.SearchParams) (*model.PostList, *model.AppError) + func (a *App) SearchPostsInTeamForUser(terms string, userId string, teamId string, isOrSearch bool, ...) (*model.PostSearchResults, *model.AppError) + func (a *App) SearchPrivateTeams(term string) ([]*model.Team, *model.AppError) + func (a *App) SearchPublicTeams(term string) ([]*model.Team, *model.AppError) + func (a *App) SearchUserAccessTokens(term string) ([]*model.UserAccessToken, *model.AppError) + func (a *App) SearchUsers(props *model.UserSearch, options *model.UserSearchOptions) ([]*model.User, *model.AppError) + func (a *App) SearchUsersInChannel(channelId string, term string, options *model.UserSearchOptions) ([]*model.User, *model.AppError) + func (a *App) SearchUsersInGroup(groupID string, term string, options *model.UserSearchOptions) ([]*model.User, *model.AppError) + func (a *App) SearchUsersInTeam(teamId, term string, options *model.UserSearchOptions) ([]*model.User, *model.AppError) + func (a *App) SearchUsersNotInChannel(teamId string, channelId string, term string, options *model.UserSearchOptions) ([]*model.User, *model.AppError) + func (a *App) SearchUsersNotInTeam(notInTeamId string, term string, options *model.UserSearchOptions) ([]*model.User, *model.AppError) + func (a *App) SearchUsersWithoutTeam(term string, options *model.UserSearchOptions) ([]*model.User, *model.AppError) + func (a *App) SendAckToPushProxy(ack *model.PushNotificationAck) error + func (a *App) SendAutoResponse(channel *model.Channel, receiver *model.User, post *model.Post) (bool, *model.AppError) + func (a *App) SendAutoResponseIfNecessary(channel *model.Channel, sender *model.User, post *model.Post) (bool, *model.AppError) + func (a *App) SendEmailVerification(user *model.User, newEmail, redirect string) *model.AppError + func (a *App) SendEphemeralPost(userId string, post *model.Post) *model.Post + func (a *App) SendNoCardPaymentFailedEmail() *model.AppError + func (a *App) SendNotifications(post *model.Post, team *model.Team, channel *model.Channel, sender *model.User, ...) ([]string, error) + func (a *App) SendPasswordReset(email string, siteURL string) (bool, *model.AppError) + func (a *App) SendPaymentFailedEmail(failedPayment *model.FailedPayment) *model.AppError + func (a *App) ServeInterPluginRequest(w http.ResponseWriter, r *http.Request, ...) + func (a *App) ServePluginPublicRequest(w http.ResponseWriter, r *http.Request) + func (a *App) ServePluginRequest(w http.ResponseWriter, r *http.Request) + func (a *App) ServerBusyStateChanged(sbs *model.ServerBusyState) + func (a *App) Session() *model.Session + func (a *App) SessionCacheLength() int + func (a *App) SessionHasPermissionTo(session model.Session, permission *model.Permission) bool + func (a *App) SessionHasPermissionToAny(session model.Session, permissions []*model.Permission) bool + func (a *App) SessionHasPermissionToCategory(session model.Session, userId, teamId, categoryId string) bool + func (a *App) SessionHasPermissionToChannel(session model.Session, channelId string, permission *model.Permission) bool + func (a *App) SessionHasPermissionToChannelByPost(session model.Session, postId string, permission *model.Permission) bool + func (a *App) SessionHasPermissionToManageBot(session model.Session, botUserId string) *model.AppError + func (a *App) SessionHasPermissionToTeam(session model.Session, teamId string, permission *model.Permission) bool + func (a *App) SessionHasPermissionToUser(session model.Session, userId string) bool + func (a *App) SessionHasPermissionToUserOrBot(session model.Session, userId string) bool + func (a *App) SessionIsRegistered(session model.Session) bool + func (a *App) SetAcceptLanguage(s string) + func (a *App) SetActiveChannel(userId string, channelId string) *model.AppError + func (a *App) SetAutoResponderStatus(user *model.User, oldNotifyProps model.StringMap) + func (a *App) SetBotIconImage(botUserId string, file io.ReadSeeker) *model.AppError + func (a *App) SetBotIconImageFromMultiPartFile(botUserId string, imageData *multipart.FileHeader) *model.AppError + func (a *App) SetContext(c context.Context) + func (a *App) SetDefaultProfileImage(user *model.User) *model.AppError + func (a *App) SetIpAddress(s string) + func (a *App) SetPath(s string) + func (a *App) SetPhase2PermissionsMigrationStatus(isComplete bool) error + func (a *App) SetPluginKey(pluginId string, key string, value []byte) *model.AppError + func (a *App) SetPluginKeyWithExpiry(pluginId string, key string, value []byte, expireInSeconds int64) *model.AppError + func (a *App) SetPluginKeyWithOptions(pluginId string, key string, value []byte, options model.PluginKVSetOptions) (bool, *model.AppError) + func (a *App) SetPluginsEnvironment(pluginsEnvironment *plugin.Environment) + func (a *App) SetProfileImage(userId string, imageData *multipart.FileHeader) *model.AppError + func (a *App) SetProfileImageFromFile(userId string, file io.Reader) *model.AppError + func (a *App) SetProfileImageFromMultiPartFile(userId string, file multipart.File) *model.AppError + func (a *App) SetRequestId(s string) + func (a *App) SetSamlIdpCertificateFromMetadata(data []byte) *model.AppError + func (a *App) SetSearchEngine(se *searchengine.Broker) + func (a *App) SetServer(srv *Server) + func (a *App) SetSession(s *model.Session) + func (a *App) SetSessionExpireInDays(session *model.Session, days int) + func (a *App) SetStatusAwayIfNeeded(userId string, manual bool) + func (a *App) SetStatusDoNotDisturb(userId string) + func (a *App) SetStatusLastActivityAt(userId string, activityAt int64) + func (a *App) SetStatusOffline(userId string, manual bool) + func (a *App) SetStatusOnline(userId string, manual bool) + func (a *App) SetStatusOutOfOffice(userId string) + func (a *App) SetT(t goi18n.TranslateFunc) + func (a *App) SetTeamIcon(teamId string, imageData *multipart.FileHeader) *model.AppError + func (a *App) SetTeamIconFromFile(team *model.Team, file io.Reader) *model.AppError + func (a *App) SetTeamIconFromMultiPartFile(teamId string, file multipart.File) *model.AppError + func (a *App) SetUserAgent(s string) + func (a *App) SlackImport(fileData multipart.File, fileSize int64, teamID string) (*model.AppError, *bytes.Buffer) + func (a *App) SoftDeleteTeam(teamId string) *model.AppError + func (a *App) Srv() *Server + func (a *App) SubmitInteractiveDialog(request model.SubmitDialogRequest) (*model.SubmitDialogResponse, *model.AppError) + func (a *App) SwitchEmailToLdap(email, password, code, ldapLoginId, ldapPassword string) (string, *model.AppError) + func (a *App) SwitchEmailToOAuth(w http.ResponseWriter, r *http.Request, email, password, code, service string) (string, *model.AppError) + func (a *App) SwitchLdapToEmail(ldapPassword, code, email, newPassword string) (string, *model.AppError) + func (a *App) SwitchOAuthToEmail(email, password, requesterId string) (string, *model.AppError) + func (a *App) SyncLdap() + func (a *App) SyncPlugins() *model.AppError + func (a *App) SyncPluginsActiveState() + func (a *App) SyncRolesAndMembership(syncableID string, syncableType model.GroupSyncableType) + func (a *App) SyncSyncableRoles(syncableID string, syncableType model.GroupSyncableType) *model.AppError + func (a *App) T(translationID string, args ...interface{}) string + func (a *App) TeamMembersMinusGroupMembers(teamID string, groupIDs []string, page, perPage int) ([]*model.UserWithGroups, int64, *model.AppError) + func (a *App) TeamMembersToAdd(since int64, teamID *string) ([]*model.UserTeamIDPair, *model.AppError) + func (a *App) TeamMembersToRemove(teamID *string) ([]*model.TeamMember, *model.AppError) + func (a *App) TelemetryId() string + func (a *App) TestElasticsearch(cfg *model.Config) *model.AppError + func (a *App) TestEmail(userId string, cfg *model.Config) *model.AppError + func (a *App) TestFilesStoreConnection() *model.AppError + func (a *App) TestFilesStoreConnectionWithConfig(cfg *model.FileSettings) *model.AppError + func (a *App) TestLdap() *model.AppError + func (a *App) TestSiteURL(siteURL string) *model.AppError + func (a *App) Timezones() *timezones.Timezones + func (a *App) ToggleMuteChannel(channelId, userId string) (*model.ChannelMember, *model.AppError) + func (a *App) TotalWebsocketConnections() int + func (a *App) TriggerWebhook(payload *model.OutgoingWebhookPayload, hook *model.OutgoingWebhook, ...) + func (a *App) UnregisterPluginCommand(pluginId, teamId, trigger string) + func (a *App) UnregisterPluginCommands(pluginId string) + func (a *App) UpdateActive(user *model.User, active bool) (*model.User, *model.AppError) + func (a *App) UpdateBotActive(botUserId string, active bool) (*model.Bot, *model.AppError) + func (a *App) UpdateBotOwner(botUserId, newOwnerId string) (*model.Bot, *model.AppError) + func (a *App) UpdateChannel(channel *model.Channel) (*model.Channel, *model.AppError) + func (a *App) UpdateChannelLastViewedAt(channelIds []string, userId string) *model.AppError + func (a *App) UpdateChannelMemberNotifyProps(data map[string]string, channelId string, userId string) (*model.ChannelMember, *model.AppError) + func (a *App) UpdateChannelMemberRoles(channelId string, userId string, newRoles string) (*model.ChannelMember, *model.AppError) + func (a *App) UpdateChannelMemberSchemeRoles(channelId string, userId string, isSchemeGuest bool, isSchemeUser bool, ...) (*model.ChannelMember, *model.AppError) + func (a *App) UpdateChannelPrivacy(oldChannel *model.Channel, user *model.User) (*model.Channel, *model.AppError) + func (a *App) UpdateChannelScheme(channel *model.Channel) (*model.Channel, *model.AppError) + func (a *App) UpdateCommand(oldCmd, updatedCmd *model.Command) (*model.Command, *model.AppError) + func (a *App) UpdateConfig(f func(*model.Config)) + func (a *App) UpdateEphemeralPost(userId string, post *model.Post) *model.Post + func (a *App) UpdateGroup(group *model.Group) (*model.Group, *model.AppError) + func (a *App) UpdateGroupSyncable(groupSyncable *model.GroupSyncable) (*model.GroupSyncable, *model.AppError) + func (a *App) UpdateHashedPassword(user *model.User, newHashedPassword string) *model.AppError + func (a *App) UpdateHashedPasswordByUserId(userId, newHashedPassword string) *model.AppError + func (a *App) UpdateIncomingWebhook(oldHook, updatedHook *model.IncomingWebhook) (*model.IncomingWebhook, *model.AppError) + func (a *App) UpdateLastActivityAtIfNeeded(session model.Session) + func (a *App) UpdateMfa(activate bool, userId, token string) *model.AppError + func (a *App) UpdateMobileAppBadge(userId string) + func (a *App) UpdateOAuthUserAttrs(userData io.Reader, user *model.User, provider einterfaces.OauthProvider, ...) *model.AppError + func (a *App) UpdateOauthApp(oldApp, updatedApp *model.OAuthApp) (*model.OAuthApp, *model.AppError) + func (a *App) UpdateOutgoingWebhook(oldHook, updatedHook *model.OutgoingWebhook) (*model.OutgoingWebhook, *model.AppError) + func (a *App) UpdatePassword(user *model.User, newPassword string) *model.AppError + func (a *App) UpdatePasswordAsUser(userId, currentPassword, newPassword string) *model.AppError + func (a *App) UpdatePasswordByUserIdSendEmail(userId, newPassword, method string) *model.AppError + func (a *App) UpdatePasswordSendEmail(user *model.User, newPassword, method string) *model.AppError + func (a *App) UpdatePost(post *model.Post, safeUpdate bool) (*model.Post, *model.AppError) + func (a *App) UpdatePreferences(userId string, preferences model.Preferences) *model.AppError + func (a *App) UpdateProductNotices() *model.AppError + func (a *App) UpdateRole(role *model.Role) (*model.Role, *model.AppError) + func (a *App) UpdateScheme(scheme *model.Scheme) (*model.Scheme, *model.AppError) + func (a *App) UpdateSessionsIsGuest(userId string, isGuest bool) + func (a *App) UpdateSidebarCategories(userId, teamId string, categories []*model.SidebarCategoryWithChannels) ([]*model.SidebarCategoryWithChannels, *model.AppError) + func (a *App) UpdateSidebarCategoryOrder(userId, teamId string, categoryOrder []string) *model.AppError + func (a *App) UpdateTeam(team *model.Team) (*model.Team, *model.AppError) + func (a *App) UpdateTeamMemberRoles(teamId string, userId string, newRoles string) (*model.TeamMember, *model.AppError) + func (a *App) UpdateTeamMemberSchemeRoles(teamId string, userId string, isSchemeGuest bool, isSchemeUser bool, ...) (*model.TeamMember, *model.AppError) + func (a *App) UpdateTeamPrivacy(teamId string, teamType string, allowOpenInvite bool) *model.AppError + func (a *App) UpdateTeamScheme(team *model.Team) (*model.Team, *model.AppError) + func (a *App) UpdateThreadFollowForUser(userId, threadId string, state bool) *model.AppError + func (a *App) UpdateThreadReadForUser(userId, teamId, threadId string, timestamp int64) *model.AppError + func (a *App) UpdateThreadsReadForUser(userId, teamId string) *model.AppError + func (a *App) UpdateUser(user *model.User, sendNotifications bool) (*model.User, *model.AppError) + func (a *App) UpdateUserActive(userId string, active bool) *model.AppError + func (a *App) UpdateUserAsUser(user *model.User, asAdmin bool) (*model.User, *model.AppError) + func (a *App) UpdateUserAuth(userId string, userAuth *model.UserAuth) (*model.UserAuth, *model.AppError) + func (a *App) UpdateUserNotifyProps(userId string, props map[string]string) (*model.User, *model.AppError) + func (a *App) UpdateUserRoles(userId string, newRoles string, sendWebSocketEvent bool) (*model.User, *model.AppError) + func (a *App) UpdateViewedProductNotices(userId string, noticeIds []string) *model.AppError + func (a *App) UpdateViewedProductNoticesForNewUser(userId string) + func (a *App) UpdateWebConnUserActivity(session model.Session, activityAt int64) + func (a *App) UploadData(us *model.UploadSession, rd io.Reader) (*model.FileInfo, *model.AppError) + func (a *App) UploadEmojiImage(id string, imageData *multipart.FileHeader) *model.AppError + func (a *App) UploadFile(data []byte, channelId string, filename string) (*model.FileInfo, *model.AppError) + func (a *App) UploadFileX(channelId, name string, input io.Reader, opts ...func(*UploadFileTask)) (*model.FileInfo, *model.AppError) + func (a *App) UploadFiles(teamId string, channelId string, userId string, files []io.ReadCloser, ...) (*model.FileUploadResponse, *model.AppError) + func (a *App) UploadMultipartFiles(teamId string, channelId string, userId string, ...) (*model.FileUploadResponse, *model.AppError) + func (a *App) UpsertGroupMember(groupID string, userID string) (*model.GroupMember, *model.AppError) + func (a *App) UpsertGroupSyncable(groupSyncable *model.GroupSyncable) (*model.GroupSyncable, *model.AppError) + func (a *App) UserAgent() string + func (a *App) UserCanSeeOtherUser(userId string, otherUserId string) (bool, *model.AppError) + func (a *App) UserIsInAdminRoleGroup(userID, syncableID string, syncableType model.GroupSyncableType) (bool, *model.AppError) + func (a *App) VerifyEmailFromToken(userSuppliedTokenString string) *model.AppError + func (a *App) VerifyPlugin(plugin, signature io.ReadSeeker) *model.AppError + func (a *App) VerifyUserEmail(userId, email string) *model.AppError + func (a *App) ViewChannel(view *model.ChannelView, userId string, currentSessionId string) (map[string]int64, *model.AppError) + func (a *App) WaitForChannelMembership(channelId string, userId string) + func (a *App) WriteFile(fr io.Reader, path string) (int64, *model.AppError) + type AppIface interface + AcceptLanguage func() string + AccountMigration func() einterfaces.AccountMigrationInterface + ActivateMfa func(userId, token string) *model.AppError + AddChannelMember func(userId string, channel *model.Channel, userRequestorId string, ...) (*model.ChannelMember, *model.AppError) + AddConfigListener func(listener func(*model.Config, *model.Config)) string + AddCursorIdsForPostList func(originalList *model.PostList, afterPost, beforePost string, since int64, ...) + AddDirectChannels func(teamId string, user *model.User) *model.AppError + AddLdapPrivateCertificate func(fileData *multipart.FileHeader) *model.AppError + AddLdapPublicCertificate func(fileData *multipart.FileHeader) *model.AppError + AddPublicKey func(name string, key io.Reader) *model.AppError + AddSamlIdpCertificate func(fileData *multipart.FileHeader) *model.AppError + AddSamlPrivateCertificate func(fileData *multipart.FileHeader) *model.AppError + AddSamlPublicCertificate func(fileData *multipart.FileHeader) *model.AppError + AddSessionToCache func(session *model.Session) + AddStatusCache func(status *model.Status) + AddStatusCacheSkipClusterSend func(status *model.Status) + AddTeamMember func(teamId, userId string) (*model.TeamMember, *model.AppError) + AddTeamMemberByInviteId func(inviteId, userId string) (*model.TeamMember, *model.AppError) + AddTeamMemberByToken func(userId, tokenId string) (*model.TeamMember, *model.AppError) + AddTeamMembers func(teamId string, userIds []string, userRequestorId string, graceful bool) ([]*model.TeamMemberWithError, *model.AppError) + AddUserToChannel func(user *model.User, channel *model.Channel) (*model.ChannelMember, *model.AppError) + AddUserToTeam func(teamId string, userId string, userRequestorId string) (*model.Team, *model.AppError) + AddUserToTeamByInviteId func(inviteId string, userId string) (*model.Team, *model.AppError) + AddUserToTeamByTeamId func(teamId string, user *model.User) *model.AppError + AddUserToTeamByToken func(userId string, tokenId string) (*model.Team, *model.AppError) + AdjustImage func(file io.Reader) (*bytes.Buffer, *model.AppError) + AllowOAuthAppAccessToUser func(userId string, authRequest *model.AuthorizeRequest) (string, *model.AppError) + AppendFile func(fr io.Reader, path string) (int64, *model.AppError) + AsymmetricSigningKey func() *ecdsa.PrivateKey + AttachDeviceId func(sessionId string, deviceId string, expiresAt int64) *model.AppError + AttachSessionCookies func(w http.ResponseWriter, r *http.Request) + AuthenticateUserForLogin func(id, loginId, password, mfaToken, cwsToken string, ldapOnly bool) (user *model.User, err *model.AppError) + AuthorizeOAuthUser func(w http.ResponseWriter, r *http.Request, ...) (io.ReadCloser, string, map[string]string, *model.User, *model.AppError) + AutocompleteChannels func(teamId string, term string) (*model.ChannelList, *model.AppError) + AutocompleteChannelsForSearch func(teamId string, userId string, term string) (*model.ChannelList, *model.AppError) + AutocompleteUsersInChannel func(teamId string, channelId string, term string, options *model.UserSearchOptions) (*model.UserAutocompleteInChannel, *model.AppError) + AutocompleteUsersInTeam func(teamId string, term string, options *model.UserSearchOptions) (*model.UserAutocompleteInTeam, *model.AppError) + BroadcastStatus func(status *model.Status) + BuildPostReactions func(postId string) (*[]ReactionImportData, *model.AppError) + BuildPushNotificationMessage func(contentsConfig string, post *model.Post, user *model.User, ...) (*model.PushNotification, *model.AppError) + BuildSamlMetadataObject func(idpMetadata []byte) (*model.SamlMetadataResponse, *model.AppError) + BulkExport func(writer io.Writer, file string, pathToEmojiDir string, ...) *model.AppError + BulkImport func(fileReader io.Reader, dryRun bool, workers int) (*model.AppError, int) + BulkImportWithPath func(fileReader io.Reader, dryRun bool, workers int, importPath string) (*model.AppError, int) + CancelJob func(jobId string) *model.AppError + ChannelMembersMinusGroupMembers func(channelID string, groupIDs []string, page, perPage int) ([]*model.UserWithGroups, int64, *model.AppError) + ChannelMembersToAdd func(since int64, channelID *string) ([]*model.UserChannelIDPair, *model.AppError) + ChannelMembersToRemove func(teamID *string) ([]*model.ChannelMember, *model.AppError) + CheckAndSendUserLimitWarningEmails func() *model.AppError + CheckForClientSideCert func(r *http.Request) (string, string, string) + CheckMandatoryS3Fields func(settings *model.FileSettings) *model.AppError + CheckPasswordAndAllCriteria func(user *model.User, password string, mfaToken string) *model.AppError + CheckRolesExist func(roleNames []string) *model.AppError + CheckUserAllAuthenticationCriteria func(user *model.User, mfaToken string) *model.AppError + CheckUserMfa func(user *model.User, token string) *model.AppError + CheckUserPostflightAuthenticationCriteria func(user *model.User) *model.AppError + CheckUserPreflightAuthenticationCriteria func(user *model.User, mfaToken string) *model.AppError + CheckValidDomains func(team *model.Team) *model.AppError + ClearChannelMembersCache func(channelID string) + ClearSessionCacheForAllUsers func() + ClearSessionCacheForAllUsersSkipClusterSend func() + ClearSessionCacheForUser func(userId string) + ClearSessionCacheForUserSkipClusterSend func(userId string) + ClearTeamMembersCache func(teamID string) + ClientConfig func() map[string]string + ClientConfigHash func() string + ClientConfigWithComputed func() map[string]string + Cloud func() einterfaces.CloudInterface + Cluster func() einterfaces.ClusterInterface + CompareAndDeletePluginKey func(pluginId string, key string, oldValue []byte) (bool, *model.AppError) + CompareAndSetPluginKey func(pluginId string, key string, oldValue, newValue []byte) (bool, *model.AppError) + CompleteOAuth func(service string, body io.ReadCloser, teamId string, props map[string]string, ...) (*model.User, *model.AppError) + CompleteSwitchWithOAuth func(service string, userData io.Reader, email string, tokenUser *model.User) (*model.User, *model.AppError) + Compliance func() einterfaces.ComplianceInterface + Config func() *model.Config + Context func() context.Context + ConvertBotToUser func(bot *model.Bot, userPatch *model.UserPatch, sysadmin bool) (*model.User, *model.AppError) + ConvertUserToBot func(user *model.User) (*model.Bot, *model.AppError) + CopyFileInfos func(userId string, fileIds []string) ([]string, *model.AppError) + CreateBot func(bot *model.Bot) (*model.Bot, *model.AppError) + CreateChannel func(channel *model.Channel, addMember bool) (*model.Channel, *model.AppError) + CreateChannelScheme func(channel *model.Channel) (*model.Scheme, *model.AppError) + CreateChannelWithUser func(channel *model.Channel, userId string) (*model.Channel, *model.AppError) + CreateCommand func(cmd *model.Command) (*model.Command, *model.AppError) + CreateCommandPost func(post *model.Post, teamId string, response *model.CommandResponse, ...) (*model.Post, *model.AppError) + CreateCommandWebhook func(commandId string, args *model.CommandArgs) (*model.CommandWebhook, *model.AppError) + CreateDefaultChannels func(teamID string) ([]*model.Channel, *model.AppError) + CreateDefaultMemberships func(since int64) error + CreateEmoji func(sessionUserId string, emoji *model.Emoji, multiPartImageData *multipart.Form) (*model.Emoji, *model.AppError) + CreateGroup func(group *model.Group) (*model.Group, *model.AppError) + CreateGroupChannel func(userIds []string, creatorId string) (*model.Channel, *model.AppError) + CreateGuest func(user *model.User) (*model.User, *model.AppError) + CreateIncomingWebhookForChannel func(creatorId string, channel *model.Channel, hook *model.IncomingWebhook) (*model.IncomingWebhook, *model.AppError) + CreateJob func(job *model.Job) (*model.Job, *model.AppError) + CreateOAuthApp func(app *model.OAuthApp) (*model.OAuthApp, *model.AppError) + CreateOAuthStateToken func(extra string) (*model.Token, *model.AppError) + CreateOAuthUser func(service string, userData io.Reader, teamId string, tokenUser *model.User) (*model.User, *model.AppError) + CreateOutgoingWebhook func(hook *model.OutgoingWebhook) (*model.OutgoingWebhook, *model.AppError) + CreatePasswordRecoveryToken func(userId, email string) (*model.Token, *model.AppError) + CreatePost func(post *model.Post, channel *model.Channel, triggerWebhooks, setOnline bool) (savedPost *model.Post, err *model.AppError) + CreatePostAsUser func(post *model.Post, currentSessionId string, setOnline bool) (*model.Post, *model.AppError) + CreatePostMissingChannel func(post *model.Post, triggerWebhooks bool) (*model.Post, *model.AppError) + CreateRole func(role *model.Role) (*model.Role, *model.AppError) + CreateScheme func(scheme *model.Scheme) (*model.Scheme, *model.AppError) + CreateSession func(session *model.Session) (*model.Session, *model.AppError) + CreateSidebarCategory func(userId, teamId string, newCategory *model.SidebarCategoryWithChannels) (*model.SidebarCategoryWithChannels, *model.AppError) + CreateTeam func(team *model.Team) (*model.Team, *model.AppError) + CreateTeamWithUser func(team *model.Team, userId string) (*model.Team, *model.AppError) + CreateTermsOfService func(text, userId string) (*model.TermsOfService, *model.AppError) + CreateUploadSession func(us *model.UploadSession) (*model.UploadSession, *model.AppError) + CreateUser func(user *model.User) (*model.User, *model.AppError) + CreateUserAccessToken func(token *model.UserAccessToken) (*model.UserAccessToken, *model.AppError) + CreateUserAsAdmin func(user *model.User, redirect string) (*model.User, *model.AppError) + CreateUserFromSignup func(user *model.User, redirect string) (*model.User, *model.AppError) + CreateUserWithInviteId func(user *model.User, inviteId, redirect string) (*model.User, *model.AppError) + CreateUserWithToken func(user *model.User, token *model.Token) (*model.User, *model.AppError) + CreateWebhookPost func(userId string, channel *model.Channel, ...) (*model.Post, *model.AppError) + DBHealthCheckDelete func() error + DBHealthCheckWrite func() error + DataRetention func() einterfaces.DataRetentionInterface + DeactivateGuests func() *model.AppError + DeactivateMfa func(userId string) *model.AppError + DeauthorizeOAuthAppForUser func(userId, appId string) *model.AppError + DefaultChannelNames func() []string + DeleteAllExpiredPluginKeys func() *model.AppError + DeleteAllKeysForPlugin func(pluginId string) *model.AppError + DeleteBotIconImage func(botUserId string) *model.AppError + DeleteBrandImage func() *model.AppError + DeleteChannel func(channel *model.Channel, userId string) *model.AppError + DeleteChannelScheme func(channel *model.Channel) (*model.Channel, *model.AppError) + DeleteCommand func(commandId string) *model.AppError + DeleteEmoji func(emoji *model.Emoji) *model.AppError + DeleteEphemeralPost func(userId, postId string) + DeleteFlaggedPosts func(postId string) + DeleteGroup func(groupID string) (*model.Group, *model.AppError) + DeleteGroupConstrainedMemberships func() error + DeleteGroupMember func(groupID string, userID string) (*model.GroupMember, *model.AppError) + DeleteGroupSyncable func(groupID string, syncableID string, syncableType model.GroupSyncableType) (*model.GroupSyncable, *model.AppError) + DeleteIncomingWebhook func(hookId string) *model.AppError + DeleteOAuthApp func(appId string) *model.AppError + DeleteOutgoingWebhook func(hookId string) *model.AppError + DeletePluginKey func(pluginId string, key string) *model.AppError + DeletePost func(postId, deleteByID string) (*model.Post, *model.AppError) + DeletePostFiles func(post *model.Post) + DeletePreferences func(userId string, preferences model.Preferences) *model.AppError + DeletePublicKey func(name string) *model.AppError + DeleteReactionForPost func(reaction *model.Reaction) *model.AppError + DeleteScheme func(schemeId string) (*model.Scheme, *model.AppError) + DeleteSidebarCategory func(userId, teamId, categoryId string) *model.AppError + DeleteToken func(token *model.Token) *model.AppError + DemoteUserToGuest func(user *model.User) *model.AppError + DisableAutoResponder func(userId string, asAdmin bool) *model.AppError + DisablePlugin func(id string) *model.AppError + DisableUserAccessToken func(token *model.UserAccessToken) *model.AppError + DoActionRequest func(rawURL string, body []byte) (*http.Response, *model.AppError) + DoAdvancedPermissionsMigration func() + DoAppMigrations func() + DoCommandRequest func(cmd *model.Command, p url.Values) (*model.Command, *model.CommandResponse, *model.AppError) + DoEmojisPermissionsMigration func() + DoGuestRolesCreationMigration func() + DoLocalRequest func(rawURL string, body []byte) (*http.Response, *model.AppError) + DoLogin func(w http.ResponseWriter, r *http.Request, user *model.User, deviceId string, ...) *model.AppError + DoPermissionsMigrations func() error + DoPostAction func(postId, actionId, userId, selectedOption string) (string, *model.AppError) + DoPostActionWithCookie func(postId, actionId, userId, selectedOption string, ...) (string, *model.AppError) + DoSystemConsoleRolesCreationMigration func() + DoUploadFile func(now time.Time, rawTeamId string, rawChannelId string, rawUserId string, ...) (*model.FileInfo, *model.AppError) + DoUploadFileExpectModification func(now time.Time, rawTeamId string, rawChannelId string, rawUserId string, ...) (*model.FileInfo, []byte, *model.AppError) + DoubleCheckPassword func(user *model.User, password string) *model.AppError + DownloadFromURL func(downloadURL string) ([]byte, error) + EnablePlugin func(id string) *model.AppError + EnableUserAccessToken func(token *model.UserAccessToken) *model.AppError + EnvironmentConfig func() map[string]interface{} + ExecuteCommand func(args *model.CommandArgs) (*model.CommandResponse, *model.AppError) + ExportPermissions func(w io.Writer) error + ExtendSessionExpiryIfNeeded func(session *model.Session) bool + FetchSamlMetadataFromIdp func(url string) ([]byte, *model.AppError) + FileBackend func() (filesstore.FileBackend, *model.AppError) + FileExists func(path string) (bool, *model.AppError) + FileReader func(path string) (filesstore.ReadCloseSeeker, *model.AppError) + FileSize func(path string) (int64, *model.AppError) + FillInChannelProps func(channel *model.Channel) *model.AppError + FillInChannelsProps func(channelList *model.ChannelList) *model.AppError + FillInPostProps func(post *model.Post, channel *model.Channel) *model.AppError + FilterNonGroupChannelMembers func(userIds []string, channel *model.Channel) ([]string, error) + FilterNonGroupTeamMembers func(userIds []string, team *model.Team) ([]string, error) + FilterUsersByVisible func(viewer *model.User, otherUsers []*model.User) ([]*model.User, *model.AppError) + FindTeamByName func(name string) bool + GenerateMfaSecret func(userId string) (*model.MfaSecret, *model.AppError) + GeneratePublicLink func(siteURL string, info *model.FileInfo) string + GetActivePluginManifests func() ([]*model.Manifest, *model.AppError) + GetAllChannels func(page, perPage int, opts model.ChannelSearchOpts) (*model.ChannelListWithTeamData, *model.AppError) + GetAllChannelsCount func(opts model.ChannelSearchOpts) (int64, *model.AppError) + GetAllLdapGroupsPage func(page int, perPage int, opts model.LdapGroupSearchOpts) ([]*model.Group, int, *model.AppError) + GetAllPrivateTeams func() ([]*model.Team, *model.AppError) + GetAllPrivateTeamsPage func(offset int, limit int) ([]*model.Team, *model.AppError) + GetAllPrivateTeamsPageWithCount func(offset int, limit int) (*model.TeamsWithCount, *model.AppError) + GetAllPublicTeams func() ([]*model.Team, *model.AppError) + GetAllPublicTeamsPage func(offset int, limit int) ([]*model.Team, *model.AppError) + GetAllPublicTeamsPageWithCount func(offset int, limit int) (*model.TeamsWithCount, *model.AppError) + GetAllRoles func() ([]*model.Role, *model.AppError) + GetAllStatuses func() map[string]*model.Status + GetAllTeams func() ([]*model.Team, *model.AppError) + GetAllTeamsPage func(offset int, limit int) ([]*model.Team, *model.AppError) + GetAllTeamsPageWithCount func(offset int, limit int) (*model.TeamsWithCount, *model.AppError) + GetAnalytics func(name string, teamId string) (model.AnalyticsRows, *model.AppError) + GetAudits func(userId string, limit int) (model.Audits, *model.AppError) + GetAuditsPage func(userId string, page int, perPage int) (model.Audits, *model.AppError) + GetAuthorizationCode func(w http.ResponseWriter, r *http.Request, service string, ...) (string, *model.AppError) + GetAuthorizedAppsForUser func(userId string, page, perPage int) ([]*model.OAuthApp, *model.AppError) + GetBot func(botUserId string, includeDeleted bool) (*model.Bot, *model.AppError) + GetBotIconImage func(botUserId string) ([]byte, *model.AppError) + GetBots func(options *model.BotGetOptions) (model.BotList, *model.AppError) + GetBrandImage func() ([]byte, *model.AppError) + GetBulkReactionsForPosts func(postIds []string) (map[string][]*model.Reaction, *model.AppError) + GetChannel func(channelId string) (*model.Channel, *model.AppError) + GetChannelByName func(channelName, teamId string, includeDeleted bool) (*model.Channel, *model.AppError) + GetChannelByNameForTeamName func(channelName, teamName string, includeDeleted bool) (*model.Channel, *model.AppError) + GetChannelCounts func(teamId string, userId string) (*model.ChannelCounts, *model.AppError) + GetChannelGroupUsers func(channelID string) ([]*model.User, *model.AppError) + GetChannelGuestCount func(channelId string) (int64, *model.AppError) + GetChannelMember func(channelId string, userId string) (*model.ChannelMember, *model.AppError) + GetChannelMemberCount func(channelId string) (int64, *model.AppError) + GetChannelMembersByIds func(channelId string, userIds []string) (*model.ChannelMembers, *model.AppError) + GetChannelMembersForUser func(teamId string, userId string) (*model.ChannelMembers, *model.AppError) + GetChannelMembersForUserWithPagination func(teamId, userId string, page, perPage int) ([]*model.ChannelMember, *model.AppError) + GetChannelMembersPage func(channelId string, page, perPage int) (*model.ChannelMembers, *model.AppError) + GetChannelMembersTimezones func(channelId string) ([]string, *model.AppError) + GetChannelModerationsForChannel func(channel *model.Channel) ([]*model.ChannelModeration, *model.AppError) + GetChannelPinnedPostCount func(channelId string) (int64, *model.AppError) + GetChannelUnread func(channelId, userId string) (*model.ChannelUnread, *model.AppError) + GetChannelsByNames func(channelNames []string, teamId string) ([]*model.Channel, *model.AppError) + GetChannelsForScheme func(scheme *model.Scheme, offset int, limit int) (model.ChannelList, *model.AppError) + GetChannelsForSchemePage func(scheme *model.Scheme, page int, perPage int) (model.ChannelList, *model.AppError) + GetChannelsForUser func(teamId string, userId string, includeDeleted bool, lastDeleteAt int) (*model.ChannelList, *model.AppError) + GetChannelsUserNotIn func(teamId string, userId string, offset int, limit int) (*model.ChannelList, *model.AppError) + GetCloudSession func(token string) (*model.Session, *model.AppError) + GetClusterId func() string + GetClusterPluginStatuses func() (model.PluginStatuses, *model.AppError) + GetClusterStatus func() []*model.ClusterInfo + GetCommand func(commandId string) (*model.Command, *model.AppError) + GetComplianceFile func(job *model.Compliance) ([]byte, *model.AppError) + GetComplianceReport func(reportId string) (*model.Compliance, *model.AppError) + GetComplianceReports func(page, perPage int) (model.Compliances, *model.AppError) + GetConfigFile func(name string) ([]byte, error) + GetCookieDomain func() string + GetDataRetentionPolicy func() (*model.DataRetentionPolicy, *model.AppError) + GetDefaultProfileImage func(user *model.User) ([]byte, *model.AppError) + GetDeletedChannels func(teamId string, offset int, limit int, userId string) (*model.ChannelList, *model.AppError) + GetEmoji func(emojiId string) (*model.Emoji, *model.AppError) + GetEmojiByName func(emojiName string) (*model.Emoji, *model.AppError) + GetEmojiImage func(emojiId string) ([]byte, string, *model.AppError) + GetEmojiList func(page, perPage int, sort string) ([]*model.Emoji, *model.AppError) + GetEmojiStaticUrl func(emojiName string) (string, *model.AppError) + GetEnvironmentConfig func() map[string]interface{} + GetErrorListForEmailsOverLimit func(emailList []string, cloudUserLimit int64) ([]string, []*model.EmailInviteWithError, *model.AppError) + GetFile func(fileId string) ([]byte, *model.AppError) + GetFileInfo func(fileId string) (*model.FileInfo, *model.AppError) + GetFileInfos func(page, perPage int, opt *model.GetFileInfosOptions) ([]*model.FileInfo, *model.AppError) + GetFileInfosForPost func(postId string, fromMaster bool) ([]*model.FileInfo, *model.AppError) + GetFileInfosForPostWithMigration func(postId string) ([]*model.FileInfo, *model.AppError) + GetFilteredUsersStats func(options *model.UserCountOptions) (*model.UsersStats, *model.AppError) + GetFlaggedPosts func(userId string, offset int, limit int) (*model.PostList, *model.AppError) + GetFlaggedPostsForChannel func(userId, channelId string, offset int, limit int) (*model.PostList, *model.AppError) + GetFlaggedPostsForTeam func(userId, teamId string, offset int, limit int) (*model.PostList, *model.AppError) + GetGroup func(id string) (*model.Group, *model.AppError) + GetGroupByName func(name string, opts model.GroupSearchOpts) (*model.Group, *model.AppError) + GetGroupByRemoteID func(remoteID string, groupSource model.GroupSource) (*model.Group, *model.AppError) + GetGroupChannel func(userIds []string) (*model.Channel, *model.AppError) + GetGroupMemberCount func(groupID string) (int64, *model.AppError) + GetGroupMemberUsers func(groupID string) ([]*model.User, *model.AppError) + GetGroupMemberUsersPage func(groupID string, page int, perPage int) ([]*model.User, int, *model.AppError) + GetGroupSyncable func(groupID string, syncableID string, syncableType model.GroupSyncableType) (*model.GroupSyncable, *model.AppError) + GetGroupSyncables func(groupID string, syncableType model.GroupSyncableType) ([]*model.GroupSyncable, *model.AppError) + GetGroups func(page, perPage int, opts model.GroupSearchOpts) ([]*model.Group, *model.AppError) + GetGroupsAssociatedToChannelsByTeam func(teamId string, opts model.GroupSearchOpts) (map[string][]*model.GroupWithSchemeAdmin, *model.AppError) + GetGroupsByChannel func(channelId string, opts model.GroupSearchOpts) ([]*model.GroupWithSchemeAdmin, int, *model.AppError) + GetGroupsByIDs func(groupIDs []string) ([]*model.Group, *model.AppError) + GetGroupsBySource func(groupSource model.GroupSource) ([]*model.Group, *model.AppError) + GetGroupsByTeam func(teamId string, opts model.GroupSearchOpts) ([]*model.GroupWithSchemeAdmin, int, *model.AppError) + GetGroupsByUserId func(userId string) ([]*model.Group, *model.AppError) + GetHubForUserId func(userId string) *Hub + GetIncomingWebhook func(hookId string) (*model.IncomingWebhook, *model.AppError) + GetIncomingWebhooksForTeamPage func(teamId string, page, perPage int) ([]*model.IncomingWebhook, *model.AppError) + GetIncomingWebhooksForTeamPageByUser func(teamId string, userId string, page, perPage int) ([]*model.IncomingWebhook, *model.AppError) + GetIncomingWebhooksPage func(page, perPage int) ([]*model.IncomingWebhook, *model.AppError) + GetIncomingWebhooksPageByUser func(userId string, page, perPage int) ([]*model.IncomingWebhook, *model.AppError) + GetJob func(id string) (*model.Job, *model.AppError) + GetJobs func(offset int, limit int) ([]*model.Job, *model.AppError) + GetJobsByType func(jobType string, offset int, limit int) ([]*model.Job, *model.AppError) + GetJobsByTypePage func(jobType string, page int, perPage int) ([]*model.Job, *model.AppError) + GetJobsPage func(page int, perPage int) ([]*model.Job, *model.AppError) + GetKnownUsers func(userID string) ([]string, *model.AppError) + GetLatestTermsOfService func() (*model.TermsOfService, *model.AppError) + GetLdapGroup func(ldapGroupID string) (*model.Group, *model.AppError) + GetLogs func(page, perPage int) ([]string, *model.AppError) + GetLogsSkipSend func(page, perPage int) ([]string, *model.AppError) + GetMarketplacePlugins func(filter *model.MarketplacePluginFilter) ([]*model.MarketplacePlugin, *model.AppError) + GetMemberCountsByGroup func(channelID string, includeTimezones bool) ([]*model.ChannelMemberCountByGroup, *model.AppError) + GetMessageForNotification func(post *model.Post, translateFunc i18n.TranslateFunc) string + GetMultipleEmojiByName func(names []string) ([]*model.Emoji, *model.AppError) + GetNewUsersForTeamPage func(teamId string, page, perPage int, asAdmin bool, ...) ([]*model.User, *model.AppError) + GetNextPostIdFromPostList func(postList *model.PostList) string + GetNotificationNameFormat func(user *model.User) string + GetNumberOfChannelsOnTeam func(teamId string) (int, *model.AppError) + GetOAuthAccessTokenForCodeFlow func(clientId, grantType, redirectUri, code, secret, refreshToken string) (*model.AccessResponse, *model.AppError) + GetOAuthAccessTokenForImplicitFlow func(userId string, authRequest *model.AuthorizeRequest) (*model.Session, *model.AppError) + GetOAuthApp func(appId string) (*model.OAuthApp, *model.AppError) + GetOAuthApps func(page, perPage int) ([]*model.OAuthApp, *model.AppError) + GetOAuthAppsByCreator func(userId string, page, perPage int) ([]*model.OAuthApp, *model.AppError) + GetOAuthCodeRedirect func(userId string, authRequest *model.AuthorizeRequest) (string, *model.AppError) + GetOAuthImplicitRedirect func(userId string, authRequest *model.AuthorizeRequest) (string, *model.AppError) + GetOAuthLoginEndpoint func(w http.ResponseWriter, r *http.Request, ...) (string, *model.AppError) + GetOAuthSignupEndpoint func(w http.ResponseWriter, r *http.Request, service, teamId string) (string, *model.AppError) + GetOAuthStateToken func(token string) (*model.Token, *model.AppError) + GetOpenGraphMetadata func(requestURL string) *opengraph.OpenGraph + GetOrCreateDirectChannel func(userId, otherUserId string) (*model.Channel, *model.AppError) + GetOutgoingWebhook func(hookId string) (*model.OutgoingWebhook, *model.AppError) + GetOutgoingWebhooksForChannelPageByUser func(channelId string, userId string, page, perPage int) ([]*model.OutgoingWebhook, *model.AppError) + GetOutgoingWebhooksForTeamPage func(teamId string, page, perPage int) ([]*model.OutgoingWebhook, *model.AppError) + GetOutgoingWebhooksForTeamPageByUser func(teamId string, userId string, page, perPage int) ([]*model.OutgoingWebhook, *model.AppError) + GetOutgoingWebhooksPage func(page, perPage int) ([]*model.OutgoingWebhook, *model.AppError) + GetOutgoingWebhooksPageByUser func(userId string, page, perPage int) ([]*model.OutgoingWebhook, *model.AppError) + GetPasswordRecoveryToken func(token string) (*model.Token, *model.AppError) + GetPermalinkPost func(postId string, userId string) (*model.PostList, *model.AppError) + GetPinnedPosts func(channelId string) (*model.PostList, *model.AppError) + GetPluginKey func(pluginId string, key string) ([]byte, *model.AppError) + GetPluginPublicKeyFiles func() ([]string, *model.AppError) + GetPluginStatus func(id string) (*model.PluginStatus, *model.AppError) + GetPluginStatuses func() (model.PluginStatuses, *model.AppError) + GetPlugins func() (*model.PluginsResponse, *model.AppError) + GetPluginsEnvironment func() *plugin.Environment + GetPostAfterTime func(channelId string, time int64) (*model.Post, *model.AppError) + GetPostIdAfterTime func(channelId string, time int64) (string, *model.AppError) + GetPostIdBeforeTime func(channelId string, time int64) (string, *model.AppError) + GetPostThread func(postId string, skipFetchThreads bool) (*model.PostList, *model.AppError) + GetPosts func(channelId string, offset int, limit int) (*model.PostList, *model.AppError) + GetPostsAfterPost func(options model.GetPostsOptions) (*model.PostList, *model.AppError) + GetPostsAroundPost func(before bool, options model.GetPostsOptions) (*model.PostList, *model.AppError) + GetPostsBeforePost func(options model.GetPostsOptions) (*model.PostList, *model.AppError) + GetPostsEtag func(channelId string) string + GetPostsForChannelAroundLastUnread func(channelId, userId string, limitBefore, limitAfter int, skipFetchThreads bool) (*model.PostList, *model.AppError) + GetPostsPage func(options model.GetPostsOptions) (*model.PostList, *model.AppError) + GetPostsSince func(options model.GetPostsSinceOptions) (*model.PostList, *model.AppError) + GetPreferenceByCategoryAndNameForUser func(userId string, category string, preferenceName string) (*model.Preference, *model.AppError) + GetPreferenceByCategoryForUser func(userId string, category string) (model.Preferences, *model.AppError) + GetPreferencesForUser func(userId string) (model.Preferences, *model.AppError) + GetPrevPostIdFromPostList func(postList *model.PostList) string + GetPrivateChannelsForTeam func(teamId string, offset int, limit int) (*model.ChannelList, *model.AppError) + GetProductNotices func(userId, teamId string, client model.NoticeClientType, clientVersion string, ...) (model.NoticeMessages, *model.AppError) + GetProfileImage func(user *model.User) ([]byte, bool, *model.AppError) + GetPublicChannelsByIdsForTeam func(teamId string, channelIds []string) (*model.ChannelList, *model.AppError) + GetPublicChannelsForTeam func(teamId string, offset int, limit int) (*model.ChannelList, *model.AppError) + GetPublicKey func(name string) ([]byte, *model.AppError) + GetReactionsForPost func(postId string) ([]*model.Reaction, *model.AppError) + GetRecentlyActiveUsersForTeam func(teamId string) (map[string]*model.User, *model.AppError) + GetRecentlyActiveUsersForTeamPage func(teamId string, page, perPage int, asAdmin bool, ...) ([]*model.User, *model.AppError) + GetRole func(id string) (*model.Role, *model.AppError) + GetRoleByName func(name string) (*model.Role, *model.AppError) + GetRolesByNames func(names []string) ([]*model.Role, *model.AppError) + GetSamlCertificateStatus func() *model.SamlCertificateStatus + GetSamlMetadata func() (string, *model.AppError) + GetSamlMetadataFromIdp func(idpMetadataUrl string) (*model.SamlMetadataResponse, *model.AppError) + GetSanitizeOptions func(asAdmin bool) map[string]bool + GetSanitizedConfig func() *model.Config + GetScheme func(id string) (*model.Scheme, *model.AppError) + GetSchemeByName func(name string) (*model.Scheme, *model.AppError) + GetSchemeRolesForChannel func(channelId string) (guestRoleName string, userRoleName string, adminRoleName string, ...) + GetSchemeRolesForTeam func(teamId string) (string, string, string, *model.AppError) + GetSchemes func(scope string, offset int, limit int) ([]*model.Scheme, *model.AppError) + GetSchemesPage func(scope string, page int, perPage int) ([]*model.Scheme, *model.AppError) + GetSession func(token string) (*model.Session, *model.AppError) + GetSessionById func(sessionId string) (*model.Session, *model.AppError) + GetSessionLengthInMillis func(session *model.Session) int64 + GetSessions func(userId string) ([]*model.Session, *model.AppError) + GetSidebarCategories func(userId, teamId string) (*model.OrderedSidebarCategories, *model.AppError) + GetSidebarCategory func(categoryId string) (*model.SidebarCategoryWithChannels, *model.AppError) + GetSidebarCategoryOrder func(userId, teamId string) ([]string, *model.AppError) + GetSinglePost func(postId string) (*model.Post, *model.AppError) + GetSiteURL func() string + GetStatus func(userId string) (*model.Status, *model.AppError) + GetStatusFromCache func(userId string) *model.Status + GetStatusesByIds func(userIds []string) (map[string]interface{}, *model.AppError) + GetSuggestions func(commandArgs *model.CommandArgs, commands []*model.Command, roleID string) []model.AutocompleteSuggestion + GetT func() goi18n.TranslateFunc + GetTeam func(teamId string) (*model.Team, *model.AppError) + GetTeamByInviteId func(inviteId string) (*model.Team, *model.AppError) + GetTeamByName func(name string) (*model.Team, *model.AppError) + GetTeamGroupUsers func(teamID string) ([]*model.User, *model.AppError) + GetTeamIcon func(team *model.Team) ([]byte, *model.AppError) + GetTeamIdFromQuery func(query url.Values) (string, *model.AppError) + GetTeamMember func(teamId, userId string) (*model.TeamMember, *model.AppError) + GetTeamMembers func(teamId string, offset int, limit int, ...) ([]*model.TeamMember, *model.AppError) + GetTeamMembersByIds func(teamId string, userIds []string, restrictions *model.ViewUsersRestrictions) ([]*model.TeamMember, *model.AppError) + GetTeamMembersForUser func(userId string) ([]*model.TeamMember, *model.AppError) + GetTeamMembersForUserWithPagination func(userId string, page, perPage int) ([]*model.TeamMember, *model.AppError) + GetTeamSchemeChannelRoles func(teamId string) (guestRoleName string, userRoleName string, adminRoleName string, ...) + GetTeamStats func(teamId string, restrictions *model.ViewUsersRestrictions) (*model.TeamStats, *model.AppError) + GetTeamUnread func(teamId, userId string) (*model.TeamUnread, *model.AppError) + GetTeamsForScheme func(scheme *model.Scheme, offset int, limit int) ([]*model.Team, *model.AppError) + GetTeamsForSchemePage func(scheme *model.Scheme, page int, perPage int) ([]*model.Team, *model.AppError) + GetTeamsForUser func(userId string) ([]*model.Team, *model.AppError) + GetTeamsUnreadForUser func(excludeTeamId string, userId string) ([]*model.TeamUnread, *model.AppError) + GetTermsOfService func(id string) (*model.TermsOfService, *model.AppError) + GetThreadMembershipsForUser func(userId, teamId string) ([]*model.ThreadMembership, error) + GetThreadsForUser func(userId, teamId string, options model.GetUserThreadsOpts) (*model.Threads, *model.AppError) + GetTotalUsersStats func(viewRestrictions *model.ViewUsersRestrictions) (*model.UsersStats, *model.AppError) + GetUploadSession func(uploadId string) (*model.UploadSession, *model.AppError) + GetUploadSessionsForUser func(userId string) ([]*model.UploadSession, *model.AppError) + GetUser func(userId string) (*model.User, *model.AppError) + GetUserAccessToken func(tokenId string, sanitize bool) (*model.UserAccessToken, *model.AppError) + GetUserAccessTokens func(page, perPage int) ([]*model.UserAccessToken, *model.AppError) + GetUserAccessTokensForUser func(userId string, page, perPage int) ([]*model.UserAccessToken, *model.AppError) + GetUserByAuth func(authData *string, authService string) (*model.User, *model.AppError) + GetUserByEmail func(email string) (*model.User, *model.AppError) + GetUserByUsername func(username string) (*model.User, *model.AppError) + GetUserForLogin func(id, loginId string) (*model.User, *model.AppError) + GetUserStatusesByIds func(userIds []string) ([]*model.Status, *model.AppError) + GetUserTermsOfService func(userId string) (*model.UserTermsOfService, *model.AppError) + GetUsers func(options *model.UserGetOptions) ([]*model.User, *model.AppError) + GetUsersByGroupChannelIds func(channelIds []string, asAdmin bool) (map[string][]*model.User, *model.AppError) + GetUsersByIds func(userIds []string, options *store.UserGetByIdsOpts) ([]*model.User, *model.AppError) + GetUsersByUsernames func(usernames []string, asAdmin bool, ...) ([]*model.User, *model.AppError) + GetUsersEtag func(restrictionsHash string) string + GetUsersInChannel func(options *model.UserGetOptions) ([]*model.User, *model.AppError) + GetUsersInChannelByStatus func(options *model.UserGetOptions) ([]*model.User, *model.AppError) + GetUsersInChannelMap func(options *model.UserGetOptions, asAdmin bool) (map[string]*model.User, *model.AppError) + GetUsersInChannelPage func(options *model.UserGetOptions, asAdmin bool) ([]*model.User, *model.AppError) + GetUsersInChannelPageByStatus func(options *model.UserGetOptions, asAdmin bool) ([]*model.User, *model.AppError) + GetUsersInTeam func(options *model.UserGetOptions) ([]*model.User, *model.AppError) + GetUsersInTeamEtag func(teamId string, restrictionsHash string) string + GetUsersInTeamPage func(options *model.UserGetOptions, asAdmin bool) ([]*model.User, *model.AppError) + GetUsersNotInChannel func(teamId string, channelId string, groupConstrained bool, offset int, limit int, ...) ([]*model.User, *model.AppError) + GetUsersNotInChannelMap func(teamId string, channelId string, groupConstrained bool, offset int, limit int, ...) (map[string]*model.User, *model.AppError) + GetUsersNotInChannelPage func(teamId string, channelId string, groupConstrained bool, page int, perPage int, ...) ([]*model.User, *model.AppError) + GetUsersNotInTeam func(teamId string, groupConstrained bool, offset int, limit int, ...) ([]*model.User, *model.AppError) + GetUsersNotInTeamEtag func(teamId string, restrictionsHash string) string + GetUsersNotInTeamPage func(teamId string, groupConstrained bool, page int, perPage int, asAdmin bool, ...) ([]*model.User, *model.AppError) + GetUsersPage func(options *model.UserGetOptions, asAdmin bool) ([]*model.User, *model.AppError) + GetUsersWithoutTeam func(options *model.UserGetOptions) ([]*model.User, *model.AppError) + GetUsersWithoutTeamPage func(options *model.UserGetOptions, asAdmin bool) ([]*model.User, *model.AppError) + GetVerifyEmailToken func(token string) (*model.Token, *model.AppError) + GetViewUsersRestrictions func(userId string) (*model.ViewUsersRestrictions, *model.AppError) + GetWarnMetricsStatus func() (map[string]*model.WarnMetricStatus, *model.AppError) + HTTPService func() httpservice.HTTPService + Handle404 func(w http.ResponseWriter, r *http.Request) + HandleCommandResponse func(command *model.Command, args *model.CommandArgs, ...) (*model.CommandResponse, *model.AppError) + HandleCommandResponsePost func(command *model.Command, args *model.CommandArgs, ...) (*model.Post, *model.AppError) + HandleCommandWebhook func(hookId string, response *model.CommandResponse) *model.AppError + HandleImages func(previewPathList []string, thumbnailPathList []string, fileData [][]byte) + HandleIncomingWebhook func(hookId string, req *model.IncomingWebhookRequest) *model.AppError + HandleMessageExportConfig func(cfg *model.Config, appCfg *model.Config) + HasPermissionTo func(askingUserId string, permission *model.Permission) bool + HasPermissionToChannel func(askingUserId string, channelId string, permission *model.Permission) bool + HasPermissionToChannelByPost func(askingUserId string, postId string, permission *model.Permission) bool + HasPermissionToTeam func(askingUserId string, teamId string, permission *model.Permission) bool + HasPermissionToUser func(askingUserId string, userId string) bool + HubRegister func(webConn *WebConn) + HubStart func() + HubStop func() + HubUnregister func(webConn *WebConn) + ImageProxy func() *imageproxy.ImageProxy + ImageProxyAdder func() func(string) string + ImageProxyRemover func() (f func(string) string) + ImportPermissions func(jsonl io.Reader) error + InitPlugins func(pluginDir, webappPluginDir string) + InitPostMetadata func() + InitServer func() + InstallMarketplacePlugin func(request *model.InstallMarketplacePluginRequest) (*model.Manifest, *model.AppError) + InstallPlugin func(pluginFile io.ReadSeeker, replace bool) (*model.Manifest, *model.AppError) + InstallPluginFromData func(data model.PluginEventData) + InstallPluginWithSignature func(pluginFile, signature io.ReadSeeker) (*model.Manifest, *model.AppError) + InvalidateAllEmailInvites func() *model.AppError + InvalidateCacheForUser func(userId string) + InvalidateWebConnSessionCacheForUser func(userId string) + InviteGuestsToChannels func(teamId string, guestsInvite *model.GuestsInvite, senderId string) *model.AppError + InviteGuestsToChannelsGracefully func(teamId string, guestsInvite *model.GuestsInvite, senderId string) ([]*model.EmailInviteWithError, *model.AppError) + InviteNewUsersToTeam func(emailList []string, teamId, senderId string) *model.AppError + InviteNewUsersToTeamGracefully func(emailList []string, teamId, senderId string) ([]*model.EmailInviteWithError, *model.AppError) + IpAddress func() string + IsFirstUserAccount func() bool + IsLeader func() bool + IsPasswordValid func(password string) *model.AppError + IsPhase2MigrationCompleted func() *model.AppError + IsUserAway func(lastActivityAt int64) bool + IsUserSignUpAllowed func() *model.AppError + IsUsernameTaken func(name string) bool + JoinChannel func(channel *model.Channel, userId string) *model.AppError + JoinDefaultChannels func(teamId string, user *model.User, shouldBeAdmin bool, userRequestorId string) *model.AppError + JoinUserToTeam func(team *model.Team, user *model.User, userRequestorId string) *model.AppError + Ldap func() einterfaces.LdapInterface + LeaveChannel func(channelId string, userId string) *model.AppError + LeaveTeam func(team *model.Team, user *model.User, requestorId string) *model.AppError + LimitedClientConfig func() map[string]string + LimitedClientConfigWithComputed func() map[string]string + ListAllCommands func(teamId string, T goi18n.TranslateFunc) ([]*model.Command, *model.AppError) + ListAutocompleteCommands func(teamId string, T goi18n.TranslateFunc) ([]*model.Command, *model.AppError) + ListDirectory func(path string) ([]string, *model.AppError) + ListImports func() ([]string, *model.AppError) + ListPluginKeys func(pluginId string, page, perPage int) ([]string, *model.AppError) + ListTeamCommands func(teamId string) ([]*model.Command, *model.AppError) + Log func() *mlog.Logger + LogAuditRec func(rec *audit.Record, err error) + LogAuditRecWithLevel func(rec *audit.Record, level mlog.LogLevel, err error) + LoginByOAuth func(service string, userData io.Reader, teamId string, tokenUser *model.User) (*model.User, *model.AppError) + MakeAuditRecord func(event string, initialStatus string) *audit.Record + MakePermissionError func(permissions []*model.Permission) *model.AppError + MarkChannelAsUnreadFromPost func(postID string, userID string) (*model.ChannelUnreadAt, *model.AppError) + MarkChannelsAsViewed func(channelIds []string, userId string, currentSessionId string) (map[string]int64, *model.AppError) + MaxPostSize func() int + MentionsToPublicChannels func(message, teamId string) model.ChannelMentionMap + MentionsToTeamMembers func(message, teamId string) model.UserMentionMap + MessageExport func() einterfaces.MessageExportInterface + Metrics func() einterfaces.MetricsInterface + MigrateFilenamesToFileInfos func(post *model.Post) []*model.FileInfo + MigrateIdLDAP func(toAttribute string) *model.AppError + MoveChannel func(team *model.Team, channel *model.Channel, user *model.User) *model.AppError + MoveCommand func(team *model.Team, command *model.Command) *model.AppError + MoveFile func(oldPath, newPath string) *model.AppError + NewClusterDiscoveryService func() *ClusterDiscoveryService + NewPluginAPI func(manifest *model.Manifest) plugin.API + NewWebConn func(ws *websocket.Conn, session model.Session, t goi18n.TranslateFunc, ...) *WebConn + NewWebHub func() *Hub + Notification func() einterfaces.NotificationInterface + NotificationsLog func() *mlog.Logger + NotifyAndSetWarnMetricAck func(warnMetricId string, sender *model.User, forceAck bool, isBot bool) *model.AppError + NotifySessionsExpired func() *model.AppError + OpenInteractiveDialog func(request model.OpenDialogRequest) *model.AppError + OriginChecker func() func(*http.Request) bool + OverrideIconURLIfEmoji func(post *model.Post) + PatchBot func(botUserId string, botPatch *model.BotPatch) (*model.Bot, *model.AppError) + PatchChannel func(channel *model.Channel, patch *model.ChannelPatch, userId string) (*model.Channel, *model.AppError) + PatchChannelModerationsForChannel func(channel *model.Channel, ...) ([]*model.ChannelModeration, *model.AppError) + PatchPost func(postId string, patch *model.PostPatch) (*model.Post, *model.AppError) + PatchRole func(role *model.Role, patch *model.RolePatch) (*model.Role, *model.AppError) + PatchScheme func(scheme *model.Scheme, patch *model.SchemePatch) (*model.Scheme, *model.AppError) + PatchTeam func(teamId string, patch *model.TeamPatch) (*model.Team, *model.AppError) + PatchUser func(userId string, patch *model.UserPatch, asAdmin bool) (*model.User, *model.AppError) + Path func() string + PermanentDeleteAllUsers func() *model.AppError + PermanentDeleteBot func(botUserId string) *model.AppError + PermanentDeleteChannel func(channel *model.Channel) *model.AppError + PermanentDeleteTeam func(team *model.Team) *model.AppError + PermanentDeleteTeamId func(teamId string) *model.AppError + PermanentDeleteUser func(user *model.User) *model.AppError + PluginCommandsForTeam func(teamId string) []*model.Command + PluginContext func() *plugin.Context + PostActionCookieSecret func() []byte + PostAddToChannelMessage func(user *model.User, addedUser *model.User, channel *model.Channel, ...) *model.AppError + PostPatchWithProxyRemovedFromImageURLs func(patch *model.PostPatch) *model.PostPatch + PostUpdateChannelDisplayNameMessage func(userId string, channel *model.Channel, ...) *model.AppError + PostUpdateChannelHeaderMessage func(userId string, channel *model.Channel, ...) *model.AppError + PostUpdateChannelPurposeMessage func(userId string, channel *model.Channel, oldChannelPurpose string, ...) *model.AppError + PostWithProxyAddedToImageURLs func(post *model.Post) *model.Post + PostWithProxyRemovedFromImageURLs func(post *model.Post) *model.Post + PreparePostForClient func(originalPost *model.Post, isNewPost bool, isEditPost bool) *model.Post + PreparePostListForClient func(originalList *model.PostList) *model.PostList + ProcessSlackAttachments func(attachments []*model.SlackAttachment) []*model.SlackAttachment + ProcessSlackText func(text string) string + PromoteGuestToUser func(user *model.User, requestorId string) *model.AppError + Publish func(message *model.WebSocketEvent) + PublishSkipClusterSend func(message *model.WebSocketEvent) + PublishUserTyping func(userId, channelId, parentId string) *model.AppError + PurgeBleveIndexes func() *model.AppError + PurgeElasticsearchIndexes func() *model.AppError + ReadFile func(path string) ([]byte, *model.AppError) + RecycleDatabaseConnection func() + RegenCommandToken func(cmd *model.Command) (*model.Command, *model.AppError) + RegenOutgoingWebhookToken func(hook *model.OutgoingWebhook) (*model.OutgoingWebhook, *model.AppError) + RegenerateOAuthAppSecret func(app *model.OAuthApp) (*model.OAuthApp, *model.AppError) + RegenerateTeamInviteId func(teamId string) (*model.Team, *model.AppError) + RegisterPluginCommand func(pluginId string, command *model.Command) error + ReloadConfig func() error + RemoveAllDeactivatedMembersFromChannel func(channel *model.Channel) *model.AppError + RemoveConfigListener func(id string) + RemoveDirectory func(path string) *model.AppError + RemoveFile func(path string) *model.AppError + RemoveLdapPrivateCertificate func() *model.AppError + RemoveLdapPublicCertificate func() *model.AppError + RemovePlugin func(id string) *model.AppError + RemovePluginFromData func(data model.PluginEventData) + RemoveSamlIdpCertificate func() *model.AppError + RemoveSamlPrivateCertificate func() *model.AppError + RemoveSamlPublicCertificate func() *model.AppError + RemoveTeamIcon func(teamId string) *model.AppError + RemoveTeamMemberFromTeam func(teamMember *model.TeamMember, requestorId string) *model.AppError + RemoveUserFromChannel func(userIdToRemove string, removerUserId string, channel *model.Channel) *model.AppError + RemoveUserFromTeam func(teamId string, userId string, requestorId string) *model.AppError + RemoveUsersFromChannelNotMemberOfTeam func(remover *model.User, channel *model.Channel, team *model.Team) *model.AppError + RenameChannel func(channel *model.Channel, newChannelName string, newDisplayName string) (*model.Channel, *model.AppError) + RenameTeam func(team *model.Team, newTeamName string, newDisplayName string) (*model.Team, *model.AppError) + RequestId func() string + RequestLicenseAndAckWarnMetric func(warnMetricId string, isBot bool) *model.AppError + ResetPasswordFromToken func(userSuppliedTokenString, newPassword string) *model.AppError + ResetPermissionsSystem func() *model.AppError + RestoreChannel func(channel *model.Channel, userId string) (*model.Channel, *model.AppError) + RestoreTeam func(teamId string) *model.AppError + RestrictUsersGetByPermissions func(userId string, options *model.UserGetOptions) (*model.UserGetOptions, *model.AppError) + RestrictUsersSearchByPermissions func(userId string, options *model.UserSearchOptions) (*model.UserSearchOptions, *model.AppError) + RevokeAccessToken func(token string) *model.AppError + RevokeAllSessions func(userId string) *model.AppError + RevokeSession func(session *model.Session) *model.AppError + RevokeSessionById func(sessionId string) *model.AppError + RevokeSessionsForDeviceId func(userId string, deviceId string, currentSessionId string) *model.AppError + RevokeSessionsFromAllUsers func() *model.AppError + RevokeUserAccessToken func(token *model.UserAccessToken) *model.AppError + RolesGrantPermission func(roleNames []string, permissionId string) bool + Saml func() einterfaces.SamlInterface + SanitizeProfile func(user *model.User, asAdmin bool) + SanitizeTeam func(session model.Session, team *model.Team) *model.Team + SanitizeTeams func(session model.Session, teams []*model.Team) []*model.Team + SaveAndBroadcastStatus func(status *model.Status) + SaveBrandImage func(imageData *multipart.FileHeader) *model.AppError + SaveComplianceReport func(job *model.Compliance) (*model.Compliance, *model.AppError) + SaveConfig func(newCfg *model.Config, sendConfigChangeClusterMessage bool) *model.AppError + SaveReactionForPost func(reaction *model.Reaction) (*model.Reaction, *model.AppError) + SaveUserTermsOfService func(userId, termsOfServiceId string, accepted bool) *model.AppError + SchemesIterator func(scope string, batchSize int) func() []*model.Scheme + SearchAllChannels func(term string, opts model.ChannelSearchOpts) (*model.ChannelListWithTeamData, int64, *model.AppError) + SearchAllTeams func(searchOpts *model.TeamSearch) ([]*model.Team, int64, *model.AppError) + SearchArchivedChannels func(teamId string, term string, userId string) (*model.ChannelList, *model.AppError) + SearchChannels func(teamId string, term string) (*model.ChannelList, *model.AppError) + SearchChannelsForUser func(userId, teamId, term string) (*model.ChannelList, *model.AppError) + SearchChannelsUserNotIn func(teamId string, userId string, term string) (*model.ChannelList, *model.AppError) + SearchEmoji func(name string, prefixOnly bool, limit int) ([]*model.Emoji, *model.AppError) + SearchEngine func() *searchengine.Broker + SearchGroupChannels func(userId, term string) (*model.ChannelList, *model.AppError) + SearchPostsInTeam func(teamId string, paramsList []*model.SearchParams) (*model.PostList, *model.AppError) + SearchPostsInTeamForUser func(terms string, userId string, teamId string, isOrSearch bool, ...) (*model.PostSearchResults, *model.AppError) + SearchPrivateTeams func(term string) ([]*model.Team, *model.AppError) + SearchPublicTeams func(term string) ([]*model.Team, *model.AppError) + SearchUserAccessTokens func(term string) ([]*model.UserAccessToken, *model.AppError) + SearchUsers func(props *model.UserSearch, options *model.UserSearchOptions) ([]*model.User, *model.AppError) + SearchUsersInChannel func(channelId string, term string, options *model.UserSearchOptions) ([]*model.User, *model.AppError) + SearchUsersInGroup func(groupID string, term string, options *model.UserSearchOptions) ([]*model.User, *model.AppError) + SearchUsersInTeam func(teamId, term string, options *model.UserSearchOptions) ([]*model.User, *model.AppError) + SearchUsersNotInChannel func(teamId string, channelId string, term string, options *model.UserSearchOptions) ([]*model.User, *model.AppError) + SearchUsersNotInTeam func(notInTeamId string, term string, options *model.UserSearchOptions) ([]*model.User, *model.AppError) + SearchUsersWithoutTeam func(term string, options *model.UserSearchOptions) ([]*model.User, *model.AppError) + SendAckToPushProxy func(ack *model.PushNotificationAck) error + SendAutoResponse func(channel *model.Channel, receiver *model.User, post *model.Post) (bool, *model.AppError) + SendAutoResponseIfNecessary func(channel *model.Channel, sender *model.User, post *model.Post) (bool, *model.AppError) + SendEmailVerification func(user *model.User, newEmail, redirect string) *model.AppError + SendEphemeralPost func(userId string, post *model.Post) *model.Post + SendNoCardPaymentFailedEmail func() *model.AppError + SendNotifications func(post *model.Post, team *model.Team, channel *model.Channel, sender *model.User, ...) ([]string, error) + SendPasswordReset func(email string, siteURL string) (bool, *model.AppError) + SendPaymentFailedEmail func(failedPayment *model.FailedPayment) *model.AppError + ServeInterPluginRequest func(w http.ResponseWriter, r *http.Request, ...) + ServePluginPublicRequest func(w http.ResponseWriter, r *http.Request) + ServePluginRequest func(w http.ResponseWriter, r *http.Request) + ServerBusyStateChanged func(sbs *model.ServerBusyState) + Session func() *model.Session + SessionCacheLength func() int + SessionHasPermissionTo func(session model.Session, permission *model.Permission) bool + SessionHasPermissionToAny func(session model.Session, permissions []*model.Permission) bool + SessionHasPermissionToCategory func(session model.Session, userId, teamId, categoryId string) bool + SessionHasPermissionToChannel func(session model.Session, channelId string, permission *model.Permission) bool + SessionHasPermissionToChannelByPost func(session model.Session, postId string, permission *model.Permission) bool + SessionHasPermissionToManageBot func(session model.Session, botUserId string) *model.AppError + SessionHasPermissionToTeam func(session model.Session, teamId string, permission *model.Permission) bool + SessionHasPermissionToUser func(session model.Session, userId string) bool + SessionHasPermissionToUserOrBot func(session model.Session, userId string) bool + SessionIsRegistered func(session model.Session) bool + SetAcceptLanguage func(s string) + SetActiveChannel func(userId string, channelId string) *model.AppError + SetAutoResponderStatus func(user *model.User, oldNotifyProps model.StringMap) + SetBotIconImage func(botUserId string, file io.ReadSeeker) *model.AppError + SetBotIconImageFromMultiPartFile func(botUserId string, imageData *multipart.FileHeader) *model.AppError + SetContext func(c context.Context) + SetDefaultProfileImage func(user *model.User) *model.AppError + SetIpAddress func(s string) + SetPath func(s string) + SetPhase2PermissionsMigrationStatus func(isComplete bool) error + SetPluginKey func(pluginId string, key string, value []byte) *model.AppError + SetPluginKeyWithExpiry func(pluginId string, key string, value []byte, expireInSeconds int64) *model.AppError + SetPluginKeyWithOptions func(pluginId string, key string, value []byte, options model.PluginKVSetOptions) (bool, *model.AppError) + SetPluginsEnvironment func(pluginsEnvironment *plugin.Environment) + SetProfileImage func(userId string, imageData *multipart.FileHeader) *model.AppError + SetProfileImageFromFile func(userId string, file io.Reader) *model.AppError + SetProfileImageFromMultiPartFile func(userId string, file multipart.File) *model.AppError + SetRequestId func(s string) + SetSamlIdpCertificateFromMetadata func(data []byte) *model.AppError + SetSearchEngine func(se *searchengine.Broker) + SetServer func(srv *Server) + SetSession func(s *model.Session) + SetSessionExpireInDays func(session *model.Session, days int) + SetStatusAwayIfNeeded func(userId string, manual bool) + SetStatusDoNotDisturb func(userId string) + SetStatusLastActivityAt func(userId string, activityAt int64) + SetStatusOffline func(userId string, manual bool) + SetStatusOnline func(userId string, manual bool) + SetStatusOutOfOffice func(userId string) + SetT func(t goi18n.TranslateFunc) + SetTeamIcon func(teamId string, imageData *multipart.FileHeader) *model.AppError + SetTeamIconFromFile func(team *model.Team, file io.Reader) *model.AppError + SetTeamIconFromMultiPartFile func(teamId string, file multipart.File) *model.AppError + SetUserAgent func(s string) + SlackImport func(fileData multipart.File, fileSize int64, teamID string) (*model.AppError, *bytes.Buffer) + SoftDeleteTeam func(teamId string) *model.AppError + Srv func() *Server + SubmitInteractiveDialog func(request model.SubmitDialogRequest) (*model.SubmitDialogResponse, *model.AppError) + SwitchEmailToLdap func(email, password, code, ldapLoginId, ldapPassword string) (string, *model.AppError) + SwitchEmailToOAuth func(w http.ResponseWriter, r *http.Request, email, password, code, service string) (string, *model.AppError) + SwitchLdapToEmail func(ldapPassword, code, email, newPassword string) (string, *model.AppError) + SwitchOAuthToEmail func(email, password, requesterId string) (string, *model.AppError) + SyncLdap func() + SyncPlugins func() *model.AppError + SyncPluginsActiveState func() + SyncRolesAndMembership func(syncableID string, syncableType model.GroupSyncableType) + SyncSyncableRoles func(syncableID string, syncableType model.GroupSyncableType) *model.AppError + T func(translationID string, args ...interface{}) string + TeamMembersMinusGroupMembers func(teamID string, groupIDs []string, page, perPage int) ([]*model.UserWithGroups, int64, *model.AppError) + TeamMembersToAdd func(since int64, teamID *string) ([]*model.UserTeamIDPair, *model.AppError) + TeamMembersToRemove func(teamID *string) ([]*model.TeamMember, *model.AppError) + TelemetryId func() string + TestElasticsearch func(cfg *model.Config) *model.AppError + TestEmail func(userId string, cfg *model.Config) *model.AppError + TestFilesStoreConnection func() *model.AppError + TestFilesStoreConnectionWithConfig func(cfg *model.FileSettings) *model.AppError + TestLdap func() *model.AppError + TestSiteURL func(siteURL string) *model.AppError + Timezones func() *timezones.Timezones + ToggleMuteChannel func(channelId, userId string) (*model.ChannelMember, *model.AppError) + TotalWebsocketConnections func() int + TriggerWebhook func(payload *model.OutgoingWebhookPayload, hook *model.OutgoingWebhook, ...) + UnregisterPluginCommand func(pluginId, teamId, trigger string) + UnregisterPluginCommands func(pluginId string) + UpdateActive func(user *model.User, active bool) (*model.User, *model.AppError) + UpdateBotActive func(botUserId string, active bool) (*model.Bot, *model.AppError) + UpdateBotOwner func(botUserId, newOwnerId string) (*model.Bot, *model.AppError) + UpdateChannel func(channel *model.Channel) (*model.Channel, *model.AppError) + UpdateChannelLastViewedAt func(channelIds []string, userId string) *model.AppError + UpdateChannelMemberNotifyProps func(data map[string]string, channelId string, userId string) (*model.ChannelMember, *model.AppError) + UpdateChannelMemberRoles func(channelId string, userId string, newRoles string) (*model.ChannelMember, *model.AppError) + UpdateChannelMemberSchemeRoles func(channelId string, userId string, isSchemeGuest bool, isSchemeUser bool, ...) (*model.ChannelMember, *model.AppError) + UpdateChannelPrivacy func(oldChannel *model.Channel, user *model.User) (*model.Channel, *model.AppError) + UpdateChannelScheme func(channel *model.Channel) (*model.Channel, *model.AppError) + UpdateCommand func(oldCmd, updatedCmd *model.Command) (*model.Command, *model.AppError) + UpdateConfig func(f func(*model.Config)) + UpdateEphemeralPost func(userId string, post *model.Post) *model.Post + UpdateGroup func(group *model.Group) (*model.Group, *model.AppError) + UpdateGroupSyncable func(groupSyncable *model.GroupSyncable) (*model.GroupSyncable, *model.AppError) + UpdateHashedPassword func(user *model.User, newHashedPassword string) *model.AppError + UpdateHashedPasswordByUserId func(userId, newHashedPassword string) *model.AppError + UpdateIncomingWebhook func(oldHook, updatedHook *model.IncomingWebhook) (*model.IncomingWebhook, *model.AppError) + UpdateLastActivityAtIfNeeded func(session model.Session) + UpdateMfa func(activate bool, userId, token string) *model.AppError + UpdateMobileAppBadge func(userId string) + UpdateOAuthUserAttrs func(userData io.Reader, user *model.User, provider einterfaces.OauthProvider, ...) *model.AppError + UpdateOauthApp func(oldApp, updatedApp *model.OAuthApp) (*model.OAuthApp, *model.AppError) + UpdateOutgoingWebhook func(oldHook, updatedHook *model.OutgoingWebhook) (*model.OutgoingWebhook, *model.AppError) + UpdatePassword func(user *model.User, newPassword string) *model.AppError + UpdatePasswordAsUser func(userId, currentPassword, newPassword string) *model.AppError + UpdatePasswordByUserIdSendEmail func(userId, newPassword, method string) *model.AppError + UpdatePasswordSendEmail func(user *model.User, newPassword, method string) *model.AppError + UpdatePost func(post *model.Post, safeUpdate bool) (*model.Post, *model.AppError) + UpdatePreferences func(userId string, preferences model.Preferences) *model.AppError + UpdateProductNotices func() *model.AppError + UpdateRole func(role *model.Role) (*model.Role, *model.AppError) + UpdateScheme func(scheme *model.Scheme) (*model.Scheme, *model.AppError) + UpdateSessionsIsGuest func(userId string, isGuest bool) + UpdateSidebarCategories func(userId, teamId string, categories []*model.SidebarCategoryWithChannels) ([]*model.SidebarCategoryWithChannels, *model.AppError) + UpdateSidebarCategoryOrder func(userId, teamId string, categoryOrder []string) *model.AppError + UpdateTeam func(team *model.Team) (*model.Team, *model.AppError) + UpdateTeamMemberRoles func(teamId string, userId string, newRoles string) (*model.TeamMember, *model.AppError) + UpdateTeamMemberSchemeRoles func(teamId string, userId string, isSchemeGuest bool, isSchemeUser bool, ...) (*model.TeamMember, *model.AppError) + UpdateTeamPrivacy func(teamId string, teamType string, allowOpenInvite bool) *model.AppError + UpdateTeamScheme func(team *model.Team) (*model.Team, *model.AppError) + UpdateThreadFollowForUser func(userId, threadId string, state bool) *model.AppError + UpdateThreadReadForUser func(userId, teamId, threadId string, timestamp int64) *model.AppError + UpdateThreadsReadForUser func(userId, teamId string) *model.AppError + UpdateUser func(user *model.User, sendNotifications bool) (*model.User, *model.AppError) + UpdateUserActive func(userId string, active bool) *model.AppError + UpdateUserAsUser func(user *model.User, asAdmin bool) (*model.User, *model.AppError) + UpdateUserAuth func(userId string, userAuth *model.UserAuth) (*model.UserAuth, *model.AppError) + UpdateUserNotifyProps func(userId string, props map[string]string) (*model.User, *model.AppError) + UpdateUserRoles func(userId string, newRoles string, sendWebSocketEvent bool) (*model.User, *model.AppError) + UpdateViewedProductNotices func(userId string, noticeIds []string) *model.AppError + UpdateViewedProductNoticesForNewUser func(userId string) + UpdateWebConnUserActivity func(session model.Session, activityAt int64) + UploadData func(us *model.UploadSession, rd io.Reader) (*model.FileInfo, *model.AppError) + UploadEmojiImage func(id string, imageData *multipart.FileHeader) *model.AppError + UploadFile func(data []byte, channelId string, filename string) (*model.FileInfo, *model.AppError) + UploadFileX func(channelId, name string, input io.Reader, opts ...func(*UploadFileTask)) (*model.FileInfo, *model.AppError) + UploadFiles func(teamId string, channelId string, userId string, files []io.ReadCloser, ...) (*model.FileUploadResponse, *model.AppError) + UploadMultipartFiles func(teamId string, channelId string, userId string, ...) (*model.FileUploadResponse, *model.AppError) + UpsertGroupMember func(groupID string, userID string) (*model.GroupMember, *model.AppError) + UpsertGroupSyncable func(groupSyncable *model.GroupSyncable) (*model.GroupSyncable, *model.AppError) + UserAgent func() string + UserCanSeeOtherUser func(userId string, otherUserId string) (bool, *model.AppError) + UserIsInAdminRoleGroup func(userID, syncableID string, syncableType model.GroupSyncableType) (bool, *model.AppError) + VerifyEmailFromToken func(userSuppliedTokenString string) *model.AppError + VerifyPlugin func(plugin, signature io.ReadSeeker) *model.AppError + VerifyUserEmail func(userId, email string) *model.AppError + ViewChannel func(view *model.ChannelView, userId string, currentSessionId string) (map[string]int64, *model.AppError) + WaitForChannelMembership func(channelId string, userId string) + WriteFile func(fr io.Reader, path string) (int64, *model.AppError) + type AppOption func(a *App) + func ServerConnector(s *Server) AppOption + type AppOptionCreator func() []AppOption + type AttachmentImportData struct + Path *string + type AutocompleteDynamicArgProvider interface + GetAutoCompleteListItems func(a *App, commandArgs *model.CommandArgs, arg *model.AutocompleteArg, ...) ([]model.AutocompleteListItem, error) + type Busy struct + func NewBusy(cluster einterfaces.ClusterInterface) *Busy + func (b *Busy) Clear() + func (b *Busy) ClusterEventChanged(sbs *model.ServerBusyState) + func (b *Busy) Expires() time.Time + func (b *Busy) IsBusy() bool + func (b *Busy) Set(dur time.Duration) + func (b *Busy) ToJson() string + type ChannelImportData struct + DisplayName *string + Header *string + Name *string + Purpose *string + Scheme *string + Team *string + Type *string + type ClusterDiscoveryService struct + func (cds *ClusterDiscoveryService) Start() + func (cds *ClusterDiscoveryService) Stop() + type CommandProvider interface + DoCommand func(a *App, args *model.CommandArgs, message string) *model.CommandResponse + GetCommand func(a *App, T goi18n.TranslateFunc) *model.Command + GetTrigger func() string + func GetCommandProvider(name string) CommandProvider + type ComparablePreference struct + Category string + Name string + type DirectChannelImportData struct + FavoritedBy *[]string + Header *string + Members *[]string + type DirectPostImportData struct + Attachments *[]AttachmentImportData + ChannelMembers *[]string + CreateAt *int64 + FlaggedBy *[]string + Message *string + Props *model.StringInterface + Reactions *[]ReactionImportData + Replies *[]ReplyImportData + User *string + type EmailBatchingJob struct + func NewEmailBatchingJob(es *EmailService, bufferSize int) *EmailBatchingJob + func (job *EmailBatchingJob) Add(user *model.User, post *model.Post, team *model.Team) bool + func (job *EmailBatchingJob) CheckPendingEmails() + func (job *EmailBatchingJob) Start() + type EmailService struct + EmailBatching *EmailBatchingJob + EmailRateLimiter *throttled.GCRARateLimiter + func NewEmailService(srv *Server) (*EmailService, error) + func (es *EmailService) AddNotificationEmailToBatch(user *model.User, post *model.Post, team *model.Team) *model.AppError + func (es *EmailService) CreateVerifyEmailToken(userId string, newEmail string) (*model.Token, *model.AppError) + func (es *EmailService) InitEmailBatching() + func (es *EmailService) SendAtUserLimitWarningEmail(email string, locale string, siteURL string) (bool, *model.AppError) + func (es *EmailService) SendDeactivateAccountEmail(email string, locale, siteURL string) *model.AppError + func (es *EmailService) SendInviteEmails(team *model.Team, senderName string, senderUserId string, invites []string, ...) *model.AppError + func (es *EmailService) SendNoCardPaymentFailedEmail(email string, locale string, siteURL string) *model.AppError + func (es *EmailService) SendOverUserFourteenDayWarningEmail(email string, locale string, siteURL string, overLimitDate string) (bool, *model.AppError) + func (es *EmailService) SendOverUserLimitNinetyDayWarningEmail(email string, locale string, siteURL string, overLimitDate string) (bool, *model.AppError) + func (es *EmailService) SendOverUserLimitThirtyDayWarningEmail(email string, locale string, siteURL string) (bool, *model.AppError) + func (es *EmailService) SendOverUserLimitWarningEmail(email string, locale string, siteURL string) (bool, *model.AppError) + func (es *EmailService) SendOverUserLimitWorkspaceSuspendedWarningEmail(email string, locale string, siteURL string) (bool, *model.AppError) + func (es *EmailService) SendOverUserSevenDayWarningEmail(email string, locale string, siteURL string) (bool, *model.AppError) + func (es *EmailService) SendPasswordResetEmail(email string, token *model.Token, locale, siteURL string) (bool, *model.AppError) + func (es *EmailService) SendPaymentFailedEmail(email string, locale string, failedPayment *model.FailedPayment, ...) (bool, *model.AppError) + func (es *EmailService) SendRemoveExpiredLicenseEmail(email string, locale, siteURL string, licenseId string) *model.AppError + func (es *EmailService) SendSignInChangeEmail(email, method, locale, siteURL string) *model.AppError + func (es *EmailService) SendSuspensionEmailToSupport(email string, installationID string, customerID string, subscriptionID string, ...) (bool, *model.AppError) + type EmojiImportData struct + Image *string + Name *string + type ExplicitMentions struct + AllMentioned bool + ChannelMentioned bool + GroupMentions map[string]*model.Group + HereMentioned bool + Mentions map[string]MentionType + OtherPotentialMentions []string + type Hub struct + func (h *Hub) Broadcast(message *model.WebSocketEvent) + func (h *Hub) InvalidateUser(userId string) + func (h *Hub) IsRegistered(userId, sessionToken string) bool + func (h *Hub) Register(webConn *WebConn) + func (h *Hub) SendMessage(conn *WebConn, msg model.WebSocketMessage) + func (h *Hub) Start() + func (h *Hub) Stop() + func (h *Hub) Unregister(webConn *WebConn) + func (h *Hub) UpdateActivity(userId, sessionToken string, activityAt int64) + type JWTClaims struct + ActiveUsers int64 + LicenseID string + type LineImportData struct + Channel *ChannelImportData + DirectChannel *DirectChannelImportData + DirectPost *DirectPostImportData + Emoji *EmojiImportData + Post *PostImportData + Scheme *SchemeImportData + Team *TeamImportData + Type string + User *UserImportData + Version *int + func ImportLineForDirectPost(post *model.DirectPostForExport) *LineImportData + func ImportLineForPost(post *model.PostForExport) *LineImportData + func ImportLineFromChannel(channel *model.ChannelForExport) *LineImportData + func ImportLineFromDirectChannel(channel *model.DirectChannelForExport) *LineImportData + func ImportLineFromEmoji(emoji *model.Emoji, filePath string) *LineImportData + func ImportLineFromTeam(team *model.TeamForExport) *LineImportData + func ImportLineFromUser(user *model.User, exportedPrefs map[string]*string) *LineImportData + type LineImportWorkerData struct + LineNumber int + type LineImportWorkerError struct + Error *model.AppError + LineNumber int + type LocalResponseWriter struct + func (w *LocalResponseWriter) Header() http.Header + func (w *LocalResponseWriter) Write(bytes []byte) (int, error) + func (w *LocalResponseWriter) WriteHeader(statusCode int) + type MailToLinkContent struct + MailBody string + MailCC string + MailRecipient string + MailSubject string + MetricId string + func (mlc *MailToLinkContent) ToJson() string + type MentionType int + const ChannelMention + const CommentMention + const DMMention + const GroupMention + const KeywordMention + const NoMention + const ThreadMention + type Option func(s *Server) error + func Config(dsn string, watch bool, configDefaults *model.Config) Option + func ConfigStore(configStore *config.Store) Option + func SetLogger(logger *mlog.Logger) Option + func StoreOverride(override interface{}) Option + type PluginAPI struct + func NewPluginAPI(a *App, manifest *model.Manifest) *PluginAPI + func (api *PluginAPI) AddChannelMember(channelId, userId string) (*model.ChannelMember, *model.AppError) + func (api *PluginAPI) AddReaction(reaction *model.Reaction) (*model.Reaction, *model.AppError) + func (api *PluginAPI) AddUserToChannel(channelId, userId, asUserId string) (*model.ChannelMember, *model.AppError) + func (api *PluginAPI) CopyFileInfos(userId string, fileIds []string) ([]string, *model.AppError) + func (api *PluginAPI) CreateBot(bot *model.Bot) (*model.Bot, *model.AppError) + func (api *PluginAPI) CreateChannel(channel *model.Channel) (*model.Channel, *model.AppError) + func (api *PluginAPI) CreateCommand(cmd *model.Command) (*model.Command, error) + func (api *PluginAPI) CreatePost(post *model.Post) (*model.Post, *model.AppError) + func (api *PluginAPI) CreateTeam(team *model.Team) (*model.Team, *model.AppError) + func (api *PluginAPI) CreateTeamMember(teamId, userId string) (*model.TeamMember, *model.AppError) + func (api *PluginAPI) CreateTeamMembers(teamId string, userIds []string, requestorId string) ([]*model.TeamMember, *model.AppError) + func (api *PluginAPI) CreateTeamMembersGracefully(teamId string, userIds []string, requestorId string) ([]*model.TeamMemberWithError, *model.AppError) + func (api *PluginAPI) CreateUser(user *model.User) (*model.User, *model.AppError) + func (api *PluginAPI) DeleteBotIconImage(userId string) *model.AppError + func (api *PluginAPI) DeleteChannel(channelId string) *model.AppError + func (api *PluginAPI) DeleteChannelMember(channelId, userId string) *model.AppError + func (api *PluginAPI) DeleteCommand(commandID string) error + func (api *PluginAPI) DeleteEphemeralPost(userId, postId string) + func (api *PluginAPI) DeletePost(postId string) *model.AppError + func (api *PluginAPI) DeletePreferencesForUser(userId string, preferences []model.Preference) *model.AppError + func (api *PluginAPI) DeleteTeam(teamId string) *model.AppError + func (api *PluginAPI) DeleteTeamMember(teamId, userId, requestorId string) *model.AppError + func (api *PluginAPI) DeleteUser(userId string) *model.AppError + func (api *PluginAPI) DisablePlugin(id string) *model.AppError + func (api *PluginAPI) EnablePlugin(id string) *model.AppError + func (api *PluginAPI) ExecuteSlashCommand(commandArgs *model.CommandArgs) (*model.CommandResponse, error) + func (api *PluginAPI) GetBot(userId string, includeDeleted bool) (*model.Bot, *model.AppError) + func (api *PluginAPI) GetBotIconImage(userId string) ([]byte, *model.AppError) + func (api *PluginAPI) GetBots(options *model.BotGetOptions) ([]*model.Bot, *model.AppError) + func (api *PluginAPI) GetBundlePath() (string, error) + func (api *PluginAPI) GetChannel(channelId string) (*model.Channel, *model.AppError) + func (api *PluginAPI) GetChannelByName(teamId, name string, includeDeleted bool) (*model.Channel, *model.AppError) + func (api *PluginAPI) GetChannelByNameForTeamName(teamName, channelName string, includeDeleted bool) (*model.Channel, *model.AppError) + func (api *PluginAPI) GetChannelMember(channelId, userId string) (*model.ChannelMember, *model.AppError) + func (api *PluginAPI) GetChannelMembers(channelId string, page, perPage int) (*model.ChannelMembers, *model.AppError) + func (api *PluginAPI) GetChannelMembersByIds(channelId string, userIds []string) (*model.ChannelMembers, *model.AppError) + func (api *PluginAPI) GetChannelMembersForUser(teamId, userId string, page, perPage int) ([]*model.ChannelMember, *model.AppError) + func (api *PluginAPI) GetChannelStats(channelId string) (*model.ChannelStats, *model.AppError) + func (api *PluginAPI) GetChannelsForTeamForUser(teamId, userId string, includeDeleted bool) ([]*model.Channel, *model.AppError) + func (api *PluginAPI) GetCommand(commandID string) (*model.Command, error) + func (api *PluginAPI) GetConfig() *model.Config + func (api *PluginAPI) GetDiagnosticId() string + func (api *PluginAPI) GetDirectChannel(userId1, userId2 string) (*model.Channel, *model.AppError) + func (api *PluginAPI) GetEmoji(emojiId string) (*model.Emoji, *model.AppError) + func (api *PluginAPI) GetEmojiByName(name string) (*model.Emoji, *model.AppError) + func (api *PluginAPI) GetEmojiImage(emojiId string) ([]byte, string, *model.AppError) + func (api *PluginAPI) GetEmojiList(sortBy string, page, perPage int) ([]*model.Emoji, *model.AppError) + func (api *PluginAPI) GetFile(fileId string) ([]byte, *model.AppError) + func (api *PluginAPI) GetFileInfo(fileId string) (*model.FileInfo, *model.AppError) + func (api *PluginAPI) GetFileInfos(page, perPage int, opt *model.GetFileInfosOptions) ([]*model.FileInfo, *model.AppError) + func (api *PluginAPI) GetFileLink(fileId string) (string, *model.AppError) + func (api *PluginAPI) GetGroup(groupId string) (*model.Group, *model.AppError) + func (api *PluginAPI) GetGroupByName(name string) (*model.Group, *model.AppError) + func (api *PluginAPI) GetGroupChannel(userIds []string) (*model.Channel, *model.AppError) + func (api *PluginAPI) GetGroupsForUser(userId string) ([]*model.Group, *model.AppError) + func (api *PluginAPI) GetLDAPUserAttributes(userId string, attributes []string) (map[string]string, *model.AppError) + func (api *PluginAPI) GetLicense() *model.License + func (api *PluginAPI) GetPluginConfig() map[string]interface{} + func (api *PluginAPI) GetPluginStatus(id string) (*model.PluginStatus, *model.AppError) + func (api *PluginAPI) GetPlugins() ([]*model.Manifest, *model.AppError) + func (api *PluginAPI) GetPost(postId string) (*model.Post, *model.AppError) + func (api *PluginAPI) GetPostThread(postId string) (*model.PostList, *model.AppError) + func (api *PluginAPI) GetPostsAfter(channelId, postId string, page, perPage int) (*model.PostList, *model.AppError) + func (api *PluginAPI) GetPostsBefore(channelId, postId string, page, perPage int) (*model.PostList, *model.AppError) + func (api *PluginAPI) GetPostsForChannel(channelId string, page, perPage int) (*model.PostList, *model.AppError) + func (api *PluginAPI) GetPostsSince(channelId string, time int64) (*model.PostList, *model.AppError) + func (api *PluginAPI) GetPreferencesForUser(userId string) ([]model.Preference, *model.AppError) + func (api *PluginAPI) GetProfileImage(userId string) ([]byte, *model.AppError) + func (api *PluginAPI) GetPublicChannelsForTeam(teamId string, page, perPage int) ([]*model.Channel, *model.AppError) + func (api *PluginAPI) GetReactions(postId string) ([]*model.Reaction, *model.AppError) + func (api *PluginAPI) GetServerVersion() string + func (api *PluginAPI) GetSession(sessionId string) (*model.Session, *model.AppError) + func (api *PluginAPI) GetSystemInstallDate() (int64, *model.AppError) + func (api *PluginAPI) GetTeam(teamId string) (*model.Team, *model.AppError) + func (api *PluginAPI) GetTeamByName(name string) (*model.Team, *model.AppError) + func (api *PluginAPI) GetTeamIcon(teamId string) ([]byte, *model.AppError) + func (api *PluginAPI) GetTeamMember(teamId, userId string) (*model.TeamMember, *model.AppError) + func (api *PluginAPI) GetTeamMembers(teamId string, page, perPage int) ([]*model.TeamMember, *model.AppError) + func (api *PluginAPI) GetTeamMembersForUser(userId string, page int, perPage int) ([]*model.TeamMember, *model.AppError) + func (api *PluginAPI) GetTeamStats(teamId string) (*model.TeamStats, *model.AppError) + func (api *PluginAPI) GetTeams() ([]*model.Team, *model.AppError) + func (api *PluginAPI) GetTeamsForUser(userId string) ([]*model.Team, *model.AppError) + func (api *PluginAPI) GetTeamsUnreadForUser(userId string) ([]*model.TeamUnread, *model.AppError) + func (api *PluginAPI) GetTelemetryId() string + func (api *PluginAPI) GetUnsanitizedConfig() *model.Config + func (api *PluginAPI) GetUser(userId string) (*model.User, *model.AppError) + func (api *PluginAPI) GetUserByEmail(email string) (*model.User, *model.AppError) + func (api *PluginAPI) GetUserByUsername(name string) (*model.User, *model.AppError) + func (api *PluginAPI) GetUserStatus(userId string) (*model.Status, *model.AppError) + func (api *PluginAPI) GetUserStatusesByIds(userIds []string) ([]*model.Status, *model.AppError) + func (api *PluginAPI) GetUsers(options *model.UserGetOptions) ([]*model.User, *model.AppError) + func (api *PluginAPI) GetUsersByUsernames(usernames []string) ([]*model.User, *model.AppError) + func (api *PluginAPI) GetUsersInChannel(channelId, sortBy string, page, perPage int) ([]*model.User, *model.AppError) + func (api *PluginAPI) GetUsersInTeam(teamId string, page int, perPage int) ([]*model.User, *model.AppError) + func (api *PluginAPI) HasPermissionTo(userId string, permission *model.Permission) bool + func (api *PluginAPI) HasPermissionToChannel(userId, channelId string, permission *model.Permission) bool + func (api *PluginAPI) HasPermissionToTeam(userId, teamId string, permission *model.Permission) bool + func (api *PluginAPI) InstallPlugin(file io.Reader, replace bool) (*model.Manifest, *model.AppError) + func (api *PluginAPI) KVCompareAndDelete(key string, oldValue []byte) (bool, *model.AppError) + func (api *PluginAPI) KVCompareAndSet(key string, oldValue, newValue []byte) (bool, *model.AppError) + func (api *PluginAPI) KVDelete(key string) *model.AppError + func (api *PluginAPI) KVDeleteAll() *model.AppError + func (api *PluginAPI) KVGet(key string) ([]byte, *model.AppError) + func (api *PluginAPI) KVList(page, perPage int) ([]string, *model.AppError) + func (api *PluginAPI) KVSet(key string, value []byte) *model.AppError + func (api *PluginAPI) KVSetWithExpiry(key string, value []byte, expireInSeconds int64) *model.AppError + func (api *PluginAPI) KVSetWithOptions(key string, value []byte, options model.PluginKVSetOptions) (bool, *model.AppError) + func (api *PluginAPI) ListBuiltInCommands() ([]*model.Command, error) + func (api *PluginAPI) ListCommands(teamID string) ([]*model.Command, error) + func (api *PluginAPI) ListCustomCommands(teamID string) ([]*model.Command, error) + func (api *PluginAPI) ListPluginCommands(teamID string) ([]*model.Command, error) + func (api *PluginAPI) LoadPluginConfiguration(dest interface{}) error + func (api *PluginAPI) LogDebug(msg string, keyValuePairs ...interface{}) + func (api *PluginAPI) LogError(msg string, keyValuePairs ...interface{}) + func (api *PluginAPI) LogInfo(msg string, keyValuePairs ...interface{}) + func (api *PluginAPI) LogWarn(msg string, keyValuePairs ...interface{}) + func (api *PluginAPI) OpenInteractiveDialog(dialog model.OpenDialogRequest) *model.AppError + func (api *PluginAPI) PatchBot(userId string, botPatch *model.BotPatch) (*model.Bot, *model.AppError) + func (api *PluginAPI) PermanentDeleteBot(userId string) *model.AppError + func (api *PluginAPI) PluginHTTP(request *http.Request) *http.Response + func (api *PluginAPI) PublishUserTyping(userId, channelId, parentId string) *model.AppError + func (api *PluginAPI) PublishWebSocketEvent(event string, payload map[string]interface{}, ...) + func (api *PluginAPI) ReadFile(path string) ([]byte, *model.AppError) + func (api *PluginAPI) RegisterCommand(command *model.Command) error + func (api *PluginAPI) RemovePlugin(id string) *model.AppError + func (api *PluginAPI) RemoveReaction(reaction *model.Reaction) *model.AppError + func (api *PluginAPI) RemoveTeamIcon(teamId string) *model.AppError + func (api *PluginAPI) SaveConfig(config *model.Config) *model.AppError + func (api *PluginAPI) SavePluginConfig(pluginConfig map[string]interface{}) *model.AppError + func (api *PluginAPI) SearchChannels(teamId string, term string) ([]*model.Channel, *model.AppError) + func (api *PluginAPI) SearchPostsInTeam(teamId string, paramsList []*model.SearchParams) ([]*model.Post, *model.AppError) + func (api *PluginAPI) SearchPostsInTeamForUser(teamId string, userId string, searchParams model.SearchParameter) (*model.PostSearchResults, *model.AppError) + func (api *PluginAPI) SearchTeams(term string) ([]*model.Team, *model.AppError) + func (api *PluginAPI) SearchUsers(search *model.UserSearch) ([]*model.User, *model.AppError) + func (api *PluginAPI) SendEphemeralPost(userId string, post *model.Post) *model.Post + func (api *PluginAPI) SendMail(to, subject, htmlBody string) *model.AppError + func (api *PluginAPI) SetBotIconImage(userId string, data []byte) *model.AppError + func (api *PluginAPI) SetProfileImage(userId string, data []byte) *model.AppError + func (api *PluginAPI) SetTeamIcon(teamId string, data []byte) *model.AppError + func (api *PluginAPI) UnregisterCommand(teamId, trigger string) error + func (api *PluginAPI) UpdateBotActive(userId string, active bool) (*model.Bot, *model.AppError) + func (api *PluginAPI) UpdateChannel(channel *model.Channel) (*model.Channel, *model.AppError) + func (api *PluginAPI) UpdateChannelMemberNotifications(channelId, userId string, notifications map[string]string) (*model.ChannelMember, *model.AppError) + func (api *PluginAPI) UpdateChannelMemberRoles(channelId, userId, newRoles string) (*model.ChannelMember, *model.AppError) + func (api *PluginAPI) UpdateCommand(commandID string, updatedCmd *model.Command) (*model.Command, error) + func (api *PluginAPI) UpdateEphemeralPost(userId string, post *model.Post) *model.Post + func (api *PluginAPI) UpdatePost(post *model.Post) (*model.Post, *model.AppError) + func (api *PluginAPI) UpdatePreferencesForUser(userId string, preferences []model.Preference) *model.AppError + func (api *PluginAPI) UpdateTeam(team *model.Team) (*model.Team, *model.AppError) + func (api *PluginAPI) UpdateTeamMemberRoles(teamId, userId, newRoles string) (*model.TeamMember, *model.AppError) + func (api *PluginAPI) UpdateUser(user *model.User) (*model.User, *model.AppError) + func (api *PluginAPI) UpdateUserActive(userId string, active bool) *model.AppError + func (api *PluginAPI) UpdateUserStatus(userId, status string) (*model.Status, *model.AppError) + func (api *PluginAPI) UploadFile(data []byte, channelId string, filename string) (*model.FileInfo, *model.AppError) + type PluginCommand struct + Command *model.Command + PluginId string + type PluginResponseWriter struct + func (rt *PluginResponseWriter) GenerateResponse() *http.Response + func (rt *PluginResponseWriter) Header() http.Header + func (rt *PluginResponseWriter) WriteHeader(statusCode int) + type PostImportData struct + Attachments *[]AttachmentImportData + Channel *string + CreateAt *int64 + FlaggedBy *[]string + Message *string + Props *model.StringInterface + Reactions *[]ReactionImportData + Replies *[]ReplyImportData + Team *string + User *string + type PostNotification struct + Channel *model.Channel + Post *model.Post + ProfileMap map[string]*model.User + Sender *model.User + func (n *PostNotification) GetChannelName(userNameFormat, excludeId string) string + func (n *PostNotification) GetSenderName(userNameFormat string, overridesAllowed bool) string + type PushNotification struct + type PushNotificationsHub struct + type RateLimiter struct + func NewRateLimiter(settings *model.RateLimitSettings, trustedProxyIPHeader []string) (*RateLimiter, error) + func (rl *RateLimiter) GenerateKey(r *http.Request) string + func (rl *RateLimiter) RateLimitHandler(wrappedHandler http.Handler) http.Handler + func (rl *RateLimiter) RateLimitWriter(key string, w http.ResponseWriter) bool + func (rl *RateLimiter) UserIdRateLimit(userId string, w http.ResponseWriter) bool + type ReactionImportData struct + CreateAt *int64 + EmojiName *string + User *string + func ImportReactionFromPost(user *model.User, reaction *model.Reaction) *ReactionImportData + type ReplyImportData struct + Attachments *[]AttachmentImportData + CreateAt *int64 + FlaggedBy *[]string + Message *string + Reactions *[]ReactionImportData + User *string + func ImportReplyFromPost(post *model.ReplyForExport) *ReplyImportData + type RoleImportData struct + Description *string + DisplayName *string + Name *string + Permissions *[]string + type SVGInfo struct + Height int + Width int + type SchemeImportData struct + DefaultChannelAdminRole *RoleImportData + DefaultChannelGuestRole *RoleImportData + DefaultChannelUserRole *RoleImportData + DefaultTeamAdminRole *RoleImportData + DefaultTeamGuestRole *RoleImportData + DefaultTeamUserRole *RoleImportData + Description *string + DisplayName *string + Name *string + Scope *string + type Server struct + AccountMigration einterfaces.AccountMigrationInterface + AppInitializedOnce sync.Once + Audit *audit.Audit + Busy *Busy + CacheProvider cache.Provider + Cloud einterfaces.CloudInterface + Cluster einterfaces.ClusterInterface + Compliance einterfaces.ComplianceInterface + DataRetention einterfaces.DataRetentionInterface + EmailService *EmailService + HTTPService httpservice.HTTPService + ImageProxy *imageproxy.ImageProxy + Jobs *jobs.JobServer + Ldap einterfaces.LdapInterface + ListenAddr *net.TCPAddr + LocalRouter *mux.Router + Log *mlog.Logger + MessageExport einterfaces.MessageExportInterface + Metrics einterfaces.MetricsInterface + Notification einterfaces.NotificationInterface + NotificationsLog *mlog.Logger + PluginConfigListenerId string + PluginsEnvironment *plugin.Environment + PluginsLock sync.RWMutex + PushNotificationsHub PushNotificationsHub + RateLimiter *RateLimiter + RootRouter *mux.Router + Router *mux.Router + Saml einterfaces.SamlInterface + SearchEngine *searchengine.Broker + Server *http.Server + Store store.Store + WebSocketRouter *WebSocketRouter + func NewServer(options ...Option) (*Server, error) + func (s *Server) AddClusterLeaderChangedListener(listener func()) string + func (s *Server) AddConfigListener(listener func(*model.Config, *model.Config)) string + func (s *Server) AddLicenseListener(listener func(oldLicense, newLicense *model.License)) string + func (s *Server) AppOptions() []AppOption + func (s *Server) AsymmetricSigningKey() *ecdsa.PrivateKey + func (s *Server) CanIUpgradeToE0() error + func (s *Server) ClientConfigHash() string + func (s *Server) ClientConfigWithComputed() map[string]string + func (s *Server) ClientLicense() map[string]string + func (s *Server) ClusterHealthScore() int + func (s *Server) Config() *model.Config + func (s *Server) DoSecurityUpdateCheck() + func (s *Server) EnvironmentConfig() map[string]interface{} + func (s *Server) FileBackend() (filesstore.FileBackend, *model.AppError) + func (s *Server) GenerateRenewalToken(expiration time.Duration) (string, *model.AppError) + func (s *Server) GetHubForUserId(userId string) *Hub + func (s *Server) GetLogs(page, perPage int) ([]string, *model.AppError) + func (s *Server) GetLogsSkipSend(page, perPage int) ([]string, *model.AppError) + func (s *Server) GetMessageForNotification(post *model.Post, translateFunc i18n.TranslateFunc) string + func (s *Server) GetPluginStatus(id string) (*model.PluginStatus, *model.AppError) + func (s *Server) GetPluginStatuses() (model.PluginStatuses, *model.AppError) + func (s *Server) GetPluginsEnvironment() *plugin.Environment + func (s *Server) GetRoleByName(name string) (*model.Role, *model.AppError) + func (s *Server) GetSanitizedClientLicense() map[string]string + func (s *Server) GetSchemes(scope string, offset int, limit int) ([]*model.Scheme, *model.AppError) + func (s *Server) Go(f func()) + func (s *Server) HTMLTemplates() *template.Template + func (s *Server) HttpService() httpservice.HTTPService + func (s *Server) HubStop() + func (s *Server) InvalidateAllCaches() *model.AppError + func (s *Server) InvalidateAllCachesSkipSend() + func (s *Server) InvokeClusterLeaderChangedListeners() + func (s *Server) IsFirstUserAccount() bool + func (s *Server) IsLeader() bool + func (s *Server) IsPhase2MigrationCompleted() *model.AppError + func (s *Server) License() *model.License + func (s *Server) LoadLicense() + func (s *Server) MaxPostSize() int + func (s *Server) NewClusterDiscoveryService() *ClusterDiscoveryService + func (s *Server) PostActionCookieSecret() []byte + func (s *Server) Publish(message *model.WebSocketEvent) + func (s *Server) PublishSkipClusterSend(message *model.WebSocketEvent) + func (s *Server) ReloadConfig() error + func (s *Server) RemoveClusterLeaderChangedListener(id string) + func (s *Server) RemoveConfigListener(id string) + func (s *Server) RemoveLicense() *model.AppError + func (s *Server) RemoveLicenseListener(id string) + func (s *Server) RequestTrialLicense(trialRequest *model.TrialLicenseRequest) *model.AppError + func (s *Server) Restart() error + func (s *Server) RunJobs() + func (s *Server) SaveConfig(newCfg *model.Config, sendConfigChangeClusterMessage bool) *model.AppError + func (s *Server) SaveLicense(licenseBytes []byte) (*model.License, *model.AppError) + func (s *Server) SetClientLicense(m map[string]string) + func (s *Server) SetLicense(license *model.License) bool + func (s *Server) SetLog(l *mlog.Logger) + func (s *Server) ShutDownPlugins() + func (s *Server) Shutdown() error + func (s *Server) Start() error + func (s *Server) StartSearchEngine() (string, string) + func (s *Server) StopHTTPServer() + func (s *Server) StopPushNotificationsHubWorkers() + func (s *Server) TelemetryId() string + func (s *Server) TotalWebsocketConnections() int + func (s *Server) UpdateConfig(f func(*model.Config)) + func (s *Server) UpgradeToE0() error + func (s *Server) UpgradeToE0Status() (int64, error) + func (s *Server) ValidateAndSetLicenseBytes(b []byte) bool + func (s *Server) WaitForGoroutines() + type TeamImportData struct + AllowOpenInvite *bool + Description *string + DisplayName *string + Name *string + Scheme *string + Type *string + type TokenLocation int + const TokenLocationCloudHeader + const TokenLocationCookie + const TokenLocationHeader + const TokenLocationNotFound + const TokenLocationQueryString + func ParseAuthTokenFromRequest(r *http.Request) (string, TokenLocation) + func (tl TokenLocation) String() string + type UploadFileTask struct + ChannelId string + ClientId string + ContentLength int64 + Input io.Reader + Name string + Raw bool + TeamId string + Timestamp time.Time + UserId string + type UserChannelImportData struct + Favorite *bool + Name *string + NotifyProps *UserChannelNotifyPropsImportData + Roles *string + func ImportUserChannelDataFromChannelMemberAndPreferences(member *model.ChannelMemberForExport, preferences *model.Preferences) *UserChannelImportData + type UserChannelNotifyPropsImportData struct + Desktop *string + MarkUnread *string + Mobile *string + type UserImportData struct + AuthData *string + AuthService *string + ChannelDisplayMode *string + CollapsePreviews *string + DeleteAt *int64 + Email *string + EmailInterval *string + FirstName *string + LastName *string + Locale *string + MessageDisplay *string + Nickname *string + NotifyProps *UserNotifyPropsImportData + Password *string + Position *string + ProfileImage *string + Roles *string + ShowUnreadSection *string + Teams *[]UserTeamImportData + Theme *string + TutorialStep *string + UseFormatting *string + UseMarkdownPreview *string + UseMilitaryTime *string + Username *string + type UserNotifyPropsImportData struct + ChannelTrigger *string + CommentsTrigger *string + Desktop *string + DesktopSound *string + Email *string + MentionKeys *string + Mobile *string + MobilePushStatus *string + type UserTeamImportData struct + Channels *[]UserChannelImportData + Name *string + Roles *string + Theme *string + func ImportUserTeamDataFromTeamMember(member *model.TeamMemberForExport) *UserTeamImportData + type WebConn struct + App *App + Locale string + Sequence int64 + T goi18n.TranslateFunc + UserId string + WebSocket *websocket.Conn + func (wc *WebConn) Close() + func (wc *WebConn) GetSession() *model.Session + func (wc *WebConn) GetSessionExpiresAt() int64 + func (wc *WebConn) GetSessionToken() string + func (wc *WebConn) InvalidateCache() + func (wc *WebConn) IsAuthenticated() bool + func (wc *WebConn) Pump() + func (wc *WebConn) SetSession(v *model.Session) + func (wc *WebConn) SetSessionExpiresAt(v int64) + func (wc *WebConn) SetSessionToken(v string) + type WebSocketRouter struct + func (wr *WebSocketRouter) Handle(action string, handler webSocketHandler) + func (wr *WebSocketRouter) ServeWebSocket(conn *WebConn, r *model.WebSocketRequest) Other modules containing this package github.com/adacta-ru/mattermost-server github.com/adacta-ru/mattermost-server/v6