sentinelhead

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: 5 Imported by: 0

Documentation

Overview

Package sentinenhead enables to read head value from sentinel.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reader

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

Reader implements head.Reader based on sentinel client. It should be initialized with New function

func New

func New(client sentinelpb.SentinelClient) *Reader

New initializes sentinel head.Reader

func (*Reader) ReadHead

func (s *Reader) ReadHead(ctx context.Context) (cid.Cid, error)

ReadHead fetches head cid from sentinel

Jump to

Keyboard shortcuts

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