memory

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package memory provides simple, in-memory head reader and setter for testing and development.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HeadManager

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

func NewHeadManager

func NewHeadManager(currentHead cid.Cid) *HeadManager

func (*HeadManager) ReadHead

func (h *HeadManager) ReadHead(ctx context.Context) (cid.Cid, error)

func (*HeadManager) SetHead

func (h *HeadManager) SetHead(ctx context.Context, cid cid.Cid) error

Jump to

Keyboard shortcuts

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