registry

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2018 License: MPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const RegistryABI = "" /* 1223-byte string literal not displayed */

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

View Source
const RegistryBin = `` /* 2760-byte string literal not displayed */

RegistryBin is the compiled bytecode used for deploying new contracts.

Variables

This section is empty.

Functions

This section is empty.

Types

type Registry

type Registry struct {
	RegistryCaller     // Read-only binding to the contract
	RegistryTransactor // Write-only binding to the contract
	RegistryFilterer   // Log filterer for contract events
}

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

func DeployRegistry

func DeployRegistry(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *Registry, error)

DeployRegistry deploys a new Ethereum contract, binding an instance of Registry to it.

func NewRegistry

func NewRegistry(address common.Address, backend bind.ContractBackend) (*Registry, error)

NewRegistry creates a new instance of Registry, bound to a specific deployed contract.

type RegistryCaller

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

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

func NewRegistryCaller

func NewRegistryCaller(address common.Address, caller bind.ContractCaller) (*RegistryCaller, error)

NewRegistryCaller creates a new read-only instance of Registry, bound to a specific deployed contract.

func (*RegistryCaller) Controller

func (_Registry *RegistryCaller) Controller(opts *bind.CallOpts) (common.Address, error)

Controller is a free data retrieval call binding the contract method 0xf77c4791.

Solidity: function controller() constant returns(address)

func (*RegistryCaller) Exists

func (_Registry *RegistryCaller) Exists(opts *bind.CallOpts, a []byte) (bool, error)

Exists is a free data retrieval call binding the contract method 0x79fc09a2.

Solidity: function exists(a bytes) constant returns(bool)

type RegistryCallerRaw

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

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

func (*RegistryCallerRaw) Call

func (_Registry *RegistryCallerRaw) 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 RegistryCallerSession

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

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

func (*RegistryCallerSession) Controller

func (_Registry *RegistryCallerSession) Controller() (common.Address, error)

Controller is a free data retrieval call binding the contract method 0xf77c4791.

Solidity: function controller() constant returns(address)

func (*RegistryCallerSession) Exists

func (_Registry *RegistryCallerSession) Exists(a []byte) (bool, error)

Exists is a free data retrieval call binding the contract method 0x79fc09a2.

Solidity: function exists(a bytes) constant returns(bool)

type RegistryFilterer

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

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

func NewRegistryFilterer

func NewRegistryFilterer(address common.Address, filterer bind.ContractFilterer) (*RegistryFilterer, error)

NewRegistryFilterer creates a new log filterer instance of Registry, bound to a specific deployed contract.

func (*RegistryFilterer) FilterMailServerAdded

func (_Registry *RegistryFilterer) FilterMailServerAdded(opts *bind.FilterOpts) (*RegistryMailServerAddedIterator, error)

FilterMailServerAdded is a free log retrieval operation binding the contract event 0xcb379cb5890ec9889055734e1561cdc353a342d46d8d650c8c3a8d66383c29cd.

Solidity: e MailServerAdded(a bytes)

func (*RegistryFilterer) FilterMailServerRemoved

func (_Registry *RegistryFilterer) FilterMailServerRemoved(opts *bind.FilterOpts) (*RegistryMailServerRemovedIterator, error)

FilterMailServerRemoved is a free log retrieval operation binding the contract event 0x44e7d85a87eeb950b8bdc144d44b0b474be610d1953607251a0130edc10a222b.

Solidity: e MailServerRemoved(a bytes)

func (*RegistryFilterer) WatchMailServerAdded

func (_Registry *RegistryFilterer) WatchMailServerAdded(opts *bind.WatchOpts, sink chan<- *RegistryMailServerAdded) (event.Subscription, error)

WatchMailServerAdded is a free log subscription operation binding the contract event 0xcb379cb5890ec9889055734e1561cdc353a342d46d8d650c8c3a8d66383c29cd.

Solidity: e MailServerAdded(a bytes)

func (*RegistryFilterer) WatchMailServerRemoved

func (_Registry *RegistryFilterer) WatchMailServerRemoved(opts *bind.WatchOpts, sink chan<- *RegistryMailServerRemoved) (event.Subscription, error)

WatchMailServerRemoved is a free log subscription operation binding the contract event 0x44e7d85a87eeb950b8bdc144d44b0b474be610d1953607251a0130edc10a222b.

Solidity: e MailServerRemoved(a bytes)

type RegistryMailServerAdded

type RegistryMailServerAdded struct {
	A   []byte
	Raw types.Log // Blockchain specific contextual infos
}

RegistryMailServerAdded represents a MailServerAdded event raised by the Registry contract.

type RegistryMailServerAddedIterator

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

RegistryMailServerAddedIterator is returned from FilterMailServerAdded and is used to iterate over the raw logs and unpacked data for MailServerAdded events raised by the Registry contract.

func (*RegistryMailServerAddedIterator) Close

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

func (*RegistryMailServerAddedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*RegistryMailServerAddedIterator) 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 RegistryMailServerRemoved

type RegistryMailServerRemoved struct {
	A   []byte
	Raw types.Log // Blockchain specific contextual infos
}

RegistryMailServerRemoved represents a MailServerRemoved event raised by the Registry contract.

type RegistryMailServerRemovedIterator

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

RegistryMailServerRemovedIterator is returned from FilterMailServerRemoved and is used to iterate over the raw logs and unpacked data for MailServerRemoved events raised by the Registry contract.

func (*RegistryMailServerRemovedIterator) Close

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

func (*RegistryMailServerRemovedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*RegistryMailServerRemovedIterator) 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 RegistryRaw

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

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

func (*RegistryRaw) Call

func (_Registry *RegistryRaw) 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 (*RegistryRaw) Transact

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

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

func (*RegistryRaw) Transfer

func (_Registry *RegistryRaw) 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 RegistrySession

type RegistrySession struct {
	Contract     *Registry         // 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
}

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

func (*RegistrySession) Add

func (_Registry *RegistrySession) Add(a []byte) (*types.Transaction, error)

Add is a paid mutator transaction binding the contract method 0xba658111.

Solidity: function add(a bytes) returns()

func (*RegistrySession) ChangeController

func (_Registry *RegistrySession) ChangeController(_newController common.Address) (*types.Transaction, error)

ChangeController is a paid mutator transaction binding the contract method 0x3cebb823.

Solidity: function changeController(_newController address) returns()

func (*RegistrySession) Controller

func (_Registry *RegistrySession) Controller() (common.Address, error)

Controller is a free data retrieval call binding the contract method 0xf77c4791.

Solidity: function controller() constant returns(address)

func (*RegistrySession) Exists

func (_Registry *RegistrySession) Exists(a []byte) (bool, error)

Exists is a free data retrieval call binding the contract method 0x79fc09a2.

Solidity: function exists(a bytes) constant returns(bool)

func (*RegistrySession) Remove

func (_Registry *RegistrySession) Remove(a []byte) (*types.Transaction, error)

Remove is a paid mutator transaction binding the contract method 0x58edef4c.

Solidity: function remove(a bytes) returns()

type RegistryTransactor

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

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

func NewRegistryTransactor

func NewRegistryTransactor(address common.Address, transactor bind.ContractTransactor) (*RegistryTransactor, error)

NewRegistryTransactor creates a new write-only instance of Registry, bound to a specific deployed contract.

func (*RegistryTransactor) Add

func (_Registry *RegistryTransactor) Add(opts *bind.TransactOpts, a []byte) (*types.Transaction, error)

Add is a paid mutator transaction binding the contract method 0xba658111.

Solidity: function add(a bytes) returns()

func (*RegistryTransactor) ChangeController

func (_Registry *RegistryTransactor) ChangeController(opts *bind.TransactOpts, _newController common.Address) (*types.Transaction, error)

ChangeController is a paid mutator transaction binding the contract method 0x3cebb823.

Solidity: function changeController(_newController address) returns()

func (*RegistryTransactor) Remove

func (_Registry *RegistryTransactor) Remove(opts *bind.TransactOpts, a []byte) (*types.Transaction, error)

Remove is a paid mutator transaction binding the contract method 0x58edef4c.

Solidity: function remove(a bytes) returns()

type RegistryTransactorRaw

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

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

func (*RegistryTransactorRaw) Transact

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

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

func (*RegistryTransactorRaw) Transfer

func (_Registry *RegistryTransactorRaw) 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 RegistryTransactorSession

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

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

func (*RegistryTransactorSession) Add

func (_Registry *RegistryTransactorSession) Add(a []byte) (*types.Transaction, error)

Add is a paid mutator transaction binding the contract method 0xba658111.

Solidity: function add(a bytes) returns()

func (*RegistryTransactorSession) ChangeController

func (_Registry *RegistryTransactorSession) ChangeController(_newController common.Address) (*types.Transaction, error)

ChangeController is a paid mutator transaction binding the contract method 0x3cebb823.

Solidity: function changeController(_newController address) returns()

func (*RegistryTransactorSession) Remove

func (_Registry *RegistryTransactorSession) Remove(a []byte) (*types.Transaction, error)

Remove is a paid mutator transaction binding the contract method 0x58edef4c.

Solidity: function remove(a bytes) returns()

type Verifier

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

Verifier verifies nodes based on a smart contract.

func NewVerifier

func NewVerifier(contractCaller bind.ContractCaller, contractAddress common.Address) (*Verifier, error)

NewVerifier returns a new Verifier instance.

func (*Verifier) VerifyNode

func (v *Verifier) VerifyNode(ctx context.Context, nodeID discover.NodeID) bool

VerifyNode checks if a given node is trusted using a smart contract.

Jump to

Keyboard shortcuts

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