Module PocketMeshPeer.PeerInGroup

Record describing membership of a peer in a group. Currently only stores his permissions.

type membersChangingPerms =
| ReadMembers

Local peer won't accept members list changes from the peer.

| WriteMembers

Local peer will accept members list changes from the peer.


Permissions for the group's list of members

type groupPermissions =
| ReadContentAndMembers

The peer can only read group's content and members list.

| WriteContent(membersChangingPerms)

Local peer will accept content changes.


Permissions for the peer

type t;
let id: t => Peer.Id.t;

Returns ID of the member of the group.

let permissions: t => groupPermissions;

Returns permissions.