Documentation ¶
Overview ¶
oplog provides the interface to the in-memory log.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OpRequestLog ¶
OpRequestLog is the in-memory log to store all the records.
func (*OpRequestLog) AppendRequest ¶
AppendRequest appends a request along with its opNum to the log.
func (*OpRequestLog) ReadLast ¶
ReadLast returns the last request from the log or an error if the log is empty.
func (*OpRequestLog) Undo ¶
func (o *OpRequestLog) Undo(ctx context.Context)
Undo removes the last record from the log.
Click to show internal directories.
Click to hide internal directories.