stateAccesses

package
v1.10.7 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2025 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCollector

func NewCollector(storer state.StateAccessesStorer, opts ...CollectorOption) (*collector, error)

NewCollector will create a new collector which gathers the state accesses based on the provided options.

func NewStateAccessesStorer

func NewStateAccessesStorer(storer storage.Storer, marshaller marshal.Marshalizer) (state.StateAccessesStorer, error)

NewStateAccessesStorer creates a new state accesses storer

func WithAccountChanges

func WithAccountChanges() func(c *collector)

WithAccountChanges will enable collecting account changes. This is a struct that marks which fields of the account have changed

func WithCollectRead

func WithCollectRead() func(c *collector)

WithCollectRead will enable collecting read action types

func WithCollectWrite

func WithCollectWrite() func(c *collector)

WithCollectWrite will enable collecting write action types

Types

type CollectorOption

type CollectorOption func(*collector)

CollectorOption specifies the possible options for the collector

Jump to

Keyboard shortcuts

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