trace

package
v0.0.0-...-2e7796a Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2023 License: Apache-2.0 Imports: 9 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Element

type Element interface {
	// contains filtered or unexported methods
}

type Event

type Event struct {
	ArchetypeName string
	Self          tla.Value
	Elements      []Element
	Clock         VClock
}

func (Event) MarshalJSON

func (event Event) MarshalJSON() ([]byte, error)

type EventState

type EventState struct {
	Recorder      Recorder
	ArchetypeName string
	ArchetypeSelf tla.Value
	// contains filtered or unexported fields
}

func (*EventState) BeginEvent

func (acc *EventState) BeginEvent()

func (*EventState) CommitEvent

func (acc *EventState) CommitEvent()

func (*EventState) CrashEvent

func (acc *EventState) CrashEvent(err error)

func (*EventState) DropEvent

func (acc *EventState) DropEvent()

func (*EventState) HasRecorder

func (acc *EventState) HasRecorder() bool

func (*EventState) RecordRead

func (acc *EventState) RecordRead(name string, indices []tla.Value, value tla.Value)

func (*EventState) RecordWrite

func (acc *EventState) RecordWrite(name string, indices []tla.Value, value tla.Value)

func (*EventState) UpdateVClock

func (acc *EventState) UpdateVClock(clock VClock)

func (*EventState) VClock

func (acc *EventState) VClock() VClock

type ReadElement

type ReadElement struct {
	Prefix, Name string
	Indices      []tla.Value
	Value        tla.Value
}

type Recorder

type Recorder interface {
	RecordEvent(event Event)
}

func MakeLocalFileRecorder

func MakeLocalFileRecorder(filename string) Recorder

type VClock

type VClock struct {
	// contains filtered or unexported fields
}

func (VClock) Get

func (clock VClock) Get(archetypeId string, self tla.Value) int

func (*VClock) GobDecode

func (clock *VClock) GobDecode(b []byte) error

func (*VClock) GobEncode

func (clock *VClock) GobEncode() ([]byte, error)

func (VClock) Inc

func (clock VClock) Inc(archetypeName string, self tla.Value) VClock

func (VClock) MarshalJSON

func (clock VClock) MarshalJSON() ([]byte, error)

func (VClock) Merge

func (clock VClock) Merge(other VClock) VClock

func (VClock) String

func (clock VClock) String() string

type WriteElement

type WriteElement struct {
	Prefix, Name string
	Indices      []tla.Value
	Value        tla.Value
}

Jump to

Keyboard shortcuts

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