stateAccesses

package
v1.10.8 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2025 License: GPL-3.0 Imports: 13 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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