thead

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package head provides abstractions for Public Distributed Commit Log topic head manipulation.

Index

Constants

This section is empty.

Variables

View Source
var ErrTopicNotStarted = errors.New("topic head is started")

ErrTopicNotStarted means, that there are no commits added to topic yet.

Functions

This section is empty.

Types

type Manager

type Manager interface {
	Reader
	Setter
}

type Reader

type Reader interface {
	ReadHead(ctx context.Context) (cid.Cid, error)
}

type Setter

type Setter interface {
	SetHead(ctx context.Context, cid cid.Cid) error
}

Directories

Path Synopsis
Package ipns provides implementation for pdcl head management based on ipns protocol.
Package ipns provides implementation for pdcl head management based on ipns protocol.
Package memory provides simple, in-memory head reader and setter for testing and development.
Package memory provides simple, in-memory head reader and setter for testing and development.

Jump to

Keyboard shortcuts

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