Documentation ¶
Index ¶
- func DoA1[A0 any](ctx context.Context, m Doer, fn func(A0), a0 A0)
- func DoA1R1[A0, R0 any](ctx context.Context, m Doer, fn func(A0) R0, a0 A0) R0
- func DoA1R2[A0, R0, R1 any](ctx context.Context, m Doer, fn func(A0) (R0, R1), a0 A0) (R0, R1)
- func DoA1R4[A0, R0, R1, R2, R3 any](ctx context.Context, m Doer, fn func(A0) (R0, R1, R2, R3), a0 A0) (R0, R1, R2, R3)
- func DoA2[A0, A1 any](ctx context.Context, m Doer, fn func(A0, A1), a0 A0, a1 A1)
- func DoA2R1[A0, A1, R0 any](ctx context.Context, m Doer, fn func(A0, A1) R0, a0 A0, a1 A1) R0
- func DoA2R2[A0, A1, R0, R1 any](ctx context.Context, m Doer, fn func(A0, A1) (R0, R1), a0 A0, a1 A1) (R0, R1)
- func DoA2R3[A0, A1, R0, R1, R2 any](ctx context.Context, m Doer, fn func(A0, A1) (R0, R1, R2), a0 A0, a1 A1) (R0, R1, R2)
- func DoA3R1[A0, A1, A2, R0 any](ctx context.Context, m Doer, fn func(A0, A1, A2) R0, a0 A0, a1 A1, a2 A2) R0
- func DoA3R2[A0, A1, A2, R0, R1 any](ctx context.Context, m Doer, fn func(A0, A1, A2) (R0, R1), a0 A0, a1 A1, a2 A2) (R0, R1)
- func DoA4R1[A0, A1, A2, A3, R0 any](ctx context.Context, m Doer, fn func(A0, A1, A2, A3) R0, a0 A0, a1 A1, a2 A2, ...) R0
- func DoR1[R0 any](ctx context.Context, m Doer, fn func() R0) R0
- func DoR2[R0, R1 any](ctx context.Context, m Doer, fn func() (R0, R1)) (R0, R1)
- func DoR3[R0, R1, R2 any](ctx context.Context, m Doer, fn func() (R0, R1, R2)) (R0, R1, R2)
- func DoR4[R0, R1, R2, R3 any](ctx context.Context, m Doer, fn func() (R0, R1, R2, R3)) (R0, R1, R2, R3)
- func IsEnableDeadlock(ctx context.Context) bool
- func IsNoLogging(ctx context.Context) bool
- func RDoA1[A0 any](ctx context.Context, m RDoer, fn func(A0), a0 A0)
- func RDoA1R1[A0, R0 any](ctx context.Context, m RDoer, fn func(A0) R0, a0 A0) R0
- func RDoA1R2[A0, R0, R1 any](ctx context.Context, m RDoer, fn func(A0) (R0, R1), a0 A0) (R0, R1)
- func RDoA1R4[A0, R0, R1, R2, R3 any](ctx context.Context, m RDoer, fn func(A0) (R0, R1, R2, R3), a0 A0) (R0, R1, R2, R3)
- func RDoA2[A0, A1 any](ctx context.Context, m RDoer, fn func(A0, A1), a0 A0, a1 A1)
- func RDoA2R1[A0, A1, R0 any](ctx context.Context, m RDoer, fn func(A0, A1) R0, a0 A0, a1 A1) R0
- func RDoA2R2[A0, A1, R0, R1 any](ctx context.Context, m RDoer, fn func(A0, A1) (R0, R1), a0 A0, a1 A1) (R0, R1)
- func RDoA2R3[A0, A1, R0, R1, R2 any](ctx context.Context, m RDoer, fn func(A0, A1) (R0, R1, R2), a0 A0, a1 A1) (R0, R1, R2)
- func RDoA3R1[A0, A1, A2, R0 any](ctx context.Context, m RDoer, fn func(A0, A1, A2) R0, a0 A0, a1 A1, a2 A2) R0
- func RDoA4R1[A0, A1, A2, A3, R0 any](ctx context.Context, m RDoer, fn func(A0, A1, A2, A3) R0, a0 A0, a1 A1, a2 A2, ...) R0
- func RDoR1[R0 any](ctx context.Context, m RDoer, fn func() R0) R0
- func RDoR2[R0, R1 any](ctx context.Context, m RDoer, fn func() (R0, R1)) (R0, R1)
- func RDoR3[R0, R1, R2 any](ctx context.Context, m RDoer, fn func() (R0, R1, R2)) (R0, R1, R2)
- func RDoR4[R0, R1, R2, R3 any](ctx context.Context, m RDoer, fn func() (R0, R1, R2, R3)) (R0, R1, R2, R3)
- func WithEnableDeadlock(ctx context.Context, enableDeadlock bool) context.Context
- func WithNoLogging(ctx context.Context, noLogging bool) context.Context
- type CtxKeyEnableDeadlock
- type CtxKeyNoLogging
- type Doer
- type Gorex
- type Map
- func (m *Map[K, V]) CompareAndDelete(key K, old V) (deleted bool)
- func (m *Map[K, V]) CompareAndSwap(key K, old, new V) (swapped bool)
- func (m *Map[K, V]) Delete(key K)
- func (m *Map[K, V]) Load(key K) (V, bool)
- func (m *Map[K, V]) LoadAndDelete(key K) (V, bool)
- func (m *Map[K, V]) LoadOrStore(key K, value V) (V, bool)
- func (m *Map[K, V]) Range(f func(key K, value V) bool)
- func (m *Map[K, V]) Store(key K, value V)
- func (m *Map[K, V]) Swap(key K, value V) (V, bool)
- type Mutex
- func (m *Mutex) Do(ctx context.Context, fn func())
- func (m *Mutex) ManualLock(ctx context.Context)
- func (m *Mutex) ManualRLock(ctx context.Context)
- func (m *Mutex) ManualRUnlock(ctx context.Context)
- func (m *Mutex) ManualTryLock(ctx context.Context) bool
- func (m *Mutex) ManualTryRLock(ctx context.Context) bool
- func (m *Mutex) ManualUnlock(ctx context.Context)
- func (m *Mutex) RDo(ctx context.Context, fn func())
- func (m *Mutex) UDo(ctx context.Context, fn func())
- func (m *Mutex) URDo(ctx context.Context, fn func())
- type RDoer
- type RWMutex
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsEnableDeadlock ¶
func IsNoLogging ¶
func WithEnableDeadlock ¶
Types ¶
type CtxKeyEnableDeadlock ¶
type CtxKeyEnableDeadlock struct{}
type CtxKeyNoLogging ¶
type CtxKeyNoLogging struct{}
type Map ¶
type Map[K comparable, V any] struct { sync.Map }
func (*Map[K, V]) CompareAndDelete ¶
func (*Map[K, V]) CompareAndSwap ¶
func (*Map[K, V]) LoadAndDelete ¶
func (*Map[K, V]) LoadOrStore ¶
type Mutex ¶
type Mutex = RWMutex
func (*Mutex) ManualLock ¶
func (*Mutex) ManualRLock ¶
func (*Mutex) ManualRUnlock ¶
func (*Mutex) ManualUnlock ¶
Click to show internal directories.
Click to hide internal directories.