fingerprint

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AlgoMultihash256 = "fingerprints:multihash256"
)
View Source
const (
	AlgoSha256 = "fingerprints:sha256"
)

Variables

View Source
var (
	METHODS = map[string]Algorithm{
		AlgoMultihash256: GetMultihashFingerprint,
		AlgoSha256:       GetSha256Fingerprint,
	}
)

Functions

func GetFingerprint

func GetFingerprint(data io.Reader, algo string) ([]byte, error)

func GetMultihashFingerprint

func GetMultihashFingerprint(r io.Reader) ([]byte, error)

func GetSha256Fingerprint

func GetSha256Fingerprint(r io.Reader) ([]byte, error)

Types

type Algorithm

type Algorithm func(io.Reader) ([]byte, error)

Jump to

Keyboard shortcuts

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