Documentation ¶
Index ¶
- Variables
- type Action
- type ActionSet
- type ActionSlice
- type ConditionLockStep
- type Element
- type LockStep
- func (s *LockStep) Add(id uint32, state interface{})
- func (s *LockStep) AddActionSlice(actions []ActionSet) int
- func (s *LockStep) AddActions(actions map[uint32]interface{}) int
- func (s *LockStep) Complete(index int)
- func (s *LockStep) Drop(index int)
- func (s *LockStep) LoadBase(id uint32) (interface{}, bool)
- func (s *LockStep) LoadExpected(id uint32) (interface{}, bool)
- func (s *LockStep) Range(c func(id uint32, base, expected *Element) bool)
- func (s *LockStep) Remove(id uint32)
- type LockStepAction
- type LockStepOperator
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ActionSetSize = 1024 ActionSetPool = sync.Pool{ New: func() interface{} { return make([]ActionSet, ActionSetSize) }, } )
Functions ¶
This section is empty.
Types ¶
type ActionSlice ¶
type ActionSlice []ActionSet
func (ActionSlice) FindAsIsSorted ¶
func (s ActionSlice) FindAsIsSorted(id uint32) (*Action, bool)
func (ActionSlice) Len ¶
func (s ActionSlice) Len() int
func (ActionSlice) Less ¶
func (s ActionSlice) Less(i, j int) bool
func (ActionSlice) Swap ¶
func (s ActionSlice) Swap(i, j int)
type ConditionLockStep ¶
type ConditionLockStep struct {
*LockStep
}
func NewConditionLockStep ¶
func NewConditionLockStep( clone func(from interface{}) interface{}, ) *ConditionLockStep
type LockStep ¶
type LockStep struct {
// contains filtered or unexported fields
}
func NewLockStep ¶
func (*LockStep) AddActionSlice ¶
func (*LockStep) AddActions ¶
func (*LockStep) LoadExpected ¶
type LockStepAction ¶
type LockStepAction struct {
// contains filtered or unexported fields
}
type LockStepOperator ¶
type LockStepOperator interface { Add(id uint32, state interface{}) Remove(id uint32) Range(c func(id uint32, base, expected *Element) bool) LoadBase(id uint32) (interface{}, bool) LoadExpected(id uint32) (interface{}, bool) AddActions(actions map[uint32]interface{}) int AddActionSlice(actions []ActionSet) int Complete(index int) Drop(index int) }
Click to show internal directories.
Click to hide internal directories.