once

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

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