Versions in this module Expand all Collapse all v5 v5.22.0 Apr 4, 2020 Changes in this version + const DEFAULT_SERVER_BUSY_SECONDS + const EMOJI_MAX_AUTOCOMPLETE_ITEMS + const FILE_TEAM_ID + const MAX_SERVER_BUSY_SECONDS + const OPEN_GRAPH_METADATA_CACHE_SIZE + const PREVIEW_IMAGE_TYPE + const REDIRECT_LOCATION_CACHE_SIZE + const THUMBNAIL_IMAGE_TYPE + var MEDIA_CONTENT_TYPES = [...]string + var ReturnStatusOK = web.ReturnStatusOK + var UNSAFE_CONTENT_TYPES = [...]string + func Logout(c *Context, w http.ResponseWriter, r *http.Request) + type API struct + BaseRoutes *Routes + ConfigService configservice.ConfigService + GetGlobalAppOptions app.AppOptionCreator + func Init(configservice configservice.ConfigService, ...) *API + func (api *API) ApiHandler(h func(*Context, http.ResponseWriter, *http.Request)) http.Handler + func (api *API) ApiHandlerTrustRequester(h func(*Context, http.ResponseWriter, *http.Request)) http.Handler + func (api *API) ApiSessionRequired(h func(*Context, http.ResponseWriter, *http.Request)) http.Handler + func (api *API) ApiSessionRequiredDisableWhenBusy(h func(*Context, http.ResponseWriter, *http.Request)) http.Handler + func (api *API) ApiSessionRequiredMfa(h func(*Context, http.ResponseWriter, *http.Request)) http.Handler + func (api *API) ApiSessionRequiredTrustRequester(h func(*Context, http.ResponseWriter, *http.Request)) http.Handler + func (api *API) Handle404(w http.ResponseWriter, r *http.Request) + func (api *API) InitAction() + func (api *API) InitBrand() + func (api *API) InitCluster() + func (api *API) InitCommand() + func (api *API) InitCompliance() + func (api *API) InitConfig() + func (api *API) InitDataRetention() + func (api *API) InitElasticsearch() + func (api *API) InitEmoji() + func (api *API) InitFile() + func (api *API) InitImage() + func (api *API) InitJob() + func (api *API) InitLdap() + func (api *API) InitLicense() + func (api *API) InitOAuth() + func (api *API) InitOpenGraph() + func (api *API) InitPreference() + func (api *API) InitReaction() + func (api *API) InitRole() + func (api *API) InitSaml() + func (api *API) InitScheme() + func (api *API) InitStatus() + func (api *API) InitSystem() + func (api *API) InitTermsOfService() + func (api *API) InitUser() + func (api *API) InitWebSocket() + func (api *API) InitWebhook() + type Context = web.Context + type Routes struct + ApiRoot *mux.Router + Bot *mux.Router + Bots *mux.Router + Brand *mux.Router + Channel *mux.Router + ChannelByName *mux.Router + ChannelByNameForTeamName *mux.Router + ChannelForUser *mux.Router + ChannelMember *mux.Router + ChannelMembers *mux.Router + ChannelMembersForUser *mux.Router + ChannelModerations *mux.Router + Channels *mux.Router + ChannelsForTeam *mux.Router + Cluster *mux.Router + Command *mux.Router + Commands *mux.Router + Compliance *mux.Router + DataRetention *mux.Router + Elasticsearch *mux.Router + Emoji *mux.Router + EmojiByName *mux.Router + Emojis *mux.Router + File *mux.Router + Files *mux.Router + Groups *mux.Router + Hooks *mux.Router + Image *mux.Router + IncomingHook *mux.Router + IncomingHooks *mux.Router + Jobs *mux.Router + LDAP *mux.Router + License *mux.Router + OAuth *mux.Router + OAuthApp *mux.Router + OAuthApps *mux.Router + OpenGraph *mux.Router + OutgoingHook *mux.Router + OutgoingHooks *mux.Router + Plugin *mux.Router + Plugins *mux.Router + Post *mux.Router + PostForUser *mux.Router + Posts *mux.Router + PostsForChannel *mux.Router + PostsForUser *mux.Router + Preferences *mux.Router + Public *mux.Router + PublicFile *mux.Router + ReactionByNameForPostForUser *mux.Router + Reactions *mux.Router + Roles *mux.Router + Root *mux.Router + SAML *mux.Router + Schemes *mux.Router + System *mux.Router + Team *mux.Router + TeamByName *mux.Router + TeamForUser *mux.Router + TeamMember *mux.Router + TeamMembers *mux.Router + TeamMembersForUser *mux.Router + Teams *mux.Router + TeamsForUser *mux.Router + TermsOfService *mux.Router + User *mux.Router + UserByEmail *mux.Router + UserByUsername *mux.Router + Users *mux.Router Other modules containing this package github.com/vnforks/kid