pvtdata

package
v0.0.0-...-06981e3 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrWrongTransientFieldName  = errors.New("Field is not present in transient data map")
	ErrEmptyTransientFieldValue = errors.New("Transient field has empty value")
)

Technical pvtdata errors TODO: make errors constant

Functions

func GetTransientDataValue

func GetTransientDataValue(ctx contractapi.TransactionContextInterface, fieldName string) (value []byte, err error)

GetTransientDataValue is a function that obtains the value of a specific field of the private data

func GetTransientDataValueUnmarshaled

func GetTransientDataValueUnmarshaled(ctx contractapi.TransactionContextInterface, fieldName string, v interface{}) (err error)

GetTransientDataValueUnmarshaled is a function that obtains the value of a specific field of the private data that should be a JSON string and unmarshals it

Types

This section is empty.

Jump to

Keyboard shortcuts

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