signature

package
v0.2.10 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromKey

func FromKey(keyValue string) (value.Transformer, error)

FromKey returns the value transformer that match the value format.

func IsDetached

func IsDetached(ctx context.Context) bool

func IsDeterministic

func IsDeterministic(ctx context.Context) bool

func IsInputPreHashed

func IsInputPreHashed(ctx context.Context) bool

func Must

Must is used to panic when a transformer initialization failed.

func Register

func Register(prefix string, factory TransformerFactoryFunc)

Register a transformer with the given prefix.

func WithDetachedSignature

func WithDetachedSignature(ctx context.Context, value bool) context.Context

func WithDetermisticSignature

func WithDetermisticSignature(ctx context.Context, value bool) context.Context

func WithInputPreHashed

func WithInputPreHashed(ctx context.Context, value bool) context.Context

Types

type TransformerFactoryFunc

type TransformerFactoryFunc func(string) (value.Transformer, error)

TransformerFactoryFunc is used for transformer building for signature.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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