chaincode

package
v0.0.0-...-f577417 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CardholderChaincode

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

CardholderChaincode abstracts chaincode calls

func NewCardholderChaincode

func NewCardholderChaincode(logger *shim.ChaincodeLogger) *CardholderChaincode

NewCardholderChaincode creates a new Chaincode with it's predefined routes

func (*CardholderChaincode) CreateCardholder

func (cc *CardholderChaincode) CreateCardholder(stub shim.ChaincodeStubInterface, args []string) peer.Response

CreateCardholder initiates a basic user defined in model. parameters: cpf, name, gender and birthdate

func (*CardholderChaincode) DeleteCardholder

func (cc *CardholderChaincode) DeleteCardholder(stub shim.ChaincodeStubInterface, args []string) peer.Response

DeleteCardholder deletes a cardholder based on it's CPF parameters: cpf

func (*CardholderChaincode) GetCardholder

func (cc *CardholderChaincode) GetCardholder(stub shim.ChaincodeStubInterface, args []string) peer.Response

GetCardholder returns a cardholder based on it's CPF parameters: cpf

func (*CardholderChaincode) Init

Init implements CardholderChaincode basic setup

func (*CardholderChaincode) Invoke

Invoke calls a chaincode method

func (*CardholderChaincode) UpdateCardholder

func (cc *CardholderChaincode) UpdateCardholder(stub shim.ChaincodeStubInterface, args []string) peer.Response

UpdateCardholder updates data from a cardholder based on it's CPF parameters: cpf, name, gender and birthdate

Jump to

Keyboard shortcuts

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