Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DataChildScope ¶
type DataChildScope struct {
// contains filtered or unexported fields
}
DataChildScope represent child data scope. It contains all parent data and its own.
func (*DataChildScope) Keys ¶
func (scp *DataChildScope) Keys() (keys []interface{})
Keys get map data
func (*DataChildScope) LockData ¶
func (scp *DataChildScope) LockData() (locker app.DataScopeLocker)
LockData return new data locker
func (*DataChildScope) SetValue ¶
func (scp *DataChildScope) SetValue(key interface{}, v interface{})
Set new scope value
func (*DataChildScope) Value ¶
func (scp *DataChildScope) Value(key interface{}) (value interface{})
Get get value from context
type DataLocker ¶
type DataLocker struct {
// contains filtered or unexported fields
}
DataLocker represent the data scope transaction
func (*DataLocker) Commit ¶
func (locker *DataLocker) Commit() (err error)
Commit unlock parent scope and close locker
func (*DataLocker) LockData ¶
func (locker *DataLocker) LockData() app.DataScopeLocker
LockData return new data locker
func (*DataLocker) SetValue ¶
func (locker *DataLocker) SetValue(key interface{}, v interface{})
func (*DataLocker) Value ¶
func (locker *DataLocker) Value(key interface{}) (value interface{})
type DataScope ¶
type DataScope struct { Data map[interface{}]interface{} // contains filtered or unexported fields }
DataScope represent scope data
func (*DataScope) LockData ¶
func (ds *DataScope) LockData() (locker app.DataScopeLocker)
LockData return new data locker
Click to show internal directories.
Click to hide internal directories.