store

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: 3 Imported by: 0

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

Jump to

Keyboard shortcuts

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