Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CasRegisterModel ¶
CasRegisterModel returns a cas register model
func CasRegisterParser ¶
func CasRegisterParser() history.RecordParser
CasRegisterParser parses CasRegister history.
func RegisterModel ¶
RegisterModel returns a read/write register model
func RegisterParser ¶
func RegisterParser() history.RecordParser
RegisterParser parses Register history.
Types ¶
type CasRegisterRequest ¶
type CasRegisterRequest struct { Op CasOp Arg1 int // used for write, or for CAS from argument Arg2 int // used for CAS to argument }
CasRegisterRequest is the request that is issued to a cas register.
type CasRegisterResponse ¶
type CasRegisterResponse struct { Ok bool // used for CAS Exists bool // used for read Value int // used for read Unknown bool // used when operation times out }
CasRegisterResponse is the response returned by a cas register.
func (CasRegisterResponse) IsUnknown ¶
func (r CasRegisterResponse) IsUnknown() bool
IsUnknown implements UnknownResponse interface
type RegisterRequest ¶
RegisterRequest is the request that is issued to a register.
type RegisterResponse ¶
RegisterResponse is the response returned by a register.
func (RegisterResponse) IsUnknown ¶
func (r RegisterResponse) IsUnknown() bool
IsUnknown implements UnknownResponse interface
Click to show internal directories.
Click to hide internal directories.