Documentation ¶ Index ¶ func New(objectKey string) func Once(k1, k2 string) error func Remove(k1 string) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func New ¶ func New(objectKey string) func Once ¶ func Once(k1, k2 string) error Once creates a map of keys k1 with a map of keys k2. The idea is that an object with ID k1 can create a list of users k2 that have already interacted with the object. If the user k2 is in the list, the object is not allowed to accessed again. func Remove ¶ func Remove(k1 string) Remove removes the key k1 from the map. Should be called after Once was called and the object k1 finished. Types ¶ This section is empty. Source Files ¶ View all Source files once.go Click to show internal directories. Click to hide internal directories.