contractManager

package
v0.0.0-...-85e7b1b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 5, 2022 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const HealthShareABI = "" /* 3963-byte string literal not displayed */

HealthShareABI is the input ABI used to generate the binding from.

Variables

This section is empty.

Functions

func NewConractManager

func NewConractManager(ContractHex string, rpcUrl string) (*contractManager, error)

func Test

func Test()

Types

type HealthShare

type HealthShare struct {
	HealthShareCaller     // Read-only binding to the contract
	HealthShareTransactor // Write-only binding to the contract
	HealthShareFilterer   // Log filterer for contract events
}

HealthShare is an auto generated Go binding around an Ethereum contract.

func NewHealthShare

func NewHealthShare(address common.Address, backend bind.ContractBackend) (*HealthShare, error)

NewHealthShare creates a new instance of HealthShare, bound to a specific deployed contract.

type HealthShareCaller

type HealthShareCaller struct {
	// contains filtered or unexported fields
}

HealthShareCaller is an auto generated read-only Go binding around an Ethereum contract.

func NewHealthShareCaller

func NewHealthShareCaller(address common.Address, caller bind.ContractCaller) (*HealthShareCaller, error)

NewHealthShareCaller creates a new read-only instance of HealthShare, bound to a specific deployed contract.

func (*HealthShareCaller) GetPatientDetailedData

func (_HealthShare *HealthShareCaller) GetPatientDetailedData(opts *bind.CallOpts, _id *big.Int) (*big.Int, *big.Int, *big.Int, *big.Int, error)

GetPatientDetailedData is a free data retrieval call binding the contract method 0xbc0f600b.

Solidity: function getPatientDetailedData(uint256 _id) constant returns(uint256, uint256, uint256, uint256)

func (*HealthShareCaller) GetPatientPrimaryData

func (_HealthShare *HealthShareCaller) GetPatientPrimaryData(opts *bind.CallOpts, _id *big.Int) (*big.Int, bool, string, string, string, string, error)

GetPatientPrimaryData is a free data retrieval call binding the contract method 0x18a95735.

Solidity: function getPatientPrimaryData(uint256 _id) constant returns(uint256, bool, string, string, string, string)

func (*HealthShareCaller) GetTreatment

func (_HealthShare *HealthShareCaller) GetTreatment(opts *bind.CallOpts, _id *big.Int) (string, string, string, error)

GetTreatment is a free data retrieval call binding the contract method 0xf26c5f5f.

Solidity: function getTreatment(uint256 _id) constant returns(string, string, string)

func (*HealthShareCaller) Owner

func (_HealthShare *HealthShareCaller) Owner(opts *bind.CallOpts) (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() constant returns(address)

type HealthShareCallerRaw

type HealthShareCallerRaw struct {
	Contract *HealthShareCaller // Generic read-only contract binding to access the raw methods on
}

HealthShareCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.

func (*HealthShareCallerRaw) Call

func (_HealthShare *HealthShareCallerRaw) 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 HealthShareCallerSession

type HealthShareCallerSession struct {
	Contract *HealthShareCaller // Generic contract caller binding to set the session for
	CallOpts bind.CallOpts      // Call options to use throughout this session
}

HealthShareCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.

func (*HealthShareCallerSession) GetPatientDetailedData

func (_HealthShare *HealthShareCallerSession) GetPatientDetailedData(_id *big.Int) (*big.Int, *big.Int, *big.Int, *big.Int, error)

GetPatientDetailedData is a free data retrieval call binding the contract method 0xbc0f600b.

Solidity: function getPatientDetailedData(uint256 _id) constant returns(uint256, uint256, uint256, uint256)

func (*HealthShareCallerSession) GetPatientPrimaryData

func (_HealthShare *HealthShareCallerSession) GetPatientPrimaryData(_id *big.Int) (*big.Int, bool, string, string, string, string, error)

GetPatientPrimaryData is a free data retrieval call binding the contract method 0x18a95735.

Solidity: function getPatientPrimaryData(uint256 _id) constant returns(uint256, bool, string, string, string, string)

func (*HealthShareCallerSession) GetTreatment

func (_HealthShare *HealthShareCallerSession) GetTreatment(_id *big.Int) (string, string, string, error)

GetTreatment is a free data retrieval call binding the contract method 0xf26c5f5f.

Solidity: function getTreatment(uint256 _id) constant returns(string, string, string)

func (*HealthShareCallerSession) Owner

func (_HealthShare *HealthShareCallerSession) Owner() (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() constant returns(address)

type HealthShareFilterer

type HealthShareFilterer struct {
	// contains filtered or unexported fields
}

HealthShareFilterer is an auto generated log filtering Go binding around an Ethereum contract events.

func NewHealthShareFilterer

func NewHealthShareFilterer(address common.Address, filterer bind.ContractFilterer) (*HealthShareFilterer, error)

NewHealthShareFilterer creates a new log filterer instance of HealthShare, bound to a specific deployed contract.

func (*HealthShareFilterer) FilterOwnershipTransferred

func (_HealthShare *HealthShareFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*HealthShareOwnershipTransferredIterator, error)

FilterOwnershipTransferred is a free log retrieval operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

func (*HealthShareFilterer) ParseOwnershipTransferred

func (_HealthShare *HealthShareFilterer) ParseOwnershipTransferred(log types.Log) (*HealthShareOwnershipTransferred, error)

ParseOwnershipTransferred is a log parse operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

func (*HealthShareFilterer) WatchOwnershipTransferred

func (_HealthShare *HealthShareFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *HealthShareOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error)

WatchOwnershipTransferred is a free log subscription operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

type HealthShareOwnershipTransferred

type HealthShareOwnershipTransferred struct {
	PreviousOwner common.Address
	NewOwner      common.Address
	Raw           types.Log // Blockchain specific contextual infos
}

HealthShareOwnershipTransferred represents a OwnershipTransferred event raised by the HealthShare contract.

type HealthShareOwnershipTransferredIterator

type HealthShareOwnershipTransferredIterator struct {
	Event *HealthShareOwnershipTransferred // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

HealthShareOwnershipTransferredIterator is returned from FilterOwnershipTransferred and is used to iterate over the raw logs and unpacked data for OwnershipTransferred events raised by the HealthShare contract.

func (*HealthShareOwnershipTransferredIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*HealthShareOwnershipTransferredIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*HealthShareOwnershipTransferredIterator) Next

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 HealthShareRaw

type HealthShareRaw struct {
	Contract *HealthShare // Generic contract binding to access the raw methods on
}

HealthShareRaw is an auto generated low-level Go binding around an Ethereum contract.

func (*HealthShareRaw) Call

func (_HealthShare *HealthShareRaw) 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 (*HealthShareRaw) Transact

func (_HealthShare *HealthShareRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*HealthShareRaw) Transfer

func (_HealthShare *HealthShareRaw) 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 HealthShareSession

type HealthShareSession struct {
	Contract     *HealthShare      // 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
}

HealthShareSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.

func (*HealthShareSession) GetPatientDetailedData

func (_HealthShare *HealthShareSession) GetPatientDetailedData(_id *big.Int) (*big.Int, *big.Int, *big.Int, *big.Int, error)

GetPatientDetailedData is a free data retrieval call binding the contract method 0xbc0f600b.

Solidity: function getPatientDetailedData(uint256 _id) constant returns(uint256, uint256, uint256, uint256)

func (*HealthShareSession) GetPatientPrimaryData

func (_HealthShare *HealthShareSession) GetPatientPrimaryData(_id *big.Int) (*big.Int, bool, string, string, string, string, error)

GetPatientPrimaryData is a free data retrieval call binding the contract method 0x18a95735.

Solidity: function getPatientPrimaryData(uint256 _id) constant returns(uint256, bool, string, string, string, string)

func (*HealthShareSession) GetTreatment

func (_HealthShare *HealthShareSession) GetTreatment(_id *big.Int) (string, string, string, error)

GetTreatment is a free data retrieval call binding the contract method 0xf26c5f5f.

Solidity: function getTreatment(uint256 _id) constant returns(string, string, string)

func (*HealthShareSession) NewPatient

func (_HealthShare *HealthShareSession) NewPatient(_id *big.Int, treatmentId *big.Int, birthYear *big.Int, sexe bool, postCode string, country string, refPhysician string, medicalHistory string, screeningDate *big.Int) (*types.Transaction, error)

NewPatient is a paid mutator transaction binding the contract method 0xf6805f3d.

Solidity: function newPatient(uint256 _id, uint256 treatmentId, uint256 birthYear, bool sexe, string postCode, string country, string refPhysician, string medicalHistory, uint256 screeningDate) returns()

func (*HealthShareSession) NewTreatment

func (_HealthShare *HealthShareSession) NewTreatment(_id *big.Int, _activeAgent string, _descrition string, _steps string) (*types.Transaction, error)

NewTreatment is a paid mutator transaction binding the contract method 0x03e8cdf5.

Solidity: function newTreatment(uint256 _id, string _activeAgent, string _descrition, string _steps) returns()

func (*HealthShareSession) Owner

func (_HealthShare *HealthShareSession) Owner() (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() constant returns(address)

func (*HealthShareSession) PatientDeath

func (_HealthShare *HealthShareSession) PatientDeath(_id *big.Int, deathDate *big.Int) (*types.Transaction, error)

PatientDeath is a paid mutator transaction binding the contract method 0x2c4bef34.

Solidity: function patientDeath(uint256 _id, uint256 deathDate) returns()

func (*HealthShareSession) PatientRemision

func (_HealthShare *HealthShareSession) PatientRemision(_id *big.Int, remissionDate *big.Int) (*types.Transaction, error)

PatientRemision is a paid mutator transaction binding the contract method 0xd5b4724c.

Solidity: function patientRemision(uint256 _id, uint256 remissionDate) returns()

func (*HealthShareSession) PatientScreening

func (_HealthShare *HealthShareSession) PatientScreening(_id *big.Int, screeningDate *big.Int) (*types.Transaction, error)

PatientScreening is a paid mutator transaction binding the contract method 0x1c5dff0f.

Solidity: function patientScreening(uint256 _id, uint256 screeningDate) returns()

func (*HealthShareSession) TransferOwnership

func (_HealthShare *HealthShareSession) 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 HealthShareTransactor

type HealthShareTransactor struct {
	// contains filtered or unexported fields
}

HealthShareTransactor is an auto generated write-only Go binding around an Ethereum contract.

func NewHealthShareTransactor

func NewHealthShareTransactor(address common.Address, transactor bind.ContractTransactor) (*HealthShareTransactor, error)

NewHealthShareTransactor creates a new write-only instance of HealthShare, bound to a specific deployed contract.

func (*HealthShareTransactor) NewPatient

func (_HealthShare *HealthShareTransactor) NewPatient(opts *bind.TransactOpts, _id *big.Int, treatmentId *big.Int, birthYear *big.Int, sexe bool, postCode string, country string, refPhysician string, medicalHistory string, screeningDate *big.Int) (*types.Transaction, error)

NewPatient is a paid mutator transaction binding the contract method 0xf6805f3d.

Solidity: function newPatient(uint256 _id, uint256 treatmentId, uint256 birthYear, bool sexe, string postCode, string country, string refPhysician, string medicalHistory, uint256 screeningDate) returns()

func (*HealthShareTransactor) NewTreatment

func (_HealthShare *HealthShareTransactor) NewTreatment(opts *bind.TransactOpts, _id *big.Int, _activeAgent string, _descrition string, _steps string) (*types.Transaction, error)

NewTreatment is a paid mutator transaction binding the contract method 0x03e8cdf5.

Solidity: function newTreatment(uint256 _id, string _activeAgent, string _descrition, string _steps) returns()

func (*HealthShareTransactor) PatientDeath

func (_HealthShare *HealthShareTransactor) PatientDeath(opts *bind.TransactOpts, _id *big.Int, deathDate *big.Int) (*types.Transaction, error)

PatientDeath is a paid mutator transaction binding the contract method 0x2c4bef34.

Solidity: function patientDeath(uint256 _id, uint256 deathDate) returns()

func (*HealthShareTransactor) PatientRemision

func (_HealthShare *HealthShareTransactor) PatientRemision(opts *bind.TransactOpts, _id *big.Int, remissionDate *big.Int) (*types.Transaction, error)

PatientRemision is a paid mutator transaction binding the contract method 0xd5b4724c.

Solidity: function patientRemision(uint256 _id, uint256 remissionDate) returns()

func (*HealthShareTransactor) PatientScreening

func (_HealthShare *HealthShareTransactor) PatientScreening(opts *bind.TransactOpts, _id *big.Int, screeningDate *big.Int) (*types.Transaction, error)

PatientScreening is a paid mutator transaction binding the contract method 0x1c5dff0f.

Solidity: function patientScreening(uint256 _id, uint256 screeningDate) returns()

func (*HealthShareTransactor) TransferOwnership

func (_HealthShare *HealthShareTransactor) 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 HealthShareTransactorRaw

type HealthShareTransactorRaw struct {
	Contract *HealthShareTransactor // Generic write-only contract binding to access the raw methods on
}

HealthShareTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.

func (*HealthShareTransactorRaw) Transact

func (_HealthShare *HealthShareTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*HealthShareTransactorRaw) Transfer

func (_HealthShare *HealthShareTransactorRaw) 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 HealthShareTransactorSession

type HealthShareTransactorSession struct {
	Contract     *HealthShareTransactor // Generic contract transactor binding to set the session for
	TransactOpts bind.TransactOpts      // Transaction auth options to use throughout this session
}

HealthShareTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.

func (*HealthShareTransactorSession) NewPatient

func (_HealthShare *HealthShareTransactorSession) NewPatient(_id *big.Int, treatmentId *big.Int, birthYear *big.Int, sexe bool, postCode string, country string, refPhysician string, medicalHistory string, screeningDate *big.Int) (*types.Transaction, error)

NewPatient is a paid mutator transaction binding the contract method 0xf6805f3d.

Solidity: function newPatient(uint256 _id, uint256 treatmentId, uint256 birthYear, bool sexe, string postCode, string country, string refPhysician, string medicalHistory, uint256 screeningDate) returns()

func (*HealthShareTransactorSession) NewTreatment

func (_HealthShare *HealthShareTransactorSession) NewTreatment(_id *big.Int, _activeAgent string, _descrition string, _steps string) (*types.Transaction, error)

NewTreatment is a paid mutator transaction binding the contract method 0x03e8cdf5.

Solidity: function newTreatment(uint256 _id, string _activeAgent, string _descrition, string _steps) returns()

func (*HealthShareTransactorSession) PatientDeath

func (_HealthShare *HealthShareTransactorSession) PatientDeath(_id *big.Int, deathDate *big.Int) (*types.Transaction, error)

PatientDeath is a paid mutator transaction binding the contract method 0x2c4bef34.

Solidity: function patientDeath(uint256 _id, uint256 deathDate) returns()

func (*HealthShareTransactorSession) PatientRemision

func (_HealthShare *HealthShareTransactorSession) PatientRemision(_id *big.Int, remissionDate *big.Int) (*types.Transaction, error)

PatientRemision is a paid mutator transaction binding the contract method 0xd5b4724c.

Solidity: function patientRemision(uint256 _id, uint256 remissionDate) returns()

func (*HealthShareTransactorSession) PatientScreening

func (_HealthShare *HealthShareTransactorSession) PatientScreening(_id *big.Int, screeningDate *big.Int) (*types.Transaction, error)

PatientScreening is a paid mutator transaction binding the contract method 0x1c5dff0f.

Solidity: function patientScreening(uint256 _id, uint256 screeningDate) returns()

func (*HealthShareTransactorSession) TransferOwnership

func (_HealthShare *HealthShareTransactorSession) TransferOwnership(_newOwner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(address _newOwner) returns()

Jump to

Keyboard shortcuts

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