Documentation
¶
Index ¶
- type ClearFunc
- type List
- type Node
- type Pool
- type Transaction
- func (tx *Transaction) Clear()
- func (tx *Transaction) File(key string) *file
- func (tx *Transaction) Files() map[string]*file
- func (tx *Transaction) Len() int
- func (tx *Transaction) Lock()
- func (tx *Transaction) PushBack(n *Node[model.File])
- func (tx *Transaction) RLock()
- func (tx *Transaction) RUnlock()
- func (tx *Transaction) Unlock()
- type Transactions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Node ¶
type Node[T any] struct { // contains filtered or unexported fields }
func (*Node[T]) DeleteLink ¶
type Transaction ¶
type Transaction struct { WithoutSearch bool // contains filtered or unexported fields }
func (*Transaction) Clear ¶
func (tx *Transaction) Clear()
func (*Transaction) File ¶
func (tx *Transaction) File(key string) *file
func (*Transaction) Files ¶
func (tx *Transaction) Files() map[string]*file
func (*Transaction) Len ¶
func (tx *Transaction) Len() int
func (*Transaction) Lock ¶
func (tx *Transaction) Lock()
func (*Transaction) RLock ¶
func (tx *Transaction) RLock()
func (*Transaction) RUnlock ¶
func (tx *Transaction) RUnlock()
func (*Transaction) Unlock ¶
func (tx *Transaction) Unlock()
type Transactions ¶
type Transactions struct {
// contains filtered or unexported fields
}
func (*Transactions) Delete ¶
func (txs *Transactions) Delete(txId string) *Transaction
func (*Transactions) Get ¶
func (txs *Transactions) Get(txId string) (*Transaction, bool)
func (*Transactions) Put ¶
func (txs *Transactions) Put(txId string, tx *Transaction)
Click to show internal directories.
Click to hide internal directories.