sentinel

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

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