util

package
v0.0.0-...-ac41614 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 9, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeNewStorageDriver

func MakeNewStorageDriver() StorageDriver

func RandomString

func RandomString() string

func UUID

func UUID() (string, error)

func UUID64

func UUID64() uint64

Types

type MultiLock

type MultiLock struct {
	// contains filtered or unexported fields
}

func NewMultiLock

func NewMultiLock() *MultiLock

func (*MultiLock) Lock

func (multiLock *MultiLock) Lock(partitioningKey []byte)

func (*MultiLock) Unlock

func (multiLock *MultiLock) Unlock(partitioningKey []byte)

type RWTryLock

type RWTryLock struct {
	// contains filtered or unexported fields
}

func (*RWTryLock) RUnlock

func (lock *RWTryLock) RUnlock()

func (*RWTryLock) TryRLock

func (lock *RWTryLock) TryRLock() bool

func (*RWTryLock) WLock

func (lock *RWTryLock) WLock()

func (*RWTryLock) WUnlock

func (lock *RWTryLock) WUnlock()

type RequestMap

type RequestMap struct {
	// contains filtered or unexported fields
}

func NewRequestMap

func NewRequestMap() *RequestMap

func (*RequestMap) MakeRequest

func (rm *RequestMap) MakeRequest(id uint64) <-chan interface{}

func (*RequestMap) Respond

func (rm *RequestMap) Respond(id uint64, r interface{})

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL