Documentation
¶
Index ¶
Constants ¶
View Source
const ( ReadUncommitted IsolationLevel = iota ReadCommitted = iota RepeatableReads = iota Serializable = iota )
Variables ¶
View Source
var ( ErrObjectAlreadyWatched = errors.New("") ErrObjectNotFound = errors.New("") )
View Source
var ( ErrNonexistentObject = errors.New("") ErrDeniedOperationForStrategy = errors.New("") )
Functions ¶
This section is empty.
Types ¶
type IdentityMap ¶
type IdentityMap[K comparable, V any] struct { // contains filtered or unexported fields }
func NewIdentityMap ¶
func NewIdentityMap[K comparable, V any](size uint) *IdentityMap[K, V]
func (*IdentityMap[K, V]) Add ¶
func (im *IdentityMap[K, V]) Add(key K, object V) (bool, error)
func (*IdentityMap[K, V]) Get ¶
func (im *IdentityMap[K, V]) Get(key K) (object V, err error)
func (*IdentityMap[K, V]) Has ¶
func (im *IdentityMap[K, V]) Has(key K) bool
func (*IdentityMap[K, V]) SetIsolationLevel ¶
func (im *IdentityMap[K, V]) SetIsolationLevel(level IsolationLevel)
func (*IdentityMap[K, V]) SetSize ¶
func (im *IdentityMap[K, V]) SetSize(size uint)
type IsolationLevel ¶
type IsolationLevel uint
type IsolationStrategy ¶
type IsolationStrategy[K comparable, V any] interface { // contains filtered or unexported methods }
Click to show internal directories.
Click to hide internal directories.