rwregister

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 17, 2020 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Check

func Check(opts txn.Opts, history core.History, graphOpt GraphOption) txn.CheckResult

Check checks append and read history for list_append

func IntPtr

func IntPtr(i int) *int

IntPtr copy int and return its pointer

func MustParseOp

func MustParseOp(opStr string) core.Op

MustParseOp ...

func Pair

func Pair(op core.Op) (core.Op, core.Op)

Pair ...

func RWExplainResult

func RWExplainResult(key string, prevValue, value core.MopValueType) rwExplainResult

RWExplainResult creates a rwExplainResult

func WRExplainResult

func WRExplainResult(key string, value core.MopValueType) wrExplainResult

WRExplainResult creates a wrExplainResult

func WWExplainResult

func WWExplainResult(key string, prevValue, value core.MopValueType) wwExplainResult

WWExplainResult creates a wwExplainResult

func WWRWGraph

func WWRWGraph(history core.History, opts ...interface{}) (core.Anomalies, *core.DirectedGraph, core.DataExplainer)

WWRWGraph ...

Types

type G1Conflict

type G1Conflict struct {
	Op      core.Op
	Mop     core.Mop
	Writer  core.Op
	Element string
}

G1Conflict records a G1 conflict

func (G1Conflict) IAnomaly

func (g G1Conflict) IAnomaly()

IAnomaly ...

func (G1Conflict) String

func (g G1Conflict) String() string

String ...

type GCaseTp

type GCaseTp []core.Anomaly

GCaseTp type aliases []core.Anomaly

type GraphOption

type GraphOption struct {
	LinearizableKeys bool //Uses realtime order
	SequentialKeys   bool // Uses process order
	WfrKeys          bool // Assumes writes follow reads in a txn
}

GraphOption ...

type Int

type Int struct {
	IsNil bool `json:"is_num"`
	Val   int  `json:"val"`
}

Int can be an int value or nil

func NewInt

func NewInt(v int) Int

NewInt creates Int with int value

func NewNil

func NewNil() Int

NewNil creates Int with nil value

func (Int) Eq

func (i Int) Eq(another Int) bool

Eq ...

func (Int) EqNotNil

func (i Int) EqNotNil(another Int) bool

EqNotNil will get false for nil

func (Int) MustGetVal

func (i Int) MustGetVal() int

MustGetVal asserts Int is not nil and get its value

func (Int) String

func (i Int) String() string

type InternalConflict

type InternalConflict struct {
	Op       core.Op
	Mop      core.Mop
	Expected core.Mop
}

InternalConflict records a internal conflict

func (InternalConflict) IAnomaly

func (i InternalConflict) IAnomaly()

IAnomaly ...

func (InternalConflict) String

func (i InternalConflict) String() string

String ...

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL