{"modulePath":"github.com/eric-erki/https-hyperledger.org","version":"v1.0.0-alpha","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package main\n\n## Types\n\n```go\ntype AuthorizableCounterChaincode struct {\n}\n```\nAuthorizableCounterChaincode is an example that use Attribute Based Access Control to control the access to a counter by users with an specific role. In this case only users which TCerts contains the attribute position with the value \"Software Engineer\" will be able to increment the counter.\n\n```go\nfunc (t *AuthorizableCounterChaincode) Init(stub shim.ChaincodeStubInterface) pb.Response\n```\nInit the chaincode asigned the value \"0\" to the counter in the state.\n\n```go\nfunc (t *AuthorizableCounterChaincode) Invoke(stub shim.ChaincodeStubInterface) pb.Response\n```\nInvoke  method is the interceptor of all invocation transactions, its job is to direct invocation transactions to intended APIs\n\n","path":"github.com/eric-erki/https-hyperledger.org/examples/chaincode/go/authorizable_counter","name":"main","synopsis":"","isRedistributable":true}
