Documentation ¶
Index ¶
- func Init(man ILockManager)
- func LockClass(ctx context.Context, manager ILockedClass, projectId string)
- func LockJointObject(ctx context.Context, model ILockedObject, model2 ILockedObject)
- func LockObject(ctx context.Context, model ILockedObject)
- func LockRawObject(ctx context.Context, resName string, resId string)
- func ReleaseClass(ctx context.Context, manager ILockedClass, projectId string)
- func ReleaseJointObject(ctx context.Context, model ILockedObject, model2 ILockedObject)
- func ReleaseObject(ctx context.Context, model ILockedObject)
- func ReleaseRawObject(ctx context.Context, resName string, resId string)
- type ElementInspectFunc
- type FIFO
- type ILockManager
- type ILockedClass
- type ILockedObject
- type SInMemoryLockManager
- type SInMemoryLockRecord
- type SNoopLockManager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Init ¶
func Init(man ILockManager)
func LockJointObject ¶
func LockJointObject(ctx context.Context, model ILockedObject, model2 ILockedObject)
func LockObject ¶
func LockObject(ctx context.Context, model ILockedObject)
func ReleaseClass ¶
func ReleaseClass(ctx context.Context, manager ILockedClass, projectId string)
func ReleaseJointObject ¶
func ReleaseJointObject(ctx context.Context, model ILockedObject, model2 ILockedObject)
func ReleaseObject ¶
func ReleaseObject(ctx context.Context, model ILockedObject)
Types ¶
type ElementInspectFunc ¶
type ElementInspectFunc func(ele interface{})
type FIFO ¶
type FIFO struct {
// contains filtered or unexported fields
}
func (*FIFO) Enum ¶
func (f *FIFO) Enum(eif ElementInspectFunc)
type ILockManager ¶
type ILockManager interface { LockKey(ctx context.Context, key string) UnlockKey(ctx context.Context, key string) }
func NewInMemoryLockManager ¶
func NewInMemoryLockManager() ILockManager
func NewNoopLockManager ¶
func NewNoopLockManager() ILockManager
type ILockedClass ¶
type ILockedClass interface {
Keyword() string
}
type ILockedObject ¶
type ILockedObject interface { ILockedClass GetId() string }
type SInMemoryLockManager ¶
type SInMemoryLockManager struct {
// contains filtered or unexported fields
}
type SInMemoryLockRecord ¶
type SInMemoryLockRecord struct {
// contains filtered or unexported fields
}
type SNoopLockManager ¶
type SNoopLockManager struct { }
Click to show internal directories.
Click to hide internal directories.