Documentation ¶
Overview ¶
Simple CRUD chaincode for store information about cars
Simple CRUD chaincode for store information about cars
Index ¶
Constants ¶
View Source
const CarEntity = `CAR`
View Source
const CarRegisteredEvent = `CAR_REGISTERED`
Variables ¶
View Source
var Payloads = []*Car{{
Id: `A777MP77`,
Title: `BMW`,
Owner: `victor-nosov`,
}, {
Id: `O888OO77`,
Title: `TOYOTA`,
Owner: `alexander`,
}, {
Id: `O222OO177`,
Title: `Lambo`,
Owner: `hodl`,
}, {
Id: `E333KX177`,
Title: `Aurus`,
Owner: `bigboss`,
}}
Functions ¶
func NewWithoutAccessControl ¶
Types ¶
type Car ¶
type Car struct { Id string Title string Owner string UpdatedAt time.Time // set by chaincode method }
Car struct for chaincode state
type CarPayload ¶
CarPayload chaincode method argument
Click to show internal directories.
Click to hide internal directories.