Documentation
¶
Index ¶
- func BuildPrivateGroupUserGroup(groupSlug string) *model.UserGroup
- func CreatePrivateGroup(ownerUserId int, groupSlug string) (*model.PrivateGroup, error)
- func CreatePrivateGroupInviteCode(ownerUserId int, groupId int, maxUses int, expiresAt int64, isAdmin bool) (*model.PrivateGroupInviteCode, string, error)
- func DeletePrivateGroup(ownerUserId int, groupId int, isAdmin bool) error
- func GeneratePrivateGroupInviteCode() string
- func GetUserUsableGroupsForUser(userId int, userGroup string) (map[string]*model.UserGroup, error)
- func GrantPrivateGroupMemberByAdmin(actorUserId int, targetUserId int, groupId int, expiresAt int64) (*model.PrivateGroupGrant, error)
- func GroupInUserUsableGroupsForUser(userId int, userGroup string, groupName string) (bool, error)
- func ListAllPrivateGroups() ([]*model.PrivateGroupSummary, error)
- func ListJoinedPrivateGroups(userId int) ([]*model.UserPrivateGroupGrant, error)
- func ListOwnedPrivateGroups(ownerUserId int) ([]*model.PrivateGroupSummary, error)
- func ListPrivateGroupInviteCodes(ownerUserId int, groupId int, isAdmin bool) ([]*model.PrivateGroupInviteCode, error)
- func ListPrivateGroupMembers(ownerUserId int, groupId int, isAdmin bool) ([]*model.PrivateGroupMember, error)
- func ListUserPrivateGroupGrants(userId int) ([]*model.UserPrivateGroupGrant, error)
- func LoadPrivateGroupForAccess(groupId int) (*model.PrivateGroup, error)
- func RedeemPrivateGroupInviteCode(code string, userId int) (*model.PrivateGroup, *model.PrivateGroupGrant, bool, error)
- func RenamePrivateGroup(ownerUserId int, groupId int, newSlug string, isAdmin bool) (*model.PrivateGroup, error)
- func RevokePrivateGroupMember(actorUserId int, groupId int, targetUserId int, isAdmin bool) error
- func UpdatePrivateGroupInviteCodeStatus(ownerUserId int, groupId int, codeId int, status int, isAdmin bool) (*model.PrivateGroupInviteCode, error)
- func ValidatePrivateGroupSlug(groupSlug string, excludeGroupId int) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreatePrivateGroup ¶
func CreatePrivateGroup(ownerUserId int, groupSlug string) (*model.PrivateGroup, error)
func GeneratePrivateGroupInviteCode ¶
func GeneratePrivateGroupInviteCode() string
func ListAllPrivateGroups ¶
func ListAllPrivateGroups() ([]*model.PrivateGroupSummary, error)
func ListJoinedPrivateGroups ¶
func ListJoinedPrivateGroups(userId int) ([]*model.UserPrivateGroupGrant, error)
func ListOwnedPrivateGroups ¶
func ListOwnedPrivateGroups(ownerUserId int) ([]*model.PrivateGroupSummary, error)
func ListPrivateGroupMembers ¶
func ListUserPrivateGroupGrants ¶
func ListUserPrivateGroupGrants(userId int) ([]*model.UserPrivateGroupGrant, error)
func LoadPrivateGroupForAccess ¶
func LoadPrivateGroupForAccess(groupId int) (*model.PrivateGroup, error)
func RedeemPrivateGroupInviteCode ¶
func RedeemPrivateGroupInviteCode(code string, userId int) (*model.PrivateGroup, *model.PrivateGroupGrant, bool, error)
func RenamePrivateGroup ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.