utils

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2016 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHashAlgorithm

func NewHashAlgorithm(conf *api.Config) (api.HashingAlgorithm, error)

NewHashAlgorithm returns a api.HashingAlgorithm instance based on a given configuration.

Types

type HashAlgorithm

type HashAlgorithm struct {
	Name string
	Fn   api.HashingAlgorithm
	Spec api.HashingSpec
}

HashAlgorithm provides a generic interface to instantiate hash algorithm implementations

Jump to

Keyboard shortcuts

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