dataconverters

package
v2.8.1 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2025 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Hasher

type Hasher struct {
	Locker sync.Mutex
	Hash   hash.Hash
}

func NewHasher

func NewHasher(h hash.Hash) *Hasher

func (*Hasher) Convert

func (h *Hasher) Convert(in types.RawBytes) types.ConvertedBytes

type HasherFactory

type HasherFactory struct {
	NewHasherFunc func() hash.Hash
}

func NewHasherFactory

func NewHasherFactory(f func() hash.Hash) HasherFactory

NewHasherFactory returns a types.DataConverter using a hasher.

func (HasherFactory) Convert

Convert implements types.DataConverter.

func (HasherFactory) NewDataConverter

func (w HasherFactory) NewDataConverter() types.DataConverter

Convert implements types.DataConverterFactory.

Jump to

Keyboard shortcuts

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