cache

package
v0.0.23-etha Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PanHeaderCache

type PanHeaderCache struct {
	// contains filtered or unexported fields
}

PanHeaderCache

func NewPanHeaderCache

func NewPanHeaderCache() *PanHeaderCache

NewPanHeaderCache initializes the map and underlying cache.

func (*PanHeaderCache) Get

func (c *PanHeaderCache) Get(ctx context.Context, slot uint64) (*eth1Types.Header, error)

Get

func (*PanHeaderCache) Put

func (c *PanHeaderCache) Put(ctx context.Context, slot uint64, header *eth1Types.Header) error

Put

type PandoraHeaderCache

type PandoraHeaderCache = iface.PandoraHeaderCache

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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