Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CardholderStore ¶
type CardholderStore struct {
// contains filtered or unexported fields
}
CardholderStore abstracts Cardholder CRUD methods
func NewCardholderStore ¶
func NewCardholderStore(stub shim.ChaincodeStubInterface, logger *shim.ChaincodeLogger) *CardholderStore
NewCardholderStore returns a instance of a Cardholter store
func (*CardholderStore) DeleteCardholder ¶
func (c *CardholderStore) DeleteCardholder(CPF string) error
DeleteCardholder deletes an instance of a Cardholder based on it's CPF
func (*CardholderStore) GetCardholder ¶
func (c *CardholderStore) GetCardholder(CPF string) (cardholder *model.Cardholder, err error)
GetCardholder returns an instance of a cardholder based on it's CPF
func (*CardholderStore) SetCardholder ¶
func (c *CardholderStore) SetCardholder(cardholder *model.Cardholder) error
SetCardholder creates or updates a instance of a Cardholders
Click to show internal directories.
Click to hide internal directories.