network

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2019 License: GPL-3.0 Imports: 8 Imported by: 6

Documentation

Index

Constants

View Source
const NetworkABI = "" /* 2378-byte string literal not displayed */

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

View Source
const NetworkBin = `` /* 4374-byte string literal not displayed */

NetworkBin is the compiled bytecode used for deploying new contracts.

Variables

This section is empty.

Functions

This section is empty.

Types

type Network

type Network struct {
	NetworkCaller     // Read-only binding to the contract
	NetworkTransactor // Write-only binding to the contract
	NetworkFilterer   // Log filterer for contract events
}

Network is an auto generated Go binding around an cpchain contract.

func DeployNetwork

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

DeployNetwork deploys a new cpchain contract, binding an instance of Network to it.

func NewNetwork

func NewNetwork(address common.Address, backend bind.ContractBackend) (*Network, error)

NewNetwork creates a new instance of Network, bound to a specific deployed contract.

type NetworkCaller

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

NetworkCaller is an auto generated read-only Go binding around an cpchain contract.

func NewNetworkCaller

func NewNetworkCaller(address common.Address, caller bind.ContractCaller) (*NetworkCaller, error)

NewNetworkCaller creates a new read-only instance of Network, bound to a specific deployed contract.

func (*NetworkCaller) Count

func (_Network *NetworkCaller) Count(opts *bind.CallOpts) (*big.Int, error)

Count is a free data retrieval call binding the contract method 0x06661abd.

Solidity: function count() constant returns(uint256)

func (*NetworkCaller) Gap

func (_Network *NetworkCaller) Gap(opts *bind.CallOpts) (*big.Int, error)

Gap is a free data retrieval call binding the contract method 0x6c32c0a6.

Solidity: function gap() constant returns(uint256)

func (*NetworkCaller) Host

func (_Network *NetworkCaller) Host(opts *bind.CallOpts) (string, error)

Host is a free data retrieval call binding the contract method 0xf437bc59.

Solidity: function host() constant returns(string)

func (*NetworkCaller) Open

func (_Network *NetworkCaller) Open(opts *bind.CallOpts) (bool, error)

Open is a free data retrieval call binding the contract method 0xfcfff16f.

Solidity: function open() constant returns(bool)

func (*NetworkCaller) Timeout

func (_Network *NetworkCaller) Timeout(opts *bind.CallOpts) (*big.Int, error)

Timeout is a free data retrieval call binding the contract method 0x70dea79a.

Solidity: function timeout() constant returns(uint256)

type NetworkCallerRaw

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

NetworkCallerRaw is an auto generated low-level read-only Go binding around an cpchain contract.

func (*NetworkCallerRaw) Call

func (_Network *NetworkCallerRaw) 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 NetworkCallerSession

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

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

func (*NetworkCallerSession) Count

func (_Network *NetworkCallerSession) Count() (*big.Int, error)

Count is a free data retrieval call binding the contract method 0x06661abd.

Solidity: function count() constant returns(uint256)

func (*NetworkCallerSession) Gap

func (_Network *NetworkCallerSession) Gap() (*big.Int, error)

Gap is a free data retrieval call binding the contract method 0x6c32c0a6.

Solidity: function gap() constant returns(uint256)

func (*NetworkCallerSession) Host

func (_Network *NetworkCallerSession) Host() (string, error)

Host is a free data retrieval call binding the contract method 0xf437bc59.

Solidity: function host() constant returns(string)

func (*NetworkCallerSession) Open

func (_Network *NetworkCallerSession) Open() (bool, error)

Open is a free data retrieval call binding the contract method 0xfcfff16f.

Solidity: function open() constant returns(bool)

func (*NetworkCallerSession) Timeout

func (_Network *NetworkCallerSession) Timeout() (*big.Int, error)

Timeout is a free data retrieval call binding the contract method 0x70dea79a.

Solidity: function timeout() constant returns(uint256)

type NetworkFilterer

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

NetworkFilterer is an auto generated log filtering Go binding around an cpchain contract events.

func NewNetworkFilterer

func NewNetworkFilterer(address common.Address, filterer bind.ContractFilterer) (*NetworkFilterer, error)

NewNetworkFilterer creates a new log filterer instance of Network, bound to a specific deployed contract.

func (*NetworkFilterer) FilterUpdateConfig

func (_Network *NetworkFilterer) FilterUpdateConfig(opts *bind.FilterOpts) (*NetworkUpdateConfigIterator, error)

FilterUpdateConfig is a free log retrieval operation binding the contract event 0x6818c9181f3a8cb0f4d8178667c423a4c4ed24fc2410822be08e76ef50b2de1e.

Solidity: e UpdateConfig(config string, value uint256)

func (*NetworkFilterer) FilterUpdateHost

func (_Network *NetworkFilterer) FilterUpdateHost(opts *bind.FilterOpts) (*NetworkUpdateHostIterator, error)

FilterUpdateHost is a free log retrieval operation binding the contract event 0x958adb313e9ddd949012b779ce40fe9b2e593e682b7b256c58f100f1c3235c33.

Solidity: e UpdateHost(value string)

func (*NetworkFilterer) FilterUpdateOpen

func (_Network *NetworkFilterer) FilterUpdateOpen(opts *bind.FilterOpts) (*NetworkUpdateOpenIterator, error)

FilterUpdateOpen is a free log retrieval operation binding the contract event 0x3acb93048c9b0c52dcccea319343be25e3be345a3a087b9f3304ef4b7be66449.

Solidity: e UpdateOpen(value bool)

func (*NetworkFilterer) WatchUpdateConfig

func (_Network *NetworkFilterer) WatchUpdateConfig(opts *bind.WatchOpts, sink chan<- *NetworkUpdateConfig) (event.Subscription, error)

WatchUpdateConfig is a free log subscription operation binding the contract event 0x6818c9181f3a8cb0f4d8178667c423a4c4ed24fc2410822be08e76ef50b2de1e.

Solidity: e UpdateConfig(config string, value uint256)

func (*NetworkFilterer) WatchUpdateHost

func (_Network *NetworkFilterer) WatchUpdateHost(opts *bind.WatchOpts, sink chan<- *NetworkUpdateHost) (event.Subscription, error)

WatchUpdateHost is a free log subscription operation binding the contract event 0x958adb313e9ddd949012b779ce40fe9b2e593e682b7b256c58f100f1c3235c33.

Solidity: e UpdateHost(value string)

func (*NetworkFilterer) WatchUpdateOpen

func (_Network *NetworkFilterer) WatchUpdateOpen(opts *bind.WatchOpts, sink chan<- *NetworkUpdateOpen) (event.Subscription, error)

WatchUpdateOpen is a free log subscription operation binding the contract event 0x3acb93048c9b0c52dcccea319343be25e3be345a3a087b9f3304ef4b7be66449.

Solidity: e UpdateOpen(value bool)

type NetworkRaw

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

NetworkRaw is an auto generated low-level Go binding around an cpchain contract.

func (*NetworkRaw) Call

func (_Network *NetworkRaw) 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 (*NetworkRaw) Transact

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

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

func (*NetworkRaw) Transfer

func (_Network *NetworkRaw) 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 NetworkSession

type NetworkSession struct {
	Contract     *Network          // 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
}

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

func (*NetworkSession) Count

func (_Network *NetworkSession) Count() (*big.Int, error)

Count is a free data retrieval call binding the contract method 0x06661abd.

Solidity: function count() constant returns(uint256)

func (*NetworkSession) Gap

func (_Network *NetworkSession) Gap() (*big.Int, error)

Gap is a free data retrieval call binding the contract method 0x6c32c0a6.

Solidity: function gap() constant returns(uint256)

func (*NetworkSession) Host

func (_Network *NetworkSession) Host() (string, error)

Host is a free data retrieval call binding the contract method 0xf437bc59.

Solidity: function host() constant returns(string)

func (*NetworkSession) Open

func (_Network *NetworkSession) Open() (bool, error)

Open is a free data retrieval call binding the contract method 0xfcfff16f.

Solidity: function open() constant returns(bool)

func (*NetworkSession) Timeout

func (_Network *NetworkSession) Timeout() (*big.Int, error)

Timeout is a free data retrieval call binding the contract method 0x70dea79a.

Solidity: function timeout() constant returns(uint256)

func (*NetworkSession) UpdateCount

func (_Network *NetworkSession) UpdateCount(_count *big.Int) (*types.Transaction, error)

UpdateCount is a paid mutator transaction binding the contract method 0x45516ee0.

Solidity: function updateCount(_count uint256) returns()

func (*NetworkSession) UpdateGap

func (_Network *NetworkSession) UpdateGap(_gap *big.Int) (*types.Transaction, error)

UpdateGap is a paid mutator transaction binding the contract method 0x150899cd.

Solidity: function updateGap(_gap uint256) returns()

func (*NetworkSession) UpdateHost

func (_Network *NetworkSession) UpdateHost(_host string) (*types.Transaction, error)

UpdateHost is a paid mutator transaction binding the contract method 0x80bed418.

Solidity: function updateHost(_host string) returns()

func (*NetworkSession) UpdateOpen

func (_Network *NetworkSession) UpdateOpen(_open bool) (*types.Transaction, error)

UpdateOpen is a paid mutator transaction binding the contract method 0x316d155b.

Solidity: function updateOpen(_open bool) returns()

func (*NetworkSession) UpdateTimeout

func (_Network *NetworkSession) UpdateTimeout(_timeout *big.Int) (*types.Transaction, error)

UpdateTimeout is a paid mutator transaction binding the contract method 0xa330214e.

Solidity: function updateTimeout(_timeout uint256) returns()

type NetworkTransactor

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

NetworkTransactor is an auto generated write-only Go binding around an cpchain contract.

func NewNetworkTransactor

func NewNetworkTransactor(address common.Address, transactor bind.ContractTransactor) (*NetworkTransactor, error)

NewNetworkTransactor creates a new write-only instance of Network, bound to a specific deployed contract.

func (*NetworkTransactor) UpdateCount

func (_Network *NetworkTransactor) UpdateCount(opts *bind.TransactOpts, _count *big.Int) (*types.Transaction, error)

UpdateCount is a paid mutator transaction binding the contract method 0x45516ee0.

Solidity: function updateCount(_count uint256) returns()

func (*NetworkTransactor) UpdateGap

func (_Network *NetworkTransactor) UpdateGap(opts *bind.TransactOpts, _gap *big.Int) (*types.Transaction, error)

UpdateGap is a paid mutator transaction binding the contract method 0x150899cd.

Solidity: function updateGap(_gap uint256) returns()

func (*NetworkTransactor) UpdateHost

func (_Network *NetworkTransactor) UpdateHost(opts *bind.TransactOpts, _host string) (*types.Transaction, error)

UpdateHost is a paid mutator transaction binding the contract method 0x80bed418.

Solidity: function updateHost(_host string) returns()

func (*NetworkTransactor) UpdateOpen

func (_Network *NetworkTransactor) UpdateOpen(opts *bind.TransactOpts, _open bool) (*types.Transaction, error)

UpdateOpen is a paid mutator transaction binding the contract method 0x316d155b.

Solidity: function updateOpen(_open bool) returns()

func (*NetworkTransactor) UpdateTimeout

func (_Network *NetworkTransactor) UpdateTimeout(opts *bind.TransactOpts, _timeout *big.Int) (*types.Transaction, error)

UpdateTimeout is a paid mutator transaction binding the contract method 0xa330214e.

Solidity: function updateTimeout(_timeout uint256) returns()

type NetworkTransactorRaw

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

NetworkTransactorRaw is an auto generated low-level write-only Go binding around an cpchain contract.

func (*NetworkTransactorRaw) Transact

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

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

func (*NetworkTransactorRaw) Transfer

func (_Network *NetworkTransactorRaw) 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 NetworkTransactorSession

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

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

func (*NetworkTransactorSession) UpdateCount

func (_Network *NetworkTransactorSession) UpdateCount(_count *big.Int) (*types.Transaction, error)

UpdateCount is a paid mutator transaction binding the contract method 0x45516ee0.

Solidity: function updateCount(_count uint256) returns()

func (*NetworkTransactorSession) UpdateGap

func (_Network *NetworkTransactorSession) UpdateGap(_gap *big.Int) (*types.Transaction, error)

UpdateGap is a paid mutator transaction binding the contract method 0x150899cd.

Solidity: function updateGap(_gap uint256) returns()

func (*NetworkTransactorSession) UpdateHost

func (_Network *NetworkTransactorSession) UpdateHost(_host string) (*types.Transaction, error)

UpdateHost is a paid mutator transaction binding the contract method 0x80bed418.

Solidity: function updateHost(_host string) returns()

func (*NetworkTransactorSession) UpdateOpen

func (_Network *NetworkTransactorSession) UpdateOpen(_open bool) (*types.Transaction, error)

UpdateOpen is a paid mutator transaction binding the contract method 0x316d155b.

Solidity: function updateOpen(_open bool) returns()

func (*NetworkTransactorSession) UpdateTimeout

func (_Network *NetworkTransactorSession) UpdateTimeout(_timeout *big.Int) (*types.Transaction, error)

UpdateTimeout is a paid mutator transaction binding the contract method 0xa330214e.

Solidity: function updateTimeout(_timeout uint256) returns()

type NetworkUpdateConfig

type NetworkUpdateConfig struct {
	Config string
	Value  *big.Int
	Raw    types.Log // Blockchain specific contextual infos
}

NetworkUpdateConfig represents a UpdateConfig event raised by the Network contract.

type NetworkUpdateConfigIterator

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

NetworkUpdateConfigIterator is returned from FilterUpdateConfig and is used to iterate over the raw logs and unpacked data for UpdateConfig events raised by the Network contract.

func (*NetworkUpdateConfigIterator) Close

func (it *NetworkUpdateConfigIterator) Close() error

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

func (*NetworkUpdateConfigIterator) Error

func (it *NetworkUpdateConfigIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*NetworkUpdateConfigIterator) Next

func (it *NetworkUpdateConfigIterator) 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 NetworkUpdateHost

type NetworkUpdateHost struct {
	Value string
	Raw   types.Log // Blockchain specific contextual infos
}

NetworkUpdateHost represents a UpdateHost event raised by the Network contract.

type NetworkUpdateHostIterator

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

NetworkUpdateHostIterator is returned from FilterUpdateHost and is used to iterate over the raw logs and unpacked data for UpdateHost events raised by the Network contract.

func (*NetworkUpdateHostIterator) Close

func (it *NetworkUpdateHostIterator) Close() error

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

func (*NetworkUpdateHostIterator) Error

func (it *NetworkUpdateHostIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*NetworkUpdateHostIterator) Next

func (it *NetworkUpdateHostIterator) 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 NetworkUpdateOpen

type NetworkUpdateOpen struct {
	Value bool
	Raw   types.Log // Blockchain specific contextual infos
}

NetworkUpdateOpen represents a UpdateOpen event raised by the Network contract.

type NetworkUpdateOpenIterator

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

NetworkUpdateOpenIterator is returned from FilterUpdateOpen and is used to iterate over the raw logs and unpacked data for UpdateOpen events raised by the Network contract.

func (*NetworkUpdateOpenIterator) Close

func (it *NetworkUpdateOpenIterator) Close() error

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

func (*NetworkUpdateOpenIterator) Error

func (it *NetworkUpdateOpenIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*NetworkUpdateOpenIterator) Next

func (it *NetworkUpdateOpenIterator) 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.

Jump to

Keyboard shortcuts

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