mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
* Renamed user limit API to app limit API * Added post warning limit * Added tests * Fixed types * Renamed AppLimits to ServerLimits * Fixed tests and review fixes * Updated generated code * Updated server i18n * Fixed TestCreateUserOrGuest test * Exclude deleted posts from post count for liims * Reduced limits for ease of testing * Restored original limts
14 lines
623 B
Go
14 lines
623 B
Go
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
package model
|
|
|
|
type ServerLimits struct {
|
|
MaxUsersLimit int64 `json:"maxUsersLimit"` // soft limit for max number of users.
|
|
MaxUsersHardLimit int64 `json:"maxUsersHardLimit"` // hard limit for max number of active users.
|
|
ActiveUserCount int64 `json:"activeUserCount"` // actual number of active users on server. Active = non deleted
|
|
|
|
MaxPostLimit int64 `json:"maxPostLimit"` // soft limit for max number of posts
|
|
PostCount int64 `json:"postCount"` // actual number of posts in system.
|
|
}
|