Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
KeyAlreadyExistsError = func() error { return errors.New("key for hashable already exists in the registered map") }()
)
Functions ¶
This section is empty.
Types ¶
type DuplicateHandler ¶
type DuplicateWrapper ¶
func (*DuplicateWrapper) CheckAndRegisterForDuplication ¶
func (d *DuplicateWrapper) CheckAndRegisterForDuplication(h Hashable) (bool, error)
CheckAndRegisterForDuplication is a wrapper of CheckForDuplication and RegisterDuplication
func (*DuplicateWrapper) CheckForDuplication ¶
func (d *DuplicateWrapper) CheckForDuplication(h Hashable) bool
CheckForDuplication will take a hashable and check to see if it exists in the in memory map
func (*DuplicateWrapper) RegisterDuplication ¶
func (d *DuplicateWrapper) RegisterDuplication(h Hashable) error
RegisterDuplication will register a hashable object in the memory map
Click to show internal directories.
Click to hide internal directories.