Documentation ¶
Index ¶
- Constants
- type RBACContract
- type RBACContractCaller
- func (_RBACContract *RBACContractCaller) IsAdmin(opts *bind.CallOpts, adminAddress common.Address) (bool, error)
- func (_RBACContract *RBACContractCaller) IsCantonEmployee(opts *bind.CallOpts, cantonEmployeeAddress common.Address) (bool, error)
- func (_RBACContract *RBACContractCaller) IsFarmer(opts *bind.CallOpts, farmerAddress common.Address) (bool, error)
- func (_RBACContract *RBACContractCaller) IsInspector(opts *bind.CallOpts, inspectorAddress common.Address) (bool, error)
- type RBACContractCallerRaw
- type RBACContractCallerSession
- func (_RBACContract *RBACContractCallerSession) IsAdmin(adminAddress common.Address) (bool, error)
- func (_RBACContract *RBACContractCallerSession) IsCantonEmployee(cantonEmployeeAddress common.Address) (bool, error)
- func (_RBACContract *RBACContractCallerSession) IsFarmer(farmerAddress common.Address) (bool, error)
- func (_RBACContract *RBACContractCallerSession) IsInspector(inspectorAddress common.Address) (bool, error)
- type RBACContractRaw
- func (_RBACContract *RBACContractRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error
- func (_RBACContract *RBACContractRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_RBACContract *RBACContractRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type RBACContractSession
- func (_RBACContract *RBACContractSession) AddAdmin(adminAddress common.Address) (*types.Transaction, error)
- func (_RBACContract *RBACContractSession) AddCantonEmployee(cantonEmployeeAddress common.Address) (*types.Transaction, error)
- func (_RBACContract *RBACContractSession) AddFarmer(farmerAddress common.Address) (*types.Transaction, error)
- func (_RBACContract *RBACContractSession) AddInspector(inspectorAddress common.Address) (*types.Transaction, error)
- func (_RBACContract *RBACContractSession) IsAdmin(adminAddress common.Address) (bool, error)
- func (_RBACContract *RBACContractSession) IsCantonEmployee(cantonEmployeeAddress common.Address) (bool, error)
- func (_RBACContract *RBACContractSession) IsFarmer(farmerAddress common.Address) (bool, error)
- func (_RBACContract *RBACContractSession) IsInspector(inspectorAddress common.Address) (bool, error)
- func (_RBACContract *RBACContractSession) RemoveAdmin(adminAddress common.Address) (*types.Transaction, error)
- func (_RBACContract *RBACContractSession) RemoveFarmer(farmerAddress common.Address) (*types.Transaction, error)
- func (_RBACContract *RBACContractSession) RemoveInspector(inspectorAddress common.Address) (*types.Transaction, error)
- func (_RBACContract *RBACContractSession) RemovecantonEmployee(cantonEmployeeAddress common.Address) (*types.Transaction, error)
- type RBACContractTransactor
- func (_RBACContract *RBACContractTransactor) AddAdmin(opts *bind.TransactOpts, adminAddress common.Address) (*types.Transaction, error)
- func (_RBACContract *RBACContractTransactor) AddCantonEmployee(opts *bind.TransactOpts, cantonEmployeeAddress common.Address) (*types.Transaction, error)
- func (_RBACContract *RBACContractTransactor) AddFarmer(opts *bind.TransactOpts, farmerAddress common.Address) (*types.Transaction, error)
- func (_RBACContract *RBACContractTransactor) AddInspector(opts *bind.TransactOpts, inspectorAddress common.Address) (*types.Transaction, error)
- func (_RBACContract *RBACContractTransactor) RemoveAdmin(opts *bind.TransactOpts, adminAddress common.Address) (*types.Transaction, error)
- func (_RBACContract *RBACContractTransactor) RemoveFarmer(opts *bind.TransactOpts, farmerAddress common.Address) (*types.Transaction, error)
- func (_RBACContract *RBACContractTransactor) RemoveInspector(opts *bind.TransactOpts, inspectorAddress common.Address) (*types.Transaction, error)
- func (_RBACContract *RBACContractTransactor) RemovecantonEmployee(opts *bind.TransactOpts, cantonEmployeeAddress common.Address) (*types.Transaction, error)
- type RBACContractTransactorRaw
- type RBACContractTransactorSession
- func (_RBACContract *RBACContractTransactorSession) AddAdmin(adminAddress common.Address) (*types.Transaction, error)
- func (_RBACContract *RBACContractTransactorSession) AddCantonEmployee(cantonEmployeeAddress common.Address) (*types.Transaction, error)
- func (_RBACContract *RBACContractTransactorSession) AddFarmer(farmerAddress common.Address) (*types.Transaction, error)
- func (_RBACContract *RBACContractTransactorSession) AddInspector(inspectorAddress common.Address) (*types.Transaction, error)
- func (_RBACContract *RBACContractTransactorSession) RemoveAdmin(adminAddress common.Address) (*types.Transaction, error)
- func (_RBACContract *RBACContractTransactorSession) RemoveFarmer(farmerAddress common.Address) (*types.Transaction, error)
- func (_RBACContract *RBACContractTransactorSession) RemoveInspector(inspectorAddress common.Address) (*types.Transaction, error)
- func (_RBACContract *RBACContractTransactorSession) RemovecantonEmployee(cantonEmployeeAddress common.Address) (*types.Transaction, error)
Constants ¶
const RBACContractABI = "" /* 2200-byte string literal not displayed */
RBACContractABI is the input ABI used to generate the binding from.
const RBACContractBin = `` /* 5722-byte string literal not displayed */
RBACContractBin is the compiled bytecode used for deploying new contracts.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RBACContract ¶
type RBACContract struct { RBACContractCaller // Read-only binding to the contract RBACContractTransactor // Write-only binding to the contract }
RBACContract is an auto generated Go binding around an Ethereum contract.
func DeployRBACContract ¶
func DeployRBACContract(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *RBACContract, error)
DeployRBACContract deploys a new Ethereum contract, binding an instance of RBACContract to it.
func NewRBACContract ¶
func NewRBACContract(address common.Address, backend bind.ContractBackend) (*RBACContract, error)
NewRBACContract creates a new instance of RBACContract, bound to a specific deployed contract.
type RBACContractCaller ¶
type RBACContractCaller struct {
// contains filtered or unexported fields
}
RBACContractCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewRBACContractCaller ¶
func NewRBACContractCaller(address common.Address, caller bind.ContractCaller) (*RBACContractCaller, error)
NewRBACContractCaller creates a new read-only instance of RBACContract, bound to a specific deployed contract.
func (*RBACContractCaller) IsAdmin ¶
func (_RBACContract *RBACContractCaller) IsAdmin(opts *bind.CallOpts, adminAddress common.Address) (bool, error)
IsAdmin is a free data retrieval call binding the contract method 0x24d7806c.
Solidity: function isAdmin(adminAddress address) constant returns(bool)
func (*RBACContractCaller) IsCantonEmployee ¶
func (_RBACContract *RBACContractCaller) IsCantonEmployee(opts *bind.CallOpts, cantonEmployeeAddress common.Address) (bool, error)
IsCantonEmployee is a free data retrieval call binding the contract method 0x6bb164c9.
Solidity: function isCantonEmployee(cantonEmployeeAddress address) constant returns(bool)
func (*RBACContractCaller) IsFarmer ¶
func (_RBACContract *RBACContractCaller) IsFarmer(opts *bind.CallOpts, farmerAddress common.Address) (bool, error)
IsFarmer is a free data retrieval call binding the contract method 0xb9429069.
Solidity: function isFarmer(farmerAddress address) constant returns(bool)
func (*RBACContractCaller) IsInspector ¶
func (_RBACContract *RBACContractCaller) IsInspector(opts *bind.CallOpts, inspectorAddress common.Address) (bool, error)
IsInspector is a free data retrieval call binding the contract method 0x2cdad41c.
Solidity: function isInspector(inspectorAddress address) constant returns(bool)
type RBACContractCallerRaw ¶
type RBACContractCallerRaw struct {
Contract *RBACContractCaller // Generic read-only contract binding to access the raw methods on
}
RBACContractCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*RBACContractCallerRaw) Call ¶
func (_RBACContract *RBACContractCallerRaw) 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 RBACContractCallerSession ¶
type RBACContractCallerSession struct { Contract *RBACContractCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
RBACContractCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*RBACContractCallerSession) IsAdmin ¶
func (_RBACContract *RBACContractCallerSession) IsAdmin(adminAddress common.Address) (bool, error)
IsAdmin is a free data retrieval call binding the contract method 0x24d7806c.
Solidity: function isAdmin(adminAddress address) constant returns(bool)
func (*RBACContractCallerSession) IsCantonEmployee ¶
func (_RBACContract *RBACContractCallerSession) IsCantonEmployee(cantonEmployeeAddress common.Address) (bool, error)
IsCantonEmployee is a free data retrieval call binding the contract method 0x6bb164c9.
Solidity: function isCantonEmployee(cantonEmployeeAddress address) constant returns(bool)
func (*RBACContractCallerSession) IsFarmer ¶
func (_RBACContract *RBACContractCallerSession) IsFarmer(farmerAddress common.Address) (bool, error)
IsFarmer is a free data retrieval call binding the contract method 0xb9429069.
Solidity: function isFarmer(farmerAddress address) constant returns(bool)
func (*RBACContractCallerSession) IsInspector ¶
func (_RBACContract *RBACContractCallerSession) IsInspector(inspectorAddress common.Address) (bool, error)
IsInspector is a free data retrieval call binding the contract method 0x2cdad41c.
Solidity: function isInspector(inspectorAddress address) constant returns(bool)
type RBACContractRaw ¶
type RBACContractRaw struct {
Contract *RBACContract // Generic contract binding to access the raw methods on
}
RBACContractRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*RBACContractRaw) Call ¶
func (_RBACContract *RBACContractRaw) 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 (*RBACContractRaw) Transact ¶
func (_RBACContract *RBACContractRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*RBACContractRaw) Transfer ¶
func (_RBACContract *RBACContractRaw) 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 RBACContractSession ¶
type RBACContractSession struct { Contract *RBACContract // 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 }
RBACContractSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*RBACContractSession) AddAdmin ¶
func (_RBACContract *RBACContractSession) AddAdmin(adminAddress common.Address) (*types.Transaction, error)
AddAdmin is a paid mutator transaction binding the contract method 0x70480275.
Solidity: function addAdmin(adminAddress address) returns()
func (*RBACContractSession) AddCantonEmployee ¶
func (_RBACContract *RBACContractSession) AddCantonEmployee(cantonEmployeeAddress common.Address) (*types.Transaction, error)
AddCantonEmployee is a paid mutator transaction binding the contract method 0xeaec3fc8.
Solidity: function addCantonEmployee(cantonEmployeeAddress address) returns()
func (*RBACContractSession) AddFarmer ¶
func (_RBACContract *RBACContractSession) AddFarmer(farmerAddress common.Address) (*types.Transaction, error)
AddFarmer is a paid mutator transaction binding the contract method 0x80c3f96d.
Solidity: function addFarmer(farmerAddress address) returns()
func (*RBACContractSession) AddInspector ¶
func (_RBACContract *RBACContractSession) AddInspector(inspectorAddress common.Address) (*types.Transaction, error)
AddInspector is a paid mutator transaction binding the contract method 0x7e458492.
Solidity: function addInspector(inspectorAddress address) returns()
func (*RBACContractSession) IsAdmin ¶
func (_RBACContract *RBACContractSession) IsAdmin(adminAddress common.Address) (bool, error)
IsAdmin is a free data retrieval call binding the contract method 0x24d7806c.
Solidity: function isAdmin(adminAddress address) constant returns(bool)
func (*RBACContractSession) IsCantonEmployee ¶
func (_RBACContract *RBACContractSession) IsCantonEmployee(cantonEmployeeAddress common.Address) (bool, error)
IsCantonEmployee is a free data retrieval call binding the contract method 0x6bb164c9.
Solidity: function isCantonEmployee(cantonEmployeeAddress address) constant returns(bool)
func (*RBACContractSession) IsFarmer ¶
func (_RBACContract *RBACContractSession) IsFarmer(farmerAddress common.Address) (bool, error)
IsFarmer is a free data retrieval call binding the contract method 0xb9429069.
Solidity: function isFarmer(farmerAddress address) constant returns(bool)
func (*RBACContractSession) IsInspector ¶
func (_RBACContract *RBACContractSession) IsInspector(inspectorAddress common.Address) (bool, error)
IsInspector is a free data retrieval call binding the contract method 0x2cdad41c.
Solidity: function isInspector(inspectorAddress address) constant returns(bool)
func (*RBACContractSession) RemoveAdmin ¶
func (_RBACContract *RBACContractSession) RemoveAdmin(adminAddress common.Address) (*types.Transaction, error)
RemoveAdmin is a paid mutator transaction binding the contract method 0x1785f53c.
Solidity: function removeAdmin(adminAddress address) returns()
func (*RBACContractSession) RemoveFarmer ¶
func (_RBACContract *RBACContractSession) RemoveFarmer(farmerAddress common.Address) (*types.Transaction, error)
RemoveFarmer is a paid mutator transaction binding the contract method 0xe6bf3fdc.
Solidity: function removeFarmer(farmerAddress address) returns()
func (*RBACContractSession) RemoveInspector ¶
func (_RBACContract *RBACContractSession) RemoveInspector(inspectorAddress common.Address) (*types.Transaction, error)
RemoveInspector is a paid mutator transaction binding the contract method 0x7c70e791.
Solidity: function removeInspector(inspectorAddress address) returns()
func (*RBACContractSession) RemovecantonEmployee ¶
func (_RBACContract *RBACContractSession) RemovecantonEmployee(cantonEmployeeAddress common.Address) (*types.Transaction, error)
RemovecantonEmployee is a paid mutator transaction binding the contract method 0xf6bf0edd.
Solidity: function removecantonEmployee(cantonEmployeeAddress address) returns()
type RBACContractTransactor ¶
type RBACContractTransactor struct {
// contains filtered or unexported fields
}
RBACContractTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewRBACContractTransactor ¶
func NewRBACContractTransactor(address common.Address, transactor bind.ContractTransactor) (*RBACContractTransactor, error)
NewRBACContractTransactor creates a new write-only instance of RBACContract, bound to a specific deployed contract.
func (*RBACContractTransactor) AddAdmin ¶
func (_RBACContract *RBACContractTransactor) AddAdmin(opts *bind.TransactOpts, adminAddress common.Address) (*types.Transaction, error)
AddAdmin is a paid mutator transaction binding the contract method 0x70480275.
Solidity: function addAdmin(adminAddress address) returns()
func (*RBACContractTransactor) AddCantonEmployee ¶
func (_RBACContract *RBACContractTransactor) AddCantonEmployee(opts *bind.TransactOpts, cantonEmployeeAddress common.Address) (*types.Transaction, error)
AddCantonEmployee is a paid mutator transaction binding the contract method 0xeaec3fc8.
Solidity: function addCantonEmployee(cantonEmployeeAddress address) returns()
func (*RBACContractTransactor) AddFarmer ¶
func (_RBACContract *RBACContractTransactor) AddFarmer(opts *bind.TransactOpts, farmerAddress common.Address) (*types.Transaction, error)
AddFarmer is a paid mutator transaction binding the contract method 0x80c3f96d.
Solidity: function addFarmer(farmerAddress address) returns()
func (*RBACContractTransactor) AddInspector ¶
func (_RBACContract *RBACContractTransactor) AddInspector(opts *bind.TransactOpts, inspectorAddress common.Address) (*types.Transaction, error)
AddInspector is a paid mutator transaction binding the contract method 0x7e458492.
Solidity: function addInspector(inspectorAddress address) returns()
func (*RBACContractTransactor) RemoveAdmin ¶
func (_RBACContract *RBACContractTransactor) RemoveAdmin(opts *bind.TransactOpts, adminAddress common.Address) (*types.Transaction, error)
RemoveAdmin is a paid mutator transaction binding the contract method 0x1785f53c.
Solidity: function removeAdmin(adminAddress address) returns()
func (*RBACContractTransactor) RemoveFarmer ¶
func (_RBACContract *RBACContractTransactor) RemoveFarmer(opts *bind.TransactOpts, farmerAddress common.Address) (*types.Transaction, error)
RemoveFarmer is a paid mutator transaction binding the contract method 0xe6bf3fdc.
Solidity: function removeFarmer(farmerAddress address) returns()
func (*RBACContractTransactor) RemoveInspector ¶
func (_RBACContract *RBACContractTransactor) RemoveInspector(opts *bind.TransactOpts, inspectorAddress common.Address) (*types.Transaction, error)
RemoveInspector is a paid mutator transaction binding the contract method 0x7c70e791.
Solidity: function removeInspector(inspectorAddress address) returns()
func (*RBACContractTransactor) RemovecantonEmployee ¶
func (_RBACContract *RBACContractTransactor) RemovecantonEmployee(opts *bind.TransactOpts, cantonEmployeeAddress common.Address) (*types.Transaction, error)
RemovecantonEmployee is a paid mutator transaction binding the contract method 0xf6bf0edd.
Solidity: function removecantonEmployee(cantonEmployeeAddress address) returns()
type RBACContractTransactorRaw ¶
type RBACContractTransactorRaw struct {
Contract *RBACContractTransactor // Generic write-only contract binding to access the raw methods on
}
RBACContractTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*RBACContractTransactorRaw) Transact ¶
func (_RBACContract *RBACContractTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*RBACContractTransactorRaw) Transfer ¶
func (_RBACContract *RBACContractTransactorRaw) 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 RBACContractTransactorSession ¶
type RBACContractTransactorSession struct { Contract *RBACContractTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
RBACContractTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*RBACContractTransactorSession) AddAdmin ¶
func (_RBACContract *RBACContractTransactorSession) AddAdmin(adminAddress common.Address) (*types.Transaction, error)
AddAdmin is a paid mutator transaction binding the contract method 0x70480275.
Solidity: function addAdmin(adminAddress address) returns()
func (*RBACContractTransactorSession) AddCantonEmployee ¶
func (_RBACContract *RBACContractTransactorSession) AddCantonEmployee(cantonEmployeeAddress common.Address) (*types.Transaction, error)
AddCantonEmployee is a paid mutator transaction binding the contract method 0xeaec3fc8.
Solidity: function addCantonEmployee(cantonEmployeeAddress address) returns()
func (*RBACContractTransactorSession) AddFarmer ¶
func (_RBACContract *RBACContractTransactorSession) AddFarmer(farmerAddress common.Address) (*types.Transaction, error)
AddFarmer is a paid mutator transaction binding the contract method 0x80c3f96d.
Solidity: function addFarmer(farmerAddress address) returns()
func (*RBACContractTransactorSession) AddInspector ¶
func (_RBACContract *RBACContractTransactorSession) AddInspector(inspectorAddress common.Address) (*types.Transaction, error)
AddInspector is a paid mutator transaction binding the contract method 0x7e458492.
Solidity: function addInspector(inspectorAddress address) returns()
func (*RBACContractTransactorSession) RemoveAdmin ¶
func (_RBACContract *RBACContractTransactorSession) RemoveAdmin(adminAddress common.Address) (*types.Transaction, error)
RemoveAdmin is a paid mutator transaction binding the contract method 0x1785f53c.
Solidity: function removeAdmin(adminAddress address) returns()
func (*RBACContractTransactorSession) RemoveFarmer ¶
func (_RBACContract *RBACContractTransactorSession) RemoveFarmer(farmerAddress common.Address) (*types.Transaction, error)
RemoveFarmer is a paid mutator transaction binding the contract method 0xe6bf3fdc.
Solidity: function removeFarmer(farmerAddress address) returns()
func (*RBACContractTransactorSession) RemoveInspector ¶
func (_RBACContract *RBACContractTransactorSession) RemoveInspector(inspectorAddress common.Address) (*types.Transaction, error)
RemoveInspector is a paid mutator transaction binding the contract method 0x7c70e791.
Solidity: function removeInspector(inspectorAddress address) returns()
func (*RBACContractTransactorSession) RemovecantonEmployee ¶
func (_RBACContract *RBACContractTransactorSession) RemovecantonEmployee(cantonEmployeeAddress common.Address) (*types.Transaction, error)
RemovecantonEmployee is a paid mutator transaction binding the contract method 0xf6bf0edd.
Solidity: function removecantonEmployee(cantonEmployeeAddress address) returns()