package
0.0.0-20230307095339-03ee383c5cd9
Repository: https://github.com/gridiron-zone/huddle.git
Documentation: pkg.go.dev

# Functions

CombinePermissions combines all the given permissions into a single Permission object using the OR operator.
No description provided by the author
No description provided by the author
GetGroupIDBytes returns the byte representation of the groupID.
GetGroupIDFromBytes returns groupID in uint32 format from a byte array.
GetSubspaceIDBytes returns the byte representation of the subspaceID.
GetSubspaceIDFromBytes returns subspaceID in uint64 format from a byte array.
GroupIDStoreKey returns the store key that is used to store the group id to be used next for the given subspace.
GroupMembersStoreKey returns the key used to store all the members of the given group inside the given subspace.
GroupMemberStoreKey returns the key used to store the membership of the given user to the specified group inside the provided subspace.
GroupsStoreKey returns the key used to store all the groups of a given subspace.
GroupStoreKey returns the key used to store a group for a subspace.
MarshalPermission marshals the given permission to a byte array.
MigrateStore migrates the store from version 1 to version 2.
NewGenericSubspaceAuthorization creates a new GenericSubspaceAuthorization object.
NewUserGroup returns a new UserGroup instance.
PermissionsStoreKey returns the key used to store the entire ACL for a given subspace.
RegisterInterfaces registers the interfaces types with the interface registry.
SanitizePermission sanitizes the given permission to remove any unwanted bits set to 1.
SplitPermissions splits the given combined permission value into its individual values.
SplitUserPermissionKey splits the provided UserPermissionStoreKey into the related subspace id and user address.
SubspaceKey returns the key for a specific subspace.
UnmarshalPermission reads the given byte array as a Permission object.
UserPermissionStoreKey returns the key used to store the permission for the given user inside the given subspace.

# Constants

PermissionChangeInfo allows to change the information of the subspace.
PermissionDeleteSubspace allows users to delete the subspace.
PermissionEverything allows to do everything.
PermissionManageGroups allows users to manage user groups and members.
PermissionModerateContent allows users to moderate contents of other users (e.g.
PermissionNothing represents the permission to do nothing.
PermissionSetPermissions allows users to set other users' permissions (except PermissionSetPermissions).
PermissionWrite identifies users that can create content inside the subspace.

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

GenericSubspaceAuthorization defines an authorization to perform any operation only inside a specific subspace.
PermissionDetail contains the details data of a permission.
Group is a permission that has been set to a user group.
No description provided by the author
User is a permission that has been set to a specific user.
No description provided by the author
Subspace contains all the data of a Huddle subspace.
UserGroup represents a group of users.

# Type aliases

Permission represents a permission that can be set to a user or user group.