Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Conflict ¶
Conflict checks if two commands are conflicting as reorder them will end in different states
func ConflictBatch ¶
ConflictBatch checks if two batchs of commands are conflict
Types ¶
type Database ¶
type Database interface { Execute(Command) Value History(Key) []Value Get(Key) Value Put(Key, Value) }
Database defines a database interface TODO replace with more general StateMachine interface
func NewDatabase ¶
func NewDatabase() Database
NewDatabase returns database that impelements Database interface
Click to show internal directories.
Click to hide internal directories.