Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var MetadataEventKinds = KindRange{ event.KindSimpleGroupMetadata, event.KindSimpleGroupAdmins, event.KindSimpleGroupMembers, }
Functions ¶
This section is empty.
Types ¶
type Group ¶
type Group struct { ID string Name string Picture string About string Members map[string]*Role Private bool Closed bool LastMetadataUpdate timestamp.T }
func (Group) ToMetadataEvent ¶
type Permission ¶
type Permission = string
const ( PermAddUser Permission = "add-user" PermEditMetadata Permission = "edit-metadata" PermDeleteEvent Permission = "delete-event" PermRemoveUser Permission = "remove-user" PermAddPermission Permission = "add-permission" PermRemovePermission Permission = "remove-permission" PermEditGroupStatus Permission = "edit-group-status" )
type Role ¶
type Role struct { Name string Permissions map[Permission]struct{} }
Click to show internal directories.
Click to hide internal directories.