util

package
v1.15.2 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0, MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeCid

func MakeCid(i interface{}) (cid.Cid, error)

func MergePeers added in v1.12.0

func MergePeers(peerSet1 []string, peerSet2 []string) []string

Types

type ReadOnlyIpldStore

type ReadOnlyIpldStore struct {
	cbor.IpldStore
}

ReadOnlyIpldStore is a store that rejects writes.

func (*ReadOnlyIpldStore) Put

func (s *ReadOnlyIpldStore) Put(ctx context.Context, v interface{}) (cid.Cid, error)

Put returns an error.

Jump to

Keyboard shortcuts

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