attmap

package
v5.3.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2025 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Attestations

type Attestations struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

Attestations --

func New

func New() *Attestations

New creates a new instance of the map.

func (*Attestations) Count

func (a *Attestations) Count() int

Count returns the number of attestations in the map.

func (*Attestations) Delete

func (a *Attestations) Delete(att ethpb.Att) error

Delete removes an attestation from the map.

func (*Attestations) GetAll

func (a *Attestations) GetAll() []ethpb.Att

GetAll retrieves all attestations that are in the map.

func (*Attestations) Save

func (a *Attestations) Save(att ethpb.Att) error

Save stores an attestation in the map.

func (*Attestations) SaveMany

func (a *Attestations) SaveMany(atts []ethpb.Att) error

SaveMany stores multiple attestation in the map.

Jump to

Keyboard shortcuts

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