Documentation
¶
Index ¶
- func NewCollector(storer state.StateAccessesStorer, opts ...CollectorOption) (*collector, error)
- func NewStateAccessesStorer(storer storage.Storer, marshaller marshal.Marshalizer) (state.StateAccessesStorer, error)
- func WithAccountChanges() func(c *collector)
- func WithCollectRead() func(c *collector)
- func WithCollectWrite() func(c *collector)
- type CollectorOption
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
Click to show internal directories.
Click to hide internal directories.