Documentation ¶
Index ¶
- Variables
- type DataStore
- type DataStoreCaller
- func (_DataStore *DataStoreCaller) AccessStore(opts *bind.CallOpts) (common.Address, error)
- func (_DataStore *DataStoreCaller) AllowedChange(opts *bind.CallOpts, arg0 common.Address) (bool, error)
- func (_DataStore *DataStoreCaller) EhrIndex(opts *bind.CallOpts) (common.Address, error)
- func (_DataStore *DataStoreCaller) Users(opts *bind.CallOpts) (common.Address, error)
- type DataStoreCallerRaw
- type DataStoreCallerSession
- func (_DataStore *DataStoreCallerSession) AccessStore() (common.Address, error)
- func (_DataStore *DataStoreCallerSession) AllowedChange(arg0 common.Address) (bool, error)
- func (_DataStore *DataStoreCallerSession) EhrIndex() (common.Address, error)
- func (_DataStore *DataStoreCallerSession) Users() (common.Address, error)
- type DataStoreDataUpdate
- type DataStoreDataUpdateIterator
- type DataStoreFilterer
- func (_DataStore *DataStoreFilterer) FilterDataUpdate(opts *bind.FilterOpts) (*DataStoreDataUpdateIterator, error)
- func (_DataStore *DataStoreFilterer) ParseDataUpdate(log types.Log) (*DataStoreDataUpdate, error)
- func (_DataStore *DataStoreFilterer) WatchDataUpdate(opts *bind.WatchOpts, sink chan<- *DataStoreDataUpdate) (event.Subscription, error)
- type DataStoreRaw
- func (_DataStore *DataStoreRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_DataStore *DataStoreRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_DataStore *DataStoreRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type DataStoreSession
- func (_DataStore *DataStoreSession) AccessStore() (common.Address, error)
- func (_DataStore *DataStoreSession) AllowedChange(arg0 common.Address) (bool, error)
- func (_DataStore *DataStoreSession) DataUpdate(groupID [32]byte, dataID [32]byte, ehrID [32]byte, data []byte, ...) (*types.Transaction, error)
- func (_DataStore *DataStoreSession) EhrIndex() (common.Address, error)
- func (_DataStore *DataStoreSession) SetAllowed(addr common.Address, allowed bool) (*types.Transaction, error)
- func (_DataStore *DataStoreSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)
- func (_DataStore *DataStoreSession) Users() (common.Address, error)
- type DataStoreTransactor
- func (_DataStore *DataStoreTransactor) DataUpdate(opts *bind.TransactOpts, groupID [32]byte, dataID [32]byte, ehrID [32]byte, ...) (*types.Transaction, error)
- func (_DataStore *DataStoreTransactor) SetAllowed(opts *bind.TransactOpts, addr common.Address, allowed bool) (*types.Transaction, error)
- func (_DataStore *DataStoreTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error)
- type DataStoreTransactorRaw
- type DataStoreTransactorSession
- func (_DataStore *DataStoreTransactorSession) DataUpdate(groupID [32]byte, dataID [32]byte, ehrID [32]byte, data []byte, ...) (*types.Transaction, error)
- func (_DataStore *DataStoreTransactorSession) SetAllowed(addr common.Address, allowed bool) (*types.Transaction, error)
- func (_DataStore *DataStoreTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)
Constants ¶
This section is empty.
Variables ¶
var DataStoreABI = DataStoreMetaData.ABI
DataStoreABI is the input ABI used to generate the binding from. Deprecated: Use DataStoreMetaData.ABI instead.
var DataStoreMetaData = &bind.MetaData{
ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_users\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"groupID\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"dataID\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"ehrID\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"DataUpdate\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"accessStore\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"allowedChange\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"groupID\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"dataID\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"ehrID\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"address\",\"name\":\"signer\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"}],\"name\":\"dataUpdate\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"ehrIndex\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"allowed\",\"type\":\"bool\"}],\"name\":\"setAllowed\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"users\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
}
DataStoreMetaData contains all meta data concerning the DataStore contract.
Functions ¶
This section is empty.
Types ¶
type DataStore ¶
type DataStore struct { DataStoreCaller // Read-only binding to the contract DataStoreTransactor // Write-only binding to the contract DataStoreFilterer // Log filterer for contract events }
DataStore is an auto generated Go binding around an Ethereum contract.
func NewDataStore ¶
NewDataStore creates a new instance of DataStore, bound to a specific deployed contract.
type DataStoreCaller ¶
type DataStoreCaller struct {
// contains filtered or unexported fields
}
DataStoreCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewDataStoreCaller ¶
func NewDataStoreCaller(address common.Address, caller bind.ContractCaller) (*DataStoreCaller, error)
NewDataStoreCaller creates a new read-only instance of DataStore, bound to a specific deployed contract.
func (*DataStoreCaller) AccessStore ¶
AccessStore is a free data retrieval call binding the contract method 0x45e9ea6f.
Solidity: function accessStore() view returns(address)
func (*DataStoreCaller) AllowedChange ¶
func (_DataStore *DataStoreCaller) AllowedChange(opts *bind.CallOpts, arg0 common.Address) (bool, error)
AllowedChange is a free data retrieval call binding the contract method 0xe9b5b29a.
Solidity: function allowedChange(address ) view returns(bool)
type DataStoreCallerRaw ¶
type DataStoreCallerRaw struct {
Contract *DataStoreCaller // Generic read-only contract binding to access the raw methods on
}
DataStoreCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*DataStoreCallerRaw) Call ¶
func (_DataStore *DataStoreCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error
Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.
type DataStoreCallerSession ¶
type DataStoreCallerSession struct { Contract *DataStoreCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
DataStoreCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*DataStoreCallerSession) AccessStore ¶
func (_DataStore *DataStoreCallerSession) AccessStore() (common.Address, error)
AccessStore is a free data retrieval call binding the contract method 0x45e9ea6f.
Solidity: function accessStore() view returns(address)
func (*DataStoreCallerSession) AllowedChange ¶
func (_DataStore *DataStoreCallerSession) AllowedChange(arg0 common.Address) (bool, error)
AllowedChange is a free data retrieval call binding the contract method 0xe9b5b29a.
Solidity: function allowedChange(address ) view returns(bool)
type DataStoreDataUpdate ¶
type DataStoreDataUpdate struct { GroupID [32]byte DataID [32]byte EhrID [32]byte Data []byte Raw types.Log // Blockchain specific contextual infos }
DataStoreDataUpdate represents a DataUpdate event raised by the DataStore contract.
type DataStoreDataUpdateIterator ¶
type DataStoreDataUpdateIterator struct { Event *DataStoreDataUpdate // Event containing the contract specifics and raw log // contains filtered or unexported fields }
DataStoreDataUpdateIterator is returned from FilterDataUpdate and is used to iterate over the raw logs and unpacked data for DataUpdate events raised by the DataStore contract.
func (*DataStoreDataUpdateIterator) Close ¶
func (it *DataStoreDataUpdateIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*DataStoreDataUpdateIterator) Error ¶
func (it *DataStoreDataUpdateIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*DataStoreDataUpdateIterator) Next ¶
func (it *DataStoreDataUpdateIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.
type DataStoreFilterer ¶
type DataStoreFilterer struct {
// contains filtered or unexported fields
}
DataStoreFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewDataStoreFilterer ¶
func NewDataStoreFilterer(address common.Address, filterer bind.ContractFilterer) (*DataStoreFilterer, error)
NewDataStoreFilterer creates a new log filterer instance of DataStore, bound to a specific deployed contract.
func (*DataStoreFilterer) FilterDataUpdate ¶
func (_DataStore *DataStoreFilterer) FilterDataUpdate(opts *bind.FilterOpts) (*DataStoreDataUpdateIterator, error)
FilterDataUpdate is a free log retrieval operation binding the contract event 0x1412a9906d5462af327cae12f530e25ae94bdfd0ea6eb9aa4b8ad371ed56f8a2.
Solidity: event DataUpdate(bytes32 groupID, bytes32 dataID, bytes32 ehrID, bytes data)
func (*DataStoreFilterer) ParseDataUpdate ¶
func (_DataStore *DataStoreFilterer) ParseDataUpdate(log types.Log) (*DataStoreDataUpdate, error)
ParseDataUpdate is a log parse operation binding the contract event 0x1412a9906d5462af327cae12f530e25ae94bdfd0ea6eb9aa4b8ad371ed56f8a2.
Solidity: event DataUpdate(bytes32 groupID, bytes32 dataID, bytes32 ehrID, bytes data)
func (*DataStoreFilterer) WatchDataUpdate ¶
func (_DataStore *DataStoreFilterer) WatchDataUpdate(opts *bind.WatchOpts, sink chan<- *DataStoreDataUpdate) (event.Subscription, error)
WatchDataUpdate is a free log subscription operation binding the contract event 0x1412a9906d5462af327cae12f530e25ae94bdfd0ea6eb9aa4b8ad371ed56f8a2.
Solidity: event DataUpdate(bytes32 groupID, bytes32 dataID, bytes32 ehrID, bytes data)
type DataStoreRaw ¶
type DataStoreRaw struct {
Contract *DataStore // Generic contract binding to access the raw methods on
}
DataStoreRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*DataStoreRaw) Call ¶
func (_DataStore *DataStoreRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error
Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.
func (*DataStoreRaw) Transact ¶
func (_DataStore *DataStoreRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*DataStoreRaw) Transfer ¶
func (_DataStore *DataStoreRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.
type DataStoreSession ¶
type DataStoreSession struct { Contract *DataStore // Generic contract binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
DataStoreSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*DataStoreSession) AccessStore ¶
func (_DataStore *DataStoreSession) AccessStore() (common.Address, error)
AccessStore is a free data retrieval call binding the contract method 0x45e9ea6f.
Solidity: function accessStore() view returns(address)
func (*DataStoreSession) AllowedChange ¶
func (_DataStore *DataStoreSession) AllowedChange(arg0 common.Address) (bool, error)
AllowedChange is a free data retrieval call binding the contract method 0xe9b5b29a.
Solidity: function allowedChange(address ) view returns(bool)
func (*DataStoreSession) DataUpdate ¶
func (_DataStore *DataStoreSession) DataUpdate(groupID [32]byte, dataID [32]byte, ehrID [32]byte, data []byte, signer common.Address, deadline *big.Int, signature []byte) (*types.Transaction, error)
DataUpdate is a paid mutator transaction binding the contract method 0x03144fad.
Solidity: function dataUpdate(bytes32 groupID, bytes32 dataID, bytes32 ehrID, bytes data, address signer, uint256 deadline, bytes signature) returns()
func (*DataStoreSession) EhrIndex ¶
func (_DataStore *DataStoreSession) EhrIndex() (common.Address, error)
EhrIndex is a free data retrieval call binding the contract method 0x98655acb.
Solidity: function ehrIndex() view returns(address)
func (*DataStoreSession) SetAllowed ¶
func (_DataStore *DataStoreSession) SetAllowed(addr common.Address, allowed bool) (*types.Transaction, error)
SetAllowed is a paid mutator transaction binding the contract method 0x4697f05d.
Solidity: function setAllowed(address addr, bool allowed) returns()
func (*DataStoreSession) TransferOwnership ¶
func (_DataStore *DataStoreSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)
TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.
Solidity: function transferOwnership(address newOwner) returns()
type DataStoreTransactor ¶
type DataStoreTransactor struct {
// contains filtered or unexported fields
}
DataStoreTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewDataStoreTransactor ¶
func NewDataStoreTransactor(address common.Address, transactor bind.ContractTransactor) (*DataStoreTransactor, error)
NewDataStoreTransactor creates a new write-only instance of DataStore, bound to a specific deployed contract.
func (*DataStoreTransactor) DataUpdate ¶
func (_DataStore *DataStoreTransactor) DataUpdate(opts *bind.TransactOpts, groupID [32]byte, dataID [32]byte, ehrID [32]byte, data []byte, signer common.Address, deadline *big.Int, signature []byte) (*types.Transaction, error)
DataUpdate is a paid mutator transaction binding the contract method 0x03144fad.
Solidity: function dataUpdate(bytes32 groupID, bytes32 dataID, bytes32 ehrID, bytes data, address signer, uint256 deadline, bytes signature) returns()
func (*DataStoreTransactor) SetAllowed ¶
func (_DataStore *DataStoreTransactor) SetAllowed(opts *bind.TransactOpts, addr common.Address, allowed bool) (*types.Transaction, error)
SetAllowed is a paid mutator transaction binding the contract method 0x4697f05d.
Solidity: function setAllowed(address addr, bool allowed) returns()
func (*DataStoreTransactor) TransferOwnership ¶
func (_DataStore *DataStoreTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error)
TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.
Solidity: function transferOwnership(address newOwner) returns()
type DataStoreTransactorRaw ¶
type DataStoreTransactorRaw struct {
Contract *DataStoreTransactor // Generic write-only contract binding to access the raw methods on
}
DataStoreTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*DataStoreTransactorRaw) Transact ¶
func (_DataStore *DataStoreTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*DataStoreTransactorRaw) Transfer ¶
func (_DataStore *DataStoreTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.
type DataStoreTransactorSession ¶
type DataStoreTransactorSession struct { Contract *DataStoreTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
DataStoreTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*DataStoreTransactorSession) DataUpdate ¶
func (_DataStore *DataStoreTransactorSession) DataUpdate(groupID [32]byte, dataID [32]byte, ehrID [32]byte, data []byte, signer common.Address, deadline *big.Int, signature []byte) (*types.Transaction, error)
DataUpdate is a paid mutator transaction binding the contract method 0x03144fad.
Solidity: function dataUpdate(bytes32 groupID, bytes32 dataID, bytes32 ehrID, bytes data, address signer, uint256 deadline, bytes signature) returns()
func (*DataStoreTransactorSession) SetAllowed ¶
func (_DataStore *DataStoreTransactorSession) SetAllowed(addr common.Address, allowed bool) (*types.Transaction, error)
SetAllowed is a paid mutator transaction binding the contract method 0x4697f05d.
Solidity: function setAllowed(address addr, bool allowed) returns()
func (*DataStoreTransactorSession) TransferOwnership ¶
func (_DataStore *DataStoreTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)
TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.
Solidity: function transferOwnership(address newOwner) returns()