Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UserHasGroupMembership ¶
UserHasGroupMembership returns true if user belongs to specified group.
Types ¶
type Group ¶
type Group struct { model.BaseEntity OrgID string `json:"orgId"` Name string `json:"name"` Purpose string `json:"purpose"` Members int `json:"members"` // read-only info }
Group defines a user group.
type Member ¶
type Member struct { ID uint64 `json:"id"` OrgID string `json:"orgId"` RoleID string `json:"roleId"` UserID string `json:"userId"` Firstname string `json:"firstname"` //read-only info Lastname string `json:"lastname"` //read-only info }
Member defines user membership of a user group.
type Record ¶
type Record struct { ID uint64 `json:"id"` OrgID string `json:"orgId"` RoleID string `json:"roleId"` UserID string `json:"userId"` Name string `json:"name"` Purpose string `json:"purpose"` }
Record details user membership of a user group.
func FilterGroupRecords ¶
FilterGroupRecords returns only those records matching group ID.
Click to show internal directories.
Click to hide internal directories.