5
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2024-11-10 14:30:26 +00:00
matterbridge/vendor/github.com/mattermost/mattermost-server/v5/model/user_count.go

27 lines
937 B
Go
Raw Normal View History

2020-08-09 22:29:54 +00:00
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
package model
// Options for counting users
type UserCountOptions struct {
// Should include users that are bots
IncludeBotAccounts bool
// Should include deleted users (of any type)
IncludeDeleted bool
// Exclude regular users
ExcludeRegularUsers bool
// Only include users on a specific team. "" for any team.
TeamId string
2020-10-19 21:40:00 +00:00
// Only include users on a specific channel. "" for any channel.
ChannelId string
2020-08-09 22:29:54 +00:00
// Restrict to search in a list of teams and channels
ViewRestrictions *ViewUsersRestrictions
2020-10-19 21:40:00 +00:00
// Only include users matching any of the given system wide roles.
Roles []string
// Only include users matching any of the given channel roles, must be used with ChannelId.
ChannelRoles []string
// Only include users matching any of the given team roles, must be used with TeamId.
TeamRoles []string
2020-08-09 22:29:54 +00:00
}