Documentation ¶
Index ¶
- Variables
- func Base(fullPath string) string
- func CCFromTransfer(id string) string
- func CCFromTransfers() string
- func CCToTransfer(id string) string
- func CCToTransfers() string
- func DelCCFromTransfer(stub shim.ChaincodeStubInterface, idArg string) error
- func DelCCToTransfer(stub shim.ChaincodeStubInterface, idArg string) error
- func LoadCCFromTransfer(stub shim.ChaincodeStubInterface, idArg string) (*pb.CCTransfer, error)
- func LoadCCFromTransfers(stub shim.ChaincodeStubInterface, startKey, endKey, bookmark string, ...) (*pb.CCTransfers, error)
- func LoadCCToTransfer(stub shim.ChaincodeStubInterface, idArg string) (*pb.CCTransfer, error)
- func SaveCCFromTransfer(stub shim.ChaincodeStubInterface, cct *pb.CCTransfer) error
- func SaveCCToTransfer(stub shim.ChaincodeStubInterface, cct *pb.CCTransfer) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrEmptyIDTransfer = errors.New("id transfer is empty") ErrSaveNilTransfer = errors.New("save nil transfer") ErrNotFound = errors.New("transfer not found") ErrInvalidIDUser = errors.New("invalid argument id user") ErrInvalidToken = errors.New("invalid argument token") ErrInvalidChannel = errors.New("invalid argument channel to") ErrIDTransferExist = errors.New("id transfer already exists") ErrTransferCommit = errors.New("transfer already commit") ErrTransferNotCommit = errors.New("transfer not commit") ErrInvalidBookmark = errors.New("invalid bookmark") ErrPageSizeLessOrEqZero = errors.New("page size is less or equal to zero") ErrAdminNotSet = errors.New("admin is not set in base config") ErrInvalidTransferItemsCount = errors.New("invalid argument transfer items count") ErrInvalidTokenAlreadyExists = errors.New("invalid argument token already exists") )
ErrEmptyIDTransfer CCTransfer errors.
Functions ¶
func Base ¶
Base returns the last element of path. Trailing slashes are removed before extracting the last element.
func CCFromTransfer ¶
CCFromTransfer returns path to store key.
func DelCCFromTransfer ¶
func DelCCFromTransfer(stub shim.ChaincodeStubInterface, idArg string) error
DelCCFromTransfer deletes entry.
func DelCCToTransfer ¶
func DelCCToTransfer(stub shim.ChaincodeStubInterface, idArg string) error
DelCCToTransfer deletes entry.
func LoadCCFromTransfer ¶
func LoadCCFromTransfer(stub shim.ChaincodeStubInterface, idArg string) (*pb.CCTransfer, error)
LoadCCFromTransfer returns entry by id.
func LoadCCFromTransfers ¶
func LoadCCFromTransfers( stub shim.ChaincodeStubInterface, startKey, endKey, bookmark string, pageSize int32, ) (*pb.CCTransfers, error)
LoadCCFromTransfers returns entries by range.
func LoadCCToTransfer ¶
func LoadCCToTransfer(stub shim.ChaincodeStubInterface, idArg string) (*pb.CCTransfer, error)
LoadCCToTransfer returns entry by id.
func SaveCCFromTransfer ¶
func SaveCCFromTransfer(stub shim.ChaincodeStubInterface, cct *pb.CCTransfer) error
SaveCCFromTransfer saves entry.
func SaveCCToTransfer ¶
func SaveCCToTransfer(stub shim.ChaincodeStubInterface, cct *pb.CCTransfer) error
SaveCCToTransfer saves entry.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.