tracer

package
v1.40.2 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metadata

type Metadata struct {
	BlockHeight int64  `json:"blockHeight"`
	StoreName   string `json:"store_name"`
}

type StoreTracer

type StoreTracer struct {
	Traces chan *Trace
	// contains filtered or unexported fields
}

func NewStoreTracer

func NewStoreTracer(path string, createFifo bool) (*StoreTracer, error)

func (*StoreTracer) Start

func (t *StoreTracer) Start()

func (*StoreTracer) Stop

func (t *StoreTracer) Stop() error

type Trace

type Trace struct {
	Operation string    `json:"operation"`
	Key       string    `json:"key"`
	Value     string    `json:"value"`
	Metadata  *Metadata `json:"metadata,omitempty"`
	Err       error     `json:"-"`
}

Jump to

Keyboard shortcuts

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