Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SyncCounter ¶ added in v1.1.16
type SyncCounter struct {
// contains filtered or unexported fields
}
func GetCounter ¶ added in v1.1.16
func GetCounter() *SyncCounter
func (*SyncCounter) Get ¶ added in v1.1.16
func (counter *SyncCounter) Get() int64
func (*SyncCounter) Increase ¶ added in v1.1.16
func (counter *SyncCounter) Increase()
func (*SyncCounter) Reduce ¶ added in v1.1.16
func (counter *SyncCounter) Reduce()
type SyncMap ¶
type SyncMap[K comparable, V any] struct { // contains filtered or unexported fields }
func NewSyncMap ¶
func NewSyncMap[K comparable, V any]() *SyncMap[K, V]
func (*SyncMap[K, V]) GetOrDefault ¶ added in v1.1.14
func (sm *SyncMap[K, V]) GetOrDefault(k K, defaultv V) V
Click to show internal directories.
Click to hide internal directories.