Documentation
¶
Index ¶
Constants ¶
View Source
const ( NameMaxLength = 20 DescriptionMaxLength = 120 ImageTypeEmoji ImageType = "emoji" ImageTypeRelativeURL ImageType = "rel_url" ImageTypeAbsoluteURL ImageType = "abs_url" PluginPath = "/com.mattermost.badges" PluginAPIPath = "/papi/v1" PluginAPIPathEnsure = "/ensure" PluginAPIPathGrant = "/grant" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AllBadgesBadge ¶
type Badge ¶
type BadgeDetails ¶
type BadgeTypeDefinition ¶
type BadgeTypeDefinition struct {
ID BadgeType `json:"id"`
Name string `json:"name"`
Frame string `json:"frame"`
CreatedBy string `json:"created_by"`
CanGrant PermissionScheme `json:"can_grant"`
CanCreate PermissionScheme `json:"can_create"`
}
type BadgeTypeList ¶
type BadgeTypeList []*BadgeTypeDefinition
func (BadgeTypeList) GetType ¶
func (l BadgeTypeList) GetType(id BadgeType) *BadgeTypeDefinition
type EnsureBadgesRequest ¶
type GrantBadgeRequest ¶
type OwnershipList ¶
type OwnershipList []Ownership
type PermissionScheme ¶
type Subscription ¶
Click to show internal directories.
Click to hide internal directories.