service

package
v0.5.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 15, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildPrivateGroupUserGroup

func BuildPrivateGroupUserGroup(groupSlug string) *model.UserGroup

func CreatePrivateGroup

func CreatePrivateGroup(ownerUserId int, groupSlug string) (*model.PrivateGroup, error)

func CreatePrivateGroupInviteCode

func CreatePrivateGroupInviteCode(ownerUserId int, groupId int, maxUses int, expiresAt int64, isAdmin bool) (*model.PrivateGroupInviteCode, string, error)

func DeletePrivateGroup

func DeletePrivateGroup(ownerUserId int, groupId int, isAdmin bool) error

func GeneratePrivateGroupInviteCode

func GeneratePrivateGroupInviteCode() string

func GetUserUsableGroupsForUser

func GetUserUsableGroupsForUser(userId int, userGroup string) (map[string]*model.UserGroup, error)

func GrantPrivateGroupMemberByAdmin

func GrantPrivateGroupMemberByAdmin(actorUserId int, targetUserId int, groupId int, expiresAt int64) (*model.PrivateGroupGrant, error)

func GroupInUserUsableGroupsForUser

func GroupInUserUsableGroupsForUser(userId int, userGroup string, groupName string) (bool, error)

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 ListPrivateGroupInviteCodes

func ListPrivateGroupInviteCodes(ownerUserId int, groupId int, isAdmin bool) ([]*model.PrivateGroupInviteCode, error)

func ListPrivateGroupMembers

func ListPrivateGroupMembers(ownerUserId int, groupId int, isAdmin bool) ([]*model.PrivateGroupMember, error)

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

func RenamePrivateGroup(ownerUserId int, groupId int, newSlug string, isAdmin bool) (*model.PrivateGroup, error)

func RevokePrivateGroupMember

func RevokePrivateGroupMember(actorUserId int, groupId int, targetUserId int, isAdmin bool) error

func UpdatePrivateGroupInviteCodeStatus

func UpdatePrivateGroupInviteCodeStatus(ownerUserId int, groupId int, codeId int, status int, isAdmin bool) (*model.PrivateGroupInviteCode, error)

func ValidatePrivateGroupSlug

func ValidatePrivateGroupSlug(groupSlug string, excludeGroupId int) (string, error)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL