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 LIMIT_DEFAULT + const LIMIT_MAXIMUM + const LOGS_PER_PAGE_DEFAULT + const LOGS_PER_PAGE_MAXIMUM + const PAGE_DEFAULT + const PER_PAGE_DEFAULT + const PER_PAGE_MAXIMUM + func CheckClientCompatability(agentString string) bool + func GetHandlerName(h func(*Context, http.ResponseWriter, *http.Request)) string + func Handle404(config configservice.ConfigService, w http.ResponseWriter, r *http.Request) + func IsApiCall(config configservice.ConfigService, r *http.Request) bool + func IsOAuthApiCall(config configservice.ConfigService, r *http.Request) bool + func IsWebhookCall(a *app.App, r *http.Request) bool + func NewInvalidParamError(parameter string) *model.AppError + func NewInvalidUrlParamError(parameter string) *model.AppError + func NewServerBusyError() *model.AppError + func ReturnStatusOK(w http.ResponseWriter) + type Browser struct + GetLatestString string + LogoSrc string + Src string + SupportedVersionString string + Title string + type Context struct + App *app.App + Err *model.AppError + Log *mlog.Logger + Params *Params + func (c *Context) GetSiteURLHeader() string + func (c *Context) HandleEtag(etag string, routeName string, w http.ResponseWriter, r *http.Request) bool + func (c *Context) IsSystemAdmin() bool + func (c *Context) LogAudit(extraInfo string) + func (c *Context) LogAuditWithUserId(userId, extraInfo string) + func (c *Context) LogDebug(err *model.AppError) + func (c *Context) LogError(err *model.AppError) + func (c *Context) LogInfo(err *model.AppError) + func (c *Context) MfaRequired() + func (c *Context) RemoveSessionCookie(w http.ResponseWriter, r *http.Request) + func (c *Context) RequireAppId() *Context + func (c *Context) RequireBotUserId() *Context + func (c *Context) RequireCategory() *Context + func (c *Context) RequireChannelId() *Context + func (c *Context) RequireChannelName() *Context + func (c *Context) RequireCommandId() *Context + func (c *Context) RequireEmojiId() *Context + func (c *Context) RequireEmojiName() *Context + func (c *Context) RequireFileId() *Context + func (c *Context) RequireFilename() *Context + func (c *Context) RequireGroupId() *Context + func (c *Context) RequireHookId() *Context + func (c *Context) RequireInviteId() *Context + func (c *Context) RequireJobId() *Context + func (c *Context) RequireJobType() *Context + func (c *Context) RequirePluginId() *Context + func (c *Context) RequirePostId() *Context + func (c *Context) RequirePreferenceName() *Context + func (c *Context) RequireRemoteId() *Context + func (c *Context) RequireReportId() *Context + func (c *Context) RequireRoleId() *Context + func (c *Context) RequireRoleName() *Context + func (c *Context) RequireSchemeId() *Context + func (c *Context) RequireService() *Context + func (c *Context) RequireSyncableId() *Context + func (c *Context) RequireSyncableType() *Context + func (c *Context) RequireTeamId() *Context + func (c *Context) RequireTeamName() *Context + func (c *Context) RequireTokenId() *Context + func (c *Context) RequireUserId() *Context + func (c *Context) RequireUsername() *Context + func (c *Context) SanitizeEmail() *Context + func (c *Context) SessionRequired() + func (c *Context) SetInvalidParam(parameter string) + func (c *Context) SetInvalidUrlParam(parameter string) + func (c *Context) SetPermissionError(permission *model.Permission) + func (c *Context) SetServerBusyError() + func (c *Context) SetSiteURLHeader(url string) + type Handler struct + DisableWhenBusy bool + GetGlobalAppOptions app.AppOptionCreator + HandleFunc func(*Context, http.ResponseWriter, *http.Request) + HandlerName string + IsStatic bool + RequireMfa bool + RequireSession bool + TrustRequester bool + func (h Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) + type MattermostApp struct + InstallGuide string + InstallGuideLink string + Label string + Link string + LogoSrc string + SupportedVersionString string + Title string + type Params struct + ActionId string + AppId string + BotUserId string + Category string + ChannelId string + ChannelName string + CommandId string + Email string + EmojiId string + EmojiName string + ExcludeDefaultChannels bool + FileId string + Filename string + GroupIDs string + GroupId string + HookId string + IncludeDeleted bool + IncludeMemberCount bool + IncludeTotalCount bool + InviteId string + IsConfigured *bool + IsLinked *bool + JobId string + JobType string + LimitAfter int + LimitBefore int + LogsPerPage int + NotAssociatedToChannel string + NotAssociatedToGroup string + NotAssociatedToTeam string + Page int + Paginate *bool + PerPage int + Permanent bool + PluginId string + PostId string + PreferenceName string + Q string + RemoteId string + ReportId string + RoleId string + RoleName string + SchemeId string + Scope string + Service string + SyncableId string + SyncableType model.GroupSyncableType + TeamId string + TeamName string + TokenId string + UserId string + Username string + func ParamsFromRequest(r *http.Request) *Params + type SystemBrowser struct + LabelOpen string + LinkMakeDefault string + LinkOpen string + LogoSrc string + MakeDefaultString string + OrString string + SupportedVersionString string + Title string + type Web struct + ConfigService configservice.ConfigService + GetGlobalAppOptions app.AppOptionCreator + MainRouter *mux.Router + func New(config configservice.ConfigService, globalOptions app.AppOptionCreator, ...) *Web + func (w *Web) ApiHandler(h func(*Context, http.ResponseWriter, *http.Request)) http.Handler + func (w *Web) ApiHandlerTrustRequester(h func(*Context, http.ResponseWriter, *http.Request)) http.Handler + func (w *Web) ApiSessionRequired(h func(*Context, http.ResponseWriter, *http.Request)) http.Handler + func (w *Web) InitOAuth() + func (w *Web) InitSaml() + func (w *Web) InitStatic() + func (w *Web) InitWebhooks() + func (w *Web) NewHandler(h func(*Context, http.ResponseWriter, *http.Request)) http.Handler + func (w *Web) NewStaticHandler(h func(*Context, http.ResponseWriter, *http.Request)) http.Handler Other modules containing this package github.com/mad-app/mattermost-server