Documentation ¶
Index ¶
- type ObliviousMap
- func (om *ObliviousMap[T]) Add(key string) int
- func (om *ObliviousMap[T]) AddBy(key string, val int) int
- func (om *ObliviousMap[T]) Exist(key string) bool
- func (om *ObliviousMap[T]) Get(key string) (T, bool)
- func (om *ObliviousMap[T]) Hold(fn func())
- func (om *ObliviousMap[T]) Set(key string, value T) T
- func (om *ObliviousMap[T]) SetExpire(key string, duration time.Duration) time.Duration
- func (om *ObliviousMap[T]) Unset(key string)
- func (om *ObliviousMap[T]) Wipe()
- func (om *ObliviousMap[T]) WipePrefix(prefix string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ObliviousMap ¶
type ObliviousMap[T any] struct { // contains filtered or unexported fields }
func NewObliviousMap ¶
func (*ObliviousMap[T]) Add ¶
func (om *ObliviousMap[T]) Add(key string) int
func (*ObliviousMap[T]) Exist ¶
func (om *ObliviousMap[T]) Exist(key string) bool
func (*ObliviousMap[T]) Get ¶
func (om *ObliviousMap[T]) Get(key string) (T, bool)
func (*ObliviousMap[T]) Hold ¶
func (om *ObliviousMap[T]) Hold(fn func())
func (*ObliviousMap[T]) Set ¶
func (om *ObliviousMap[T]) Set(key string, value T) T
func (*ObliviousMap[T]) Unset ¶
func (om *ObliviousMap[T]) Unset(key string)
func (*ObliviousMap[T]) Wipe ¶
func (om *ObliviousMap[T]) Wipe()
func (*ObliviousMap[T]) WipePrefix ¶
func (om *ObliviousMap[T]) WipePrefix(prefix string)
Click to show internal directories.
Click to hide internal directories.