hash

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package hash implements encoding hash interface.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Hash

type Hash struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

Hash is the base hash type.

func NewHash

func NewHash(hasher hash.Hash) (*Hash, error)

NewHash returns new hash struct.

func (*Hash) Encode

func (h *Hash) Encode(imageURL string) (string, error)

Encode hashes url to hash.

Jump to

Keyboard shortcuts

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