thead

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 thead 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
}

Manager is responsible for accessing topic head

type Reader

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

Reader provides cid of topic head

type Setter

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

Setter sets topic head

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.
Package sentinenhead enables to read head value from sentinel.
Package sentinenhead enables to read head value from sentinel.

Jump to

Keyboard shortcuts

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