Documentation
¶
Overview ¶
Package memoryset provides an in-memory implementation of set.BinaryStore.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BinaryStore ¶
type BinaryStore struct {
// BeforeAdd, if non-nil, is called before a value is added to the set.
BeforeAdd func(set string, v []byte) error
// AfterAdd, if non-nil, is called after a value is added to the set.
AfterAdd func(set string, v []byte) error
// BeforeRemove, if non-nil, is called before a value is removed from the
// set.
BeforeRemove func(set string, v []byte) error
// AfterRemove, if non-nil, is called after a value is removed from the set.
AfterRemove func(set string, v []byte) error
// contains filtered or unexported fields
}
BinaryStore is an implementation of set.BinaryStore that stores sets in memory.
type Store ¶
type Store[T comparable] struct { // BeforeAdd, if non-nil, is called before a value is added to the set. BeforeAdd func(set string, v T) error // AfterAdd, if non-nil, is called after a value is added to the set. AfterAdd func(set string, v T) error // BeforeRemove, if non-nil, is called before a value is removed from the // set. BeforeRemove func(set string, v T) error // AfterRemove, if non-nil, is called after a value is removed from the set. AfterRemove func(set string, v T) error // contains filtered or unexported fields }
Store is an in-memory implementation of set.Store.
Click to show internal directories.
Click to hide internal directories.