Documentation ¶
Index ¶
- type DataManager
- func (dataManager *DataManager) MustGetAddress(data []byte) ledgerstate.Address
- func (dataManager *DataManager) MustGetAgentID(data []byte) iscp.AgentID
- func (dataManager *DataManager) MustGetBool(data []byte) bool
- func (dataManager *DataManager) MustGetBytes(data interface{}) []byte
- func (dataManager *DataManager) MustGetChainID(data []byte) iscp.ChainID
- func (dataManager *DataManager) MustGetColor(data []byte) colored.Color
- func (dataManager *DataManager) MustGetHash(data []byte) hashing.HashValue
- func (dataManager *DataManager) MustGetHname(data []byte) iscp.Hname
- func (dataManager *DataManager) MustGetInt64(data []byte) int64
- func (dataManager *DataManager) MustGetString(data []byte) string
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 (*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.