datamanager

package
v0.9.13 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataManager

type DataManager struct {
	// contains filtered or unexported fields
}

DataManager manipulates result structures

func New

func New(env *solo.Solo) *DataManager

New instantiates a data manager

func (*DataManager) MustGetAddress

func (dataManager *DataManager) MustGetAddress(data []byte) ledgerstate.Address

MustGetAddress converts input data into an Address. Fails test if no input is provided or cannot be converted.

func (*DataManager) MustGetAgentID

func (dataManager *DataManager) MustGetAgentID(data []byte) iscp.AgentID

MustGetAgentID converts input data into an AgentID. Fails test if no input is provided or cannot be converted.

func (*DataManager) MustGetBool added in v0.9.2

func (dataManager *DataManager) MustGetBool(data []byte) bool

MustGetBool converts input data into a bool. Fails test if no input is provided or the data array is longer than 1.

func (*DataManager) MustGetBytes

func (dataManager *DataManager) MustGetBytes(data interface{}) []byte

MustGetBytes returns the input as is. Fails test if no input is provided.

func (*DataManager) MustGetChainID

func (dataManager *DataManager) MustGetChainID(data []byte) iscp.ChainID

MustGetChainID converts input data into a ChainID. Fails test if no input is provided or cannot be converted.

func (*DataManager) MustGetColor

func (dataManager *DataManager) MustGetColor(data []byte) colored.Color

MustGetColor converts input data into a Color. Fails test if no input is provided or cannot be converted.

func (*DataManager) MustGetHash

func (dataManager *DataManager) MustGetHash(data []byte) hashing.HashValue

MustGetHash converts input data into a HashValue. Fails test if no input is provided or cannot be converted.

func (*DataManager) MustGetHname

func (dataManager *DataManager) MustGetHname(data []byte) iscp.Hname

MustGetHname converts input data into an Hname. Fails test if no input is provided or cannot be converted.

func (*DataManager) MustGetInt64

func (dataManager *DataManager) MustGetInt64(data []byte) int64

MustGetInt64 converts input data into int64. Fails test when either no data is provided or cannot be converted.

func (*DataManager) MustGetString

func (dataManager *DataManager) MustGetString(data []byte) string

MustGetString converts input data into int64. Fails test when either no data is provided or cannot be converted.

Jump to

Keyboard shortcuts

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