Versions in this module Expand all Collapse all v5 v5.100.1 Jun 2, 2020 v5.100.0 May 26, 2020 Changes in this version + const ADVANCED_PERMISSIONS_MIGRATION_KEY + const AUTH_TIMEOUT + const BRAND_FILE_NAME + const BRAND_FILE_PATH + const BROADCAST_QUEUE_SIZE + const BTEST_TEAM_DISPLAY_NAME + const BTEST_TEAM_EMAIL + const BTEST_TEAM_NAME + const BTEST_TEAM_TYPE + const BTEST_USER_EMAIL + const BTEST_USER_NAME + const BTEST_USER_PASSWORD + const CHANNEL_TYPE + const CMD_AWAY + const CMD_CODE + const CMD_COLLAPSE + const CMD_DND + const CMD_ECHO + const CMD_EXPAND + const CMD_GROUPMSG + const CMD_HEADER + const CMD_HELP + const CMD_INVITE + const CMD_INVITE_PEOPLE + const CMD_JOIN + const CMD_KICK + const CMD_LEAVE + const CMD_LOGOUT + const CMD_ME + const CMD_MSG + const CMD_MUTE + const CMD_OFFLINE + const CMD_ONLINE + const CMD_OPEN + const CMD_PURPOSE + const CMD_REMOVE + const CMD_RENAME + const CMD_SEARCH + const CMD_SETTINGS + const CMD_SHORTCUTS + const CMD_SHRUG + const CMD_TEST + const COOKIE_OAUTH + const DAY_MILLISECONDS + const DEADLOCK_TICKER + const DEADLOCK_WARN + 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 LINK_CACHE_DURATION + const LINK_CACHE_SIZE + const MIGRATION_KEY_ADD_BOT_PERMISSIONS + const MIGRATION_KEY_ADD_MANAGE_GUESTS_PERMISSIONS + const MIGRATION_KEY_APPLY_CHANNEL_MANAGE_DELETE_TO_CHANNEL_USER + const MIGRATION_KEY_EMOJI_PERMISSIONS_SPLIT + const MIGRATION_KEY_LIST_JOIN_PUBLIC_PRIVATE_TEAMS + const MIGRATION_KEY_REMOVE_CHANNEL_MANAGE_DELETE_FROM_TEAM_USER + const MIGRATION_KEY_REMOVE_PERMANENT_DELETE_USER + const MIGRATION_KEY_VIEW_MEMBERS_NEW_PERMISSION + const MIGRATION_KEY_WEBHOOK_PERMISSIONS_SPLIT + 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 PAGE_DEFAULT + const PASSWORD_RECOVER_EXPIRY_TIME + const PENDING_POST_IDS_CACHE_SIZE + const PENDING_POST_IDS_CACHE_TTL + const PERMISSION_CREATE_BOT + const PERMISSION_CREATE_EMOJIS + 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_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_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_PROPERTIES + const PERMISSION_MANAGE_PUBLIC_CHANNEL_PROPERTIES + const PERMISSION_MANAGE_SYSTEM + const PERMISSION_MANAGE_WEBHOOKS + const PERMISSION_PERMANENT_DELETE_USER + const PERMISSION_PROMOTE_GUEST + const PERMISSION_READ_BOTS + const PERMISSION_READ_OTHERS_BOTS + const PERMISSION_VIEW_MEMBERS + const PING_PERIOD + const PONG_WAIT + 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 PUSH_NOTIFICATIONS_HUB_BUFFER_PER_WORKER + const PUSH_NOTIFICATION_HUB_WORKERS + const RotatedCCW + const RotatedCCWMirrored + const RotatedCW + const RotatedCWMirrored + const SECURITY_UPDATE_PERIOD + const SECURITY_URL + const SEGMENT_KEY + const SEND_DEADLOCK_WARN + const SEND_QUEUE_SIZE + const SEND_SLOW_WARN + const SESSIONS_CLEANUP_BATCH_SIZE + const SLACK_IMPORT_MAX_FILE_SIZE + const SamlIdpCertificateName + const SamlPrivateKeyName + const SamlPublicCertificateName + const TIMESTAMP_FORMAT + const TIME_TO_WAIT_FOR_CONNECTIONS_TO_CLOSE_ON_SERVER_SHUTDOWN + const TOKEN_TYPE_GUEST_INVITATION + const TOKEN_TYPE_PASSWORD_RECOVERY + const TOKEN_TYPE_TEAM_INVITATION + const TOKEN_TYPE_VERIFY_EMAIL + const TRACK_ACTIVITY + const TRACK_CONFIG_ANALYTICS + const TRACK_CONFIG_ANNOUNCEMENT + const TRACK_CONFIG_CLIENT_REQ + const TRACK_CONFIG_CLUSTER + const TRACK_CONFIG_COMPLIANCE + const TRACK_CONFIG_DATA_RETENTION + const TRACK_CONFIG_DISPLAY + const TRACK_CONFIG_ELASTICSEARCH + const TRACK_CONFIG_EMAIL + const TRACK_CONFIG_EXPERIMENTAL + const TRACK_CONFIG_FILE + const TRACK_CONFIG_GUEST_ACCOUNTS + const TRACK_CONFIG_IMAGE_PROXY + const TRACK_CONFIG_LDAP + const TRACK_CONFIG_LOCALIZATION + const TRACK_CONFIG_LOG + const TRACK_CONFIG_MESSAGE_EXPORT + const TRACK_CONFIG_METRICS + const TRACK_CONFIG_NATIVEAPP + const TRACK_CONFIG_NOTIFICATION_LOG + const TRACK_CONFIG_OAUTH + const TRACK_CONFIG_PASSWORD + const TRACK_CONFIG_PLUGIN + const TRACK_CONFIG_PRIVACY + const TRACK_CONFIG_RATE + const TRACK_CONFIG_SAML + const TRACK_CONFIG_SERVICE + const TRACK_CONFIG_SQL + const TRACK_CONFIG_SUPPORT + const TRACK_CONFIG_TEAM + const TRACK_CONFIG_THEME + const TRACK_ELASTICSEARCH + const TRACK_LICENSE + const TRACK_PERMISSIONS_GENERAL + const TRACK_PERMISSIONS_SYSTEM_SCHEME + const TRACK_PERMISSIONS_TEAM_SCHEMES + const TRACK_PLUGINS + const TRACK_SERVER + const TRIGGERWORDS_EXACT_MATCH + const TRIGGERWORDS_STARTS_WITH + const USER_PASSWORD + const UploadFileInitialBufferSize + const Upright + const UprightMirrored + const UpsideDown + const UpsideDownMirrored + const WEBCONN_MEMBER_CACHE_TIME + const WRITE_WAIT + var CHANNEL_DISPLAY_NAME_LEN = utils.Range + var CHANNEL_NAME_LEN = utils.Range + var MaxNotificationsPerChannelDefault int64 = 1000000 + var TEAM_DOMAIN_NAME_LEN = utils.Range + var TEAM_EMAIL_LEN = utils.Range + var TEAM_NAME_LEN = utils.Range + var TEST_IMAGE_FILENAMES = []string + var USER_EMAIL_LEN = utils.Range + var USER_NAME_LEN = utils.Range + 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 JoinCluster(s *Server) error + func OpenGraphDataWithProxyAddedToImageURLs(ogdata *opengraph.OpenGraph, toProxyURL func(string) string) *opengraph.OpenGraph + func RegisterAccountMigrationInterface(f func(*Server) einterfaces.AccountMigrationInterface) + func RegisterClusterInterface(f func(*Server) einterfaces.ClusterInterface) + func RegisterCommandProvider(newProvider CommandProvider) + func RegisterComplianceInterface(f func(*App) einterfaces.ComplianceInterface) + func RegisterDataRetentionInterface(f func(*App) einterfaces.DataRetentionInterface) + func RegisterElasticsearchInterface(f func(*App) einterfaces.ElasticsearchInterface) + func RegisterJobsDataRetentionJobInterface(f func(*App) ejobs.DataRetentionJobInterface) + func RegisterJobsElasticsearchAggregatorInterface(f func(*App) ejobs.ElasticsearchAggregatorInterface) + func RegisterJobsElasticsearchIndexerInterface(f func(*App) ejobs.ElasticsearchIndexerInterface) + func RegisterJobsLdapSyncInterface(f func(*App) ejobs.LdapSyncInterface) + func RegisterJobsMessageExportJobInterface(f func(*App) ejobs.MessageExportJobInterface) + func RegisterJobsMigrationsJobInterface(f func(*App) tjobs.MigrationsJobInterface) + func RegisterJobsPluginsJobInterface(f func(*App) tjobs.PluginsJobInterface) + func RegisterLdapInterface(f func(*App) einterfaces.LdapInterface) + func RegisterMessageExportInterface(f func(*App) einterfaces.MessageExportInterface) + func RegisterMetricsInterface(f func(*App) einterfaces.MetricsInterface) + func RegisterNewSamlInterface(f func(*App) einterfaces.SamlInterface) + func RegisterNotificationInterface(f func(*App) einterfaces.NotificationInterface) + func RegisterSamlInterface(f func(*App) einterfaces.SamlInterface) + func RemoveRoles(rolesToRemove []string, roles string) string + func ReturnWebSocketError(conn *WebConn, r *model.WebSocketRequest, err *model.AppError) + func RunJobs(s *Server) error + func ShouldSendPushNotification(user *model.User, channelNotifyProps model.StringMap, wasMentioned bool, ...) bool + func SlackConvertChannelMentions(channels []SlackChannel, posts map[string][]SlackPost) map[string][]SlackPost + func SlackConvertChannelName(channelName string, channelId string) string + func SlackConvertPostsMarkup(posts map[string][]SlackPost) map[string][]SlackPost + func SlackConvertTimeStamp(ts string) int64 + func SlackConvertUserMentions(users []SlackUser, posts map[string][]SlackPost) map[string][]SlackPost + func SlackSanitiseChannelProperties(channel model.Channel) model.Channel + func SplitWebhookPost(post *model.Post, maxPostSize int) ([]*model.Post, *model.AppError) + func StartElasticsearch(s *Server) error + func StartMetrics(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 + AcceptLanguage string + AccountMigration einterfaces.AccountMigrationInterface + Cluster einterfaces.ClusterInterface + Compliance einterfaces.ComplianceInterface + DataRetention einterfaces.DataRetentionInterface + Elasticsearch einterfaces.ElasticsearchInterface + HTTPService httpservice.HTTPService + ImageProxy *imageproxy.ImageProxy + IpAddress string + Ldap einterfaces.LdapInterface + Log *mlog.Logger + MessageExport einterfaces.MessageExportInterface + Metrics einterfaces.MetricsInterface + Notification einterfaces.NotificationInterface + NotificationsLog *mlog.Logger + Path string + RequestId string + Saml einterfaces.SamlInterface + Session model.Session + Srv *Server + T goi18n.TranslateFunc + Timezones *timezones.Timezones + UserAgent string + func New(options ...AppOption) *App + 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) AddLicenseListener(listener func()) string + func (a *App) AddNotificationEmailToBatch(user *model.User, post *model.Post, team *model.Team) *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) AllowOAuthAppAccessToUser(userId string, authRequest *model.AuthorizeRequest) (string, *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 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.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) 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) CheckForClientSideCert(r *http.Request) (string, string, string) + 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) ClearChannelMembersCache(channelID string) + func (a *App) ClearPushNotification(currentSessionId, userId, channelId string) + func (a *App) ClearPushNotificationSync(currentSessionId, userId, channelId string) *model.AppError + 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) ClientLicense() map[string]string + func (a *App) ClusterBusyStateChgHandler(msg *model.ClusterMessage) + func (a *App) ClusterClearSessionCacheForAllUsersHandler(msg *model.ClusterMessage) + func (a *App) ClusterClearSessionCacheForUserHandler(msg *model.ClusterMessage) + func (a *App) ClusterInstallPluginHandler(msg *model.ClusterMessage) + func (a *App) ClusterInvalidateAllCachesHandler(msg *model.ClusterMessage) + func (a *App) ClusterInvalidateCacheForChannelByNameHandler(msg *model.ClusterMessage) + func (a *App) ClusterInvalidateCacheForChannelMembersNotifyPropHandler(msg *model.ClusterMessage) + func (a *App) ClusterInvalidateCacheForUserHandler(msg *model.ClusterMessage) + func (a *App) ClusterInvalidateCacheForUserTeamsHandler(msg *model.ClusterMessage) + func (a *App) ClusterPublishHandler(msg *model.ClusterMessage) + func (a *App) ClusterRemovePluginHandler(msg *model.ClusterMessage) + func (a *App) ClusterUpdateStatusHandler(msg *model.ClusterMessage) + 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) (*model.User, *model.AppError) + func (a *App) Config() *model.Config + 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) CreateBasicUser(client *model.Client4) *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) 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) (*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 bool) (savedPost *model.Post, err *model.AppError) + func (a *App) CreatePostAsUser(post *model.Post, currentSessionId string) (*model.Post, *model.AppError) + func (a *App) CreatePostMissingChannel(post *model.Post, triggerWebhooks bool) (*model.Post, *model.AppError) + func (a *App) CreatePushNotificationsHub() + 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) 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) 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) (*model.User, *model.AppError) + func (a *App) CreateUserFromSignup(user *model.User) (*model.User, *model.AppError) + func (a *App) CreateUserWithInviteId(user *model.User, inviteId string) (*model.User, *model.AppError) + func (a *App) CreateUserWithToken(user *model.User, token *model.Token) (*model.User, *model.AppError) + func (a *App) CreateVerifyEmailToken(userId string, newEmail string) (*model.Token, *model.AppError) + func (a *App) CreateWebhookPost(userId string, channel *model.Channel, ...) (*model.Post, *model.AppError) + 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) 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) DeleteToken(token *model.Token) *model.AppError + func (a *App) DemoteUserToGuest(user *model.User) *model.AppError + func (a *App) DiagnosticId() string + 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) 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() *model.AppError + 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) 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) EnsureDiagnosticId() + func (a *App) EnvironmentConfig() map[string]interface{} + func (a *App) ExecuteCommand(args *model.CommandArgs) (*model.CommandResponse, *model.AppError) + func (a *App) ExportAllChannels(writer io.Writer) *model.AppError + func (a *App) ExportAllDirectChannels(writer io.Writer) *model.AppError + func (a *App) ExportAllDirectPosts(writer io.Writer) *model.AppError + func (a *App) ExportAllPosts(writer io.Writer) *model.AppError + func (a *App) ExportAllTeams(writer io.Writer) *model.AppError + func (a *App) ExportAllUsers(writer io.Writer) *model.AppError + func (a *App) ExportCustomEmoji(writer io.Writer, file string, pathToEmojiDir string, ...) *model.AppError + func (a *App) ExportPermissions(w io.Writer) error + func (a *App) ExportVersion(writer io.Writer) *model.AppError + func (a *App) ExportWriteLine(writer io.Writer, line *LineImportData) *model.AppError + 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) 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) 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) 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) (*model.ChannelList, *model.AppError) + func (a *App) GetChannelsUserNotIn(teamId string, userId string, offset int, limit int) (*model.ChannelList, *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) GetFile(fileId string) ([]byte, *model.AppError) + func (a *App) GetFileInfo(fileId string) (*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) 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) (*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) 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) 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) 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) 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) (*model.PostList, *model.AppError) + func (a *App) GetPosts(channelId string, offset int, limit int) (*model.PostList, *model.AppError) + func (a *App) GetPostsAfterPost(channelId, postId string, page, perPage int) (*model.PostList, *model.AppError) + func (a *App) GetPostsAroundPost(postId, channelId string, offset, limit int, before bool) (*model.PostList, *model.AppError) + func (a *App) GetPostsBeforePost(channelId, postId string, page, perPage int) (*model.PostList, *model.AppError) + func (a *App) GetPostsEtag(channelId string) string + func (a *App) GetPostsForChannelAroundLastUnread(channelId, userId string, limitBefore, limitAfter int) (*model.PostList, *model.AppError) + func (a *App) GetPostsPage(channelId string, page int, perPage int) (*model.PostList, *model.AppError) + func (a *App) GetPostsSince(channelId string, time int64) (*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) 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) GetSanitizedClientLicense() map[string]string + 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) (string, string, string, *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) GetSessions(userId string) ([]*model.Session, *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) 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) 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) GetTotalUsersStats(viewRestrictions *model.ViewUsersRestrictions) (*model.UsersStats, *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(channelId string, offset int, limit int) ([]*model.User, *model.AppError) + func (a *App) GetUsersInChannelByStatus(channelId string, offset int, limit int) ([]*model.User, *model.AppError) + func (a *App) GetUsersInChannelMap(channelId string, offset int, limit int, asAdmin bool) (map[string]*model.User, *model.AppError) + func (a *App) GetUsersInChannelPage(channelId string, page int, perPage int, asAdmin bool) ([]*model.User, *model.AppError) + func (a *App) GetUsersInChannelPageByStatus(channelId string, page int, perPage int, 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) GetViewUsersRestrictionsForTeam(userId string, teamId string) ([]string, *model.AppError) + func (a *App) HTMLTemplates() *template.Template + 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) ImageProxyAdder() func(string) string + func (a *App) ImageProxyRemover() (f func(string) string) + func (a *App) ImportAttachment(data *AttachmentImportData, post *model.Post, teamId string, dryRun bool) (*model.FileInfo, *model.AppError) + func (a *App) ImportChannel(data *ChannelImportData, dryRun bool) *model.AppError + func (a *App) ImportDirectChannel(data *DirectChannelImportData, dryRun bool) *model.AppError + func (a *App) ImportDirectPost(data *DirectPostImportData, dryRun bool) *model.AppError + func (a *App) ImportEmoji(data *EmojiImportData, dryRun bool) *model.AppError + func (a *App) ImportLine(line LineImportData, dryRun bool) *model.AppError + func (a *App) ImportPermissions(jsonl io.Reader) error + func (a *App) ImportPost(data *PostImportData, dryRun bool) *model.AppError + func (a *App) ImportReaction(data *ReactionImportData, post *model.Post, dryRun bool) *model.AppError + func (a *App) ImportReply(data *ReplyImportData, post *model.Post, teamId string, dryRun bool) *model.AppError + func (a *App) ImportRole(data *RoleImportData, dryRun bool, isSchemeRole bool) *model.AppError + func (a *App) ImportScheme(data *SchemeImportData, dryRun bool) *model.AppError + func (a *App) ImportTeam(data *TeamImportData, dryRun bool) *model.AppError + func (a *App) ImportUser(data *UserImportData, dryRun bool) *model.AppError + func (a *App) ImportUserChannels(user *model.User, team *model.Team, teamMember *model.TeamMember, ...) *model.AppError + func (a *App) ImportUserTeams(user *model.User, data *[]UserTeamImportData) *model.AppError + func (a *App) InitPlugins(pluginDir, webappPluginDir string) + func (a *App) InitPostMetadata() + 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) InvalidateAllCaches() *model.AppError + func (a *App) InvalidateAllCachesSkipSend() + func (a *App) InvalidateAllEmailInvites() *model.AppError + func (a *App) InvalidateCacheForChannel(channel *model.Channel) + func (a *App) InvalidateCacheForChannelByNameSkipClusterSend(teamId, name string) + func (a *App) InvalidateCacheForChannelMembers(channelId string) + func (a *App) InvalidateCacheForChannelMembersNotifyProps(channelId string) + func (a *App) InvalidateCacheForChannelMembersNotifyPropsSkipClusterSend(channelId string) + func (a *App) InvalidateCacheForChannelPosts(channelId string) + func (a *App) InvalidateCacheForUser(userId string) + func (a *App) InvalidateCacheForUserSkipClusterSend(userId string) + func (a *App) InvalidateCacheForUserTeams(userId string) + func (a *App) InvalidateCacheForUserTeamsSkipClusterSend(userId string) + func (a *App) InvalidateCacheForWebhook(webhookId 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) IsESAutocompletionEnabled() bool + func (a *App) IsESIndexingEnabled() bool + func (a *App) IsESSearchEnabled() bool + 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) LeaveChannel(channelId string, userId string) *model.AppError + func (a *App) LeaveTeam(team *model.Team, user *model.User, requestorId string) *model.AppError + func (a *App) License() *model.License + 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) ListPluginKeys(pluginId string, page, perPage int) ([]string, *model.AppError) + func (a *App) ListTeamCommands(teamId string) ([]*model.Command, *model.AppError) + func (a *App) LoadLicense() + func (a *App) LoginByOAuth(service string, userData io.Reader, teamId string) (*model.User, *model.AppError) + func (a *App) MakePermissionError(permission *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) MigrateFilenamesToFileInfos(post *model.Post) []*model.FileInfo + 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) NewEmailTemplate(name, locale string) *utils.HTMLTemplate + 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) OldImportChannel(channel *model.Channel, sChannel SlackChannel, users map[string]*model.User) *model.Channel + func (a *App) OldImportFile(timestamp time.Time, file io.Reader, teamId string, channelId string, ...) (*model.FileInfo, error) + func (a *App) OldImportIncomingWebhookPost(post *model.Post, props model.StringInterface) string + func (a *App) OldImportPost(post *model.Post) string + func (a *App) OldImportUser(team *model.Team, user *model.User) *model.User + 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) ParseOpenGraphMetadata(requestURL string, body io.Reader, contentType string) *opengraph.OpenGraph + 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) 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) 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) 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) RegisterAllClusterMessageHandlers() + func (a *App) RegisterPluginCommand(pluginId string, command *model.Command) error + func (a *App) ReloadConfig() error + func (a *App) RemoveConfigListener(id string) + func (a *App) RemoveFile(path string) *model.AppError + func (a *App) RemoveLicense() *model.AppError + func (a *App) RemoveLicenseListener(id string) + 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) 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) 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) 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) SaveLicense(licenseBytes []byte) (*model.License, *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(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) 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) 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) (bool, *model.AppError) + func (a *App) SendAutoResponseIfNecessary(channel *model.Channel, sender *model.User) (bool, *model.AppError) + func (a *App) SendChangeUsernameEmail(oldUsername, newUsername, email, locale, siteURL string) *model.AppError + func (a *App) SendDailyDiagnostics() + func (a *App) SendDeactivateAccountEmail(email string, locale, siteURL string) *model.AppError + func (a *App) SendDiagnostic(event string, properties map[string]interface{}) + func (a *App) SendEmailChangeEmail(oldEmail, newEmail, locale, siteURL string) *model.AppError + func (a *App) SendEmailChangeVerifyEmail(newUserEmail, locale, siteURL, token string) *model.AppError + func (a *App) SendEmailVerification(user *model.User, newEmail string) *model.AppError + func (a *App) SendEphemeralPost(userId string, post *model.Post) *model.Post + func (a *App) SendGuestInviteEmails(team *model.Team, channels []*model.Channel, senderName string, ...) + func (a *App) SendInviteEmails(team *model.Team, senderName string, senderUserId string, invites []string, ...) + func (a *App) SendMail(to, subject, htmlBody string) *model.AppError + func (a *App) SendMailWithEmbeddedFiles(to, subject, htmlBody string, embeddedFiles map[string]io.Reader) *model.AppError + func (a *App) SendMfaChangeEmail(email string, activated bool, locale, siteURL string) *model.AppError + func (a *App) SendNotificationMail(to, subject, htmlBody string) *model.AppError + func (a *App) SendNotifications(post *model.Post, team *model.Team, channel *model.Channel, sender *model.User, ...) ([]string, error) + func (a *App) SendPasswordChangeEmail(email, method, locale, siteURL string) *model.AppError + func (a *App) SendPasswordReset(email string, siteURL string) (bool, *model.AppError) + func (a *App) SendPasswordResetEmail(email string, token *model.Token, locale, siteURL string) (bool, *model.AppError) + func (a *App) SendSignInChangeEmail(email, method, locale, siteURL string) *model.AppError + func (a *App) SendUserAccessTokenAddedEmail(email, locale, siteURL string) *model.AppError + func (a *App) SendVerifyEmail(userEmail, locale, siteURL, token string) *model.AppError + func (a *App) SendWelcomeEmail(userId string, email string, verified bool, locale, siteURL string) *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) SessionCacheLength() int + func (a *App) SessionHasPermissionTo(session model.Session, permission *model.Permission) 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) 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) SetClientLicense(m map[string]string) + func (a *App) SetDefaultProfileImage(user *model.User) *model.AppError + func (a *App) SetDiagnosticId(id string) + func (a *App) SetLicense(license *model.License) bool + 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) SetSamlIdpCertificateFromMetadata(data []byte) *model.AppError + 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) 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) SetupInviteEmailRateLimiting() error + func (a *App) ShutDownPlugins() + func (a *App) Shutdown() + func (a *App) SlackAddBotUser(teamId string, log *bytes.Buffer) *model.User + func (a *App) SlackAddChannels(teamId string, slackchannels []SlackChannel, posts map[string][]SlackPost, ...) map[string]*model.Channel + func (a *App) SlackAddPosts(teamId string, channel *model.Channel, posts []SlackPost, ...) + func (a *App) SlackAddUsers(teamId string, slackusers []SlackUser, importerLog *bytes.Buffer) map[string]*model.User + func (a *App) SlackImport(fileData multipart.File, fileSize int64, teamID string) (*model.AppError, *bytes.Buffer) + func (a *App) SlackUploadFile(slackPostFile *SlackFile, uploads map[string]*zip.File, teamId string, ...) (*model.FileInfo, bool) + func (a *App) SoftDeleteTeam(teamId string) *model.AppError + func (a *App) StartPushNotificationsHubWorkers() + func (a *App) StopPushNotificationsHubWorkers() + 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) 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) TestElasticsearch(cfg *model.Config) *model.AppError + func (a *App) TestEmail(userId string, cfg *model.Config) *model.AppError + func (a *App) TestLdap() *model.AppError + func (a *App) TestSiteURL(siteURL string) *model.AppError + func (a *App) ToggleMuteChannel(channelId string, userId string) *model.ChannelMember + 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) UpdateFileInfoWithPostId(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) 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) UpdateMobileAppBadgeSync(userId string) *model.AppError + 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) 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) 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) 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) UpdateWebConnUserActivity(session model.Session, activityAt int64) + 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) UserCanSeeOtherUser(userId string, otherUserId string) (bool, *model.AppError) + func (a *App) UserIsInAdminRoleGroup(userID, syncableID string, syncableType model.GroupSyncableType) (bool, *model.AppError) + func (a *App) ValidateAndSetLicenseBytes(b []byte) + 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 AppOption func(a *App) + func ServerConnector(s *Server) AppOption + type AppOptionCreator func() []AppOption + type AttachmentImportData struct + Path *string + type AutoChannelCreator struct + ChannelType string + DisplayNameCharset string + DisplayNameLen utils.Range + Fuzzy bool + NameCharset string + NameLen utils.Range + func NewAutoChannelCreator(client *model.Client4, team *model.Team) *AutoChannelCreator + func (cfg *AutoChannelCreator) CreateTestChannels(num utils.Range) ([]*model.Channel, bool) + type AutoPostCreator struct + Fuzzy bool + HasImage bool + ImageFilenames []string + Mentions utils.Range + Tags utils.Range + TextLength utils.Range + Users []string + func NewAutoPostCreator(client *model.Client4, channelid string) *AutoPostCreator + func (cfg *AutoPostCreator) CreateRandomPost() (*model.Post, bool) + func (cfg *AutoPostCreator) UploadTestFile() ([]string, bool) + type AutoTeamCreator struct + DomainCharset string + DomainLength utils.Range + EmailCharset string + EmailLength utils.Range + Fuzzy bool + NameCharset string + NameLength utils.Range + func NewAutoTeamCreator(client *model.Client4) *AutoTeamCreator + func (cfg *AutoTeamCreator) CreateTestTeams(num utils.Range) ([]*model.Team, bool) + type AutoUserCreator struct + EmailCharset string + EmailLength utils.Range + Fuzzy bool + NameCharset string + NameLength utils.Range + func NewAutoUserCreator(a *App, client *model.Client4, team *model.Team) *AutoUserCreator + func (cfg *AutoUserCreator) CreateTestUsers(num utils.Range) ([]*model.User, bool) + type AwayProvider struct + func (me *AwayProvider) DoCommand(a *App, args *model.CommandArgs, message string) *model.CommandResponse + func (me *AwayProvider) GetCommand(a *App, T goi18n.TranslateFunc) *model.Command + func (me *AwayProvider) GetTrigger() string + 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 (me *ClusterDiscoveryService) Start() + func (me *ClusterDiscoveryService) Stop() + type CodeProvider struct + func (me *CodeProvider) DoCommand(a *App, args *model.CommandArgs, message string) *model.CommandResponse + func (me *CodeProvider) GetCommand(a *App, T goi18n.TranslateFunc) *model.Command + func (me *CodeProvider) GetTrigger() string + type CollapseProvider struct + func (me *CollapseProvider) DoCommand(a *App, args *model.CommandArgs, message string) *model.CommandResponse + func (me *CollapseProvider) GetCommand(a *App, T goi18n.TranslateFunc) *model.Command + func (me *CollapseProvider) GetTrigger() string + 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 + Reactions *[]ReactionImportData + Replies *[]ReplyImportData + User *string + type DndProvider struct + func (me *DndProvider) DoCommand(a *App, args *model.CommandArgs, message string) *model.CommandResponse + func (me *DndProvider) GetCommand(a *App, T goi18n.TranslateFunc) *model.Command + func (me *DndProvider) GetTrigger() string + type EchoProvider struct + func (me *EchoProvider) DoCommand(a *App, args *model.CommandArgs, message string) *model.CommandResponse + func (me *EchoProvider) GetCommand(a *App, T goi18n.TranslateFunc) *model.Command + func (me *EchoProvider) GetTrigger() string + type EmailBatchingJob struct + func NewEmailBatchingJob(s *Server, 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 EmojiImportData struct + Image *string + Name *string + type ExpandProvider struct + func (me *ExpandProvider) DoCommand(a *App, args *model.CommandArgs, message string) *model.CommandResponse + func (me *ExpandProvider) GetCommand(a *App, T goi18n.TranslateFunc) *model.Command + func (me *ExpandProvider) GetTrigger() string + type ExplicitMentions struct + AllMentioned bool + ChannelMentioned bool + HereMentioned bool + Mentions map[string]MentionType + OtherPotentialMentions []string + type HeaderProvider struct + func (me *HeaderProvider) DoCommand(a *App, args *model.CommandArgs, message string) *model.CommandResponse + func (me *HeaderProvider) GetCommand(a *App, T goi18n.TranslateFunc) *model.Command + func (me *HeaderProvider) GetTrigger() string + type HelpProvider struct + func (h *HelpProvider) DoCommand(a *App, args *model.CommandArgs, message string) *model.CommandResponse + func (h *HelpProvider) GetCommand(a *App, T goi18n.TranslateFunc) *model.Command + func (h *HelpProvider) GetTrigger() string + type Hub struct + ExplicitStop bool + func (h *Hub) Broadcast(message *model.WebSocketEvent) + func (h *Hub) InvalidateUser(userId string) + func (h *Hub) Register(webConn *WebConn) + func (h *Hub) Start() + func (h *Hub) Stop() + func (h *Hub) Unregister(webConn *WebConn) + func (h *Hub) UpdateActivity(userId, sessionToken string, activityAt int64) + type InvitePeopleProvider struct + func (me *InvitePeopleProvider) DoCommand(a *App, args *model.CommandArgs, message string) *model.CommandResponse + func (me *InvitePeopleProvider) GetCommand(a *App, T goi18n.TranslateFunc) *model.Command + func (me *InvitePeopleProvider) GetTrigger() string + type InviteProvider struct + func (me *InviteProvider) DoCommand(a *App, args *model.CommandArgs, message string) *model.CommandResponse + func (me *InviteProvider) GetCommand(a *App, T goi18n.TranslateFunc) *model.Command + func (me *InviteProvider) GetTrigger() string + type JoinProvider struct + func (me *JoinProvider) DoCommand(a *App, args *model.CommandArgs, message string) *model.CommandResponse + func (me *JoinProvider) GetCommand(a *App, T goi18n.TranslateFunc) *model.Command + func (me *JoinProvider) GetTrigger() string + type KickProvider struct + func (me *KickProvider) DoCommand(a *App, args *model.CommandArgs, message string) *model.CommandResponse + func (me *KickProvider) GetCommand(a *App, T goi18n.TranslateFunc) *model.Command + func (me *KickProvider) GetTrigger() string + type LeaveProvider struct + func (me *LeaveProvider) DoCommand(a *App, args *model.CommandArgs, message string) *model.CommandResponse + func (me *LeaveProvider) GetCommand(a *App, T goi18n.TranslateFunc) *model.Command + func (me *LeaveProvider) GetTrigger() 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 LoadTestProvider struct + func (me *LoadTestProvider) ActivateUserCommand(a *App, args *model.CommandArgs, message string) *model.CommandResponse + func (me *LoadTestProvider) ChannelsCommand(a *App, args *model.CommandArgs, message string) *model.CommandResponse + func (me *LoadTestProvider) DeActivateUserCommand(a *App, args *model.CommandArgs, message string) *model.CommandResponse + func (me *LoadTestProvider) DoCommand(a *App, args *model.CommandArgs, message string) *model.CommandResponse + func (me *LoadTestProvider) GetCommand(a *App, T goi18n.TranslateFunc) *model.Command + func (me *LoadTestProvider) GetTrigger() string + func (me *LoadTestProvider) HelpCommand(args *model.CommandArgs, message string) *model.CommandResponse + func (me *LoadTestProvider) JsonCommand(a *App, args *model.CommandArgs, message string) *model.CommandResponse + func (me *LoadTestProvider) PostCommand(a *App, args *model.CommandArgs, message string) *model.CommandResponse + func (me *LoadTestProvider) PostsCommand(a *App, args *model.CommandArgs, message string) *model.CommandResponse + func (me *LoadTestProvider) SetupCommand(a *App, args *model.CommandArgs, message string) *model.CommandResponse + func (me *LoadTestProvider) UrlCommand(a *App, args *model.CommandArgs, message string) *model.CommandResponse + func (me *LoadTestProvider) UsersCommand(a *App, args *model.CommandArgs, message string) *model.CommandResponse + type LocalResponseWriter struct + func (w *LocalResponseWriter) Header() http.Header + func (w *LocalResponseWriter) Write(bytes []byte) (int, error) + func (w *LocalResponseWriter) WriteHeader(statusCode int) + type LogoutProvider struct + func (me *LogoutProvider) DoCommand(a *App, args *model.CommandArgs, message string) *model.CommandResponse + func (me *LogoutProvider) GetCommand(a *App, T goi18n.TranslateFunc) *model.Command + func (me *LogoutProvider) GetTrigger() string + type MeProvider struct + func (me *MeProvider) DoCommand(a *App, args *model.CommandArgs, message string) *model.CommandResponse + func (me *MeProvider) GetCommand(a *App, T goi18n.TranslateFunc) *model.Command + func (me *MeProvider) GetTrigger() string + type MentionType int + const ChannelMention + const CommentMention + const DMMention + const KeywordMention + const NoMention + const ThreadMention + type MuteProvider struct + func (me *MuteProvider) DoCommand(a *App, args *model.CommandArgs, message string) *model.CommandResponse + func (me *MuteProvider) GetCommand(a *App, T goi18n.TranslateFunc) *model.Command + func (me *MuteProvider) GetTrigger() string + type NotificationType string + const NOTIFICATION_TYPE_CLEAR + const NOTIFICATION_TYPE_MESSAGE + const NOTIFICATION_TYPE_UPDATE_BADGE + type OfflineProvider struct + func (me *OfflineProvider) DoCommand(a *App, args *model.CommandArgs, message string) *model.CommandResponse + func (me *OfflineProvider) GetCommand(a *App, T goi18n.TranslateFunc) *model.Command + func (me *OfflineProvider) GetTrigger() string + type OnlineProvider struct + func (me *OnlineProvider) DoCommand(a *App, args *model.CommandArgs, message string) *model.CommandResponse + func (me *OnlineProvider) GetCommand(a *App, T goi18n.TranslateFunc) *model.Command + func (me *OnlineProvider) GetTrigger() string + type OpenProvider struct + func (open *OpenProvider) GetCommand(a *App, T goi18n.TranslateFunc) *model.Command + func (open *OpenProvider) GetTrigger() string + type Option func(s *Server) error + func Config(dsn string, watch bool) 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) 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) DeleteEphemeralPost(userId, postId string) + func (api *PluginAPI) DeletePost(postId string) *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) 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) 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) 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) 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) 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) 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) 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) 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) UpdateEphemeralPost(userId string, post *model.Post) *model.Post + func (api *PluginAPI) UpdatePost(post *model.Post) (*model.Post, *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 + 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 PurposeProvider struct + func (me *PurposeProvider) DoCommand(a *App, args *model.CommandArgs, message string) *model.CommandResponse + func (me *PurposeProvider) GetCommand(a *App, T goi18n.TranslateFunc) *model.Command + func (me *PurposeProvider) GetTrigger() string + type PushNotification struct + type PushNotificationsHub struct + Channels []chan PushNotification + func (hub *PushNotificationsHub) GetGoChannelFromUserId(userId string) chan PushNotification + 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 RemoveProvider struct + func (me *RemoveProvider) DoCommand(a *App, args *model.CommandArgs, message string) *model.CommandResponse + func (me *RemoveProvider) GetCommand(a *App, T goi18n.TranslateFunc) *model.Command + func (me *RemoveProvider) GetTrigger() string + type RenameProvider struct + func (me *RenameProvider) DoCommand(a *App, args *model.CommandArgs, message string) *model.CommandResponse + func (me *RenameProvider) GetCommand(a *App, T goi18n.TranslateFunc) *model.Command + func (me *RenameProvider) GetTrigger() string + 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 SearchProvider struct + func (search *SearchProvider) DoCommand(a *App, args *model.CommandArgs, message string) *model.CommandResponse + func (search *SearchProvider) GetCommand(a *App, T goi18n.TranslateFunc) *model.Command + func (search *SearchProvider) GetTrigger() string + type Server struct + AccountMigration einterfaces.AccountMigrationInterface + Busy *Busy + CacheProvider cache.Provider + Cluster einterfaces.ClusterInterface + Compliance einterfaces.ComplianceInterface + DataRetention einterfaces.DataRetentionInterface + Elasticsearch einterfaces.ElasticsearchInterface + EmailBatching *EmailBatchingJob + EmailRateLimiter *throttled.GCRARateLimiter + HTTPService httpservice.HTTPService + Hubs []*Hub + HubsStopCheckingForDeadlock chan bool + ImageProxy *imageproxy.ImageProxy + Jobs *jobs.JobServer + Ldap einterfaces.LdapInterface + ListenAddr *net.TCPAddr + 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 + 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()) string + func (s *Server) AppOptions() []AppOption + func (s *Server) AsymmetricSigningKey() *ecdsa.PrivateKey + func (s *Server) Config() *model.Config + func (s *Server) DoSecurityUpdateCheck() + func (s *Server) EnvironmentConfig() map[string]interface{} + func (s *Server) FakeApp() *App + func (s *Server) Go(f func()) + func (s *Server) InitEmailBatching() + func (s *Server) InvokeClusterLeaderChangedListeners() + func (s *Server) License() *model.License + func (s *Server) PostActionCookieSecret() []byte + func (s *Server) ReloadConfig() error + func (s *Server) RemoveClusterLeaderChangedListener(id string) + func (s *Server) RemoveConfigListener(id string) + func (s *Server) RemoveLicenseListener(id string) + func (s *Server) RunOldAppInitialization() error + func (s *Server) RunOldAppShutdown() + func (s *Server) Shutdown() error + func (s *Server) Start() error + func (s *Server) StartElasticsearch() + func (s *Server) StopHTTPServer() + func (s *Server) UpdateConfig(f func(*model.Config)) + func (s *Server) WaitForGoroutines() + type SettingsProvider struct + func (settings *SettingsProvider) DoCommand(a *App, args *model.CommandArgs, message string) *model.CommandResponse + func (settings *SettingsProvider) GetCommand(a *App, T goi18n.TranslateFunc) *model.Command + func (settings *SettingsProvider) GetTrigger() string + type ShortcutsProvider struct + func (me *ShortcutsProvider) DoCommand(a *App, args *model.CommandArgs, message string) *model.CommandResponse + func (me *ShortcutsProvider) GetCommand(a *App, T goi18n.TranslateFunc) *model.Command + func (me *ShortcutsProvider) GetTrigger() string + type ShrugProvider struct + func (me *ShrugProvider) DoCommand(a *App, args *model.CommandArgs, message string) *model.CommandResponse + func (me *ShrugProvider) GetCommand(a *App, T goi18n.TranslateFunc) *model.Command + func (me *ShrugProvider) GetTrigger() string + type SlackChannel struct + Creator string + Id string + Members []string + Name string + Purpose SlackChannelSub + Topic SlackChannelSub + Type string + func SlackParseChannels(data io.Reader, channelType string) ([]SlackChannel, error) + type SlackChannelSub struct + Value string + type SlackComment struct + Comment string + User string + type SlackFile struct + Id string + Title string + type SlackPost struct + Attachments []*model.SlackAttachment + BotId string + BotUsername string + Comment *SlackComment + File *SlackFile + Files []*SlackFile + SubType string + Text string + ThreadTS string + TimeStamp string + Type string + Upload bool + User string + func SlackParsePosts(data io.Reader) ([]SlackPost, error) + type SlackProfile struct + Email string + FirstName string + LastName string + type SlackUser struct + Id string + Profile SlackProfile + Username string + func SlackParseUsers(data io.Reader) ([]SlackUser, error) + type TeamEnvironment struct + Channels []*model.Channel + Users []*model.User + func CreateTestEnvironmentInTeam(a *App, client *model.Client4, team *model.Team, rangeChannels utils.Range, ...) (TeamEnvironment, bool) + type TeamImportData struct + AllowOpenInvite *bool + Description *string + DisplayName *string + Name *string + Scheme *string + Type *string + type TestEnvironment struct + Environments []TeamEnvironment + Teams []*model.Team + func CreateTestEnvironmentWithTeams(a *App, client *model.Client4, rangeTeams utils.Range, ...) (TestEnvironment, bool) + type TokenLocation int + const TokenLocationCookie + const TokenLocationHeader + const TokenLocationNotFound + const TokenLocationQueryString + func ParseAuthTokenFromRequest(r *http.Request) (string, TokenLocation) + func (tl TokenLocation) String() 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 + AllChannelMembers map[string]string + App *App + LastAllChannelMembersTime int64 + LastUserActivityAt int64 + Locale string + Send chan model.WebSocketMessage + 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) IsMemberOfTeam(teamId string) bool + func (wc *WebConn) Pump() + func (wc *WebConn) SendHello() + func (wc *WebConn) SetSession(v *model.Session) + func (wc *WebConn) SetSessionExpiresAt(v int64) + func (wc *WebConn) SetSessionToken(v string) + func (wc *WebConn) ShouldSendEvent(msg *model.WebSocketEvent) bool + type WebConnActivityMessage struct + ActivityAt int64 + SessionToken string + UserId 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/mad-app/mattermost-server