trace

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventStore

type EventStore struct {
	eh.EventStore
	// contains filtered or unexported fields
}

EventStore wraps an EventStore and adds debug tracing.

func NewEventStore

func NewEventStore(eventStore eh.EventStore) *EventStore

NewEventStore creates a new EventStore.

func (*EventStore) GetTrace

func (s *EventStore) GetTrace() []eh.Event

GetTrace returns the events that happened during the tracing.

func (*EventStore) ResetTrace

func (s *EventStore) ResetTrace()

ResetTrace resets the trace.

func (*EventStore) Save

func (s *EventStore) Save(ctx context.Context, events []eh.Event, originalVersion int) error

Save implements the Save method of the eventhorizon.EventStore interface.

func (*EventStore) StartTracing

func (s *EventStore) StartTracing()

StartTracing starts the tracing of events.

func (*EventStore) StopTracing

func (s *EventStore) StopTracing()

StopTracing stops the tracing of events.

Jump to

Keyboard shortcuts

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