documents

package
v0.0.0-...-32f009b Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2018 License: MIT Imports: 16 Imported by: 1

Documentation

Index

Constants

View Source
const NotaryABI = "" /* 2126-byte string literal not displayed */

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

View Source
const NotaryBin = `` /* 4044-byte string literal not displayed */

NotaryBin is the compiled bytecode used for deploying new contracts.

View Source
const NotaryMultiABI = "" /* 729-byte string literal not displayed */

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

View Source
const NotaryMultiBin = `` /* 2300-byte string literal not displayed */

NotaryMultiBin is the compiled bytecode used for deploying new contracts.

View Source
const OwnableABI = "" /* 995-byte string literal not displayed */

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

View Source
const OwnableBin = `` /* 1148-byte string literal not displayed */

OwnableBin is the compiled bytecode used for deploying new contracts.

Variables

This section is empty.

Functions

This section is empty.

Types

type Document

type Document struct {
	ID               int `storm:"id,increment"`
	Title            string
	MimeType         string
	Description      string
	Content          []byte `json:"-"`
	EncryptedContent aes.CipherText
	CreatedAt        int64
	CID              []byte
	Signature        []byte
	TransactionHash  string
}

type DocumentAllCall

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

func NewDocumentAllCall

func NewDocumentAllCall(db *Storage) *DocumentAllCall

func (*DocumentAllCall) CallID

func (c *DocumentAllCall) CallID() string

func (*DocumentAllCall) Handle

func (c *DocumentAllCall) Handle(data map[string]interface{}) (map[string]interface{}, error)

func (*DocumentAllCall) Validate

func (c *DocumentAllCall) Validate(map[string]interface{}) error

type DocumentCreateCall

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

func NewDocumentCreateCall

func NewDocumentCreateCall(s *Storage) *DocumentCreateCall

func (*DocumentCreateCall) CallID

func (c *DocumentCreateCall) CallID() string

func (*DocumentCreateCall) Handle

func (c *DocumentCreateCall) Handle(data map[string]interface{}) (map[string]interface{}, error)

func (*DocumentCreateCall) Validate

func (c *DocumentCreateCall) Validate(map[string]interface{}) error

type DocumentDeleteCall

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

func NewDocumentDeleteCall

func NewDocumentDeleteCall(s *Storage) *DocumentDeleteCall

func (*DocumentDeleteCall) CallID

func (d *DocumentDeleteCall) CallID() string

func (*DocumentDeleteCall) Handle

func (d *DocumentDeleteCall) Handle(data map[string]interface{}) (map[string]interface{}, error)

func (*DocumentDeleteCall) Validate

func (d *DocumentDeleteCall) Validate(map[string]interface{}) error

type DocumentSubmitCall

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

func NewDocumentNotariseCall

func NewDocumentNotariseCall(s *Storage, km *keyManager.KeyManager, n *NotaryMulti) *DocumentSubmitCall

func (*DocumentSubmitCall) CallID

func (d *DocumentSubmitCall) CallID() string

func (*DocumentSubmitCall) Handle

func (d *DocumentSubmitCall) Handle(data map[string]interface{}) (map[string]interface{}, error)

func (*DocumentSubmitCall) Validate

func (d *DocumentSubmitCall) Validate(map[string]interface{}) error

type DocumentUpdateCall

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

func NewDocumentUpdateCall

func NewDocumentUpdateCall(s *Storage) *DocumentUpdateCall

func (*DocumentUpdateCall) CallID

func (c *DocumentUpdateCall) CallID() string

func (*DocumentUpdateCall) Handle

func (c *DocumentUpdateCall) Handle(data map[string]interface{}) (map[string]interface{}, error)

func (*DocumentUpdateCall) Validate

func (c *DocumentUpdateCall) Validate(map[string]interface{}) error

type Notary

type Notary struct {
	NotaryCaller     // Read-only binding to the contract
	NotaryTransactor // Write-only binding to the contract
	NotaryFilterer   // Log filterer for contract events
}

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

func DeployNotary

func DeployNotary(auth *bind.TransactOpts, backend bind.ContractBackend, _owner common.Address) (common.Address, *types.Transaction, *Notary, error)

DeployNotary deploys a new Ethereum contract, binding an instance of Notary to it.

func NewNotary

func NewNotary(address common.Address, backend bind.ContractBackend) (*Notary, error)

NewNotary creates a new instance of Notary, bound to a specific deployed contract.

type NotaryCaller

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

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

func NewNotaryCaller

func NewNotaryCaller(address common.Address, caller bind.ContractCaller) (*NotaryCaller, error)

NewNotaryCaller creates a new read-only instance of Notary, bound to a specific deployed contract.

func (*NotaryCaller) NotarisationFee

func (_Notary *NotaryCaller) NotarisationFee(opts *bind.CallOpts) (*big.Int, error)

NotarisationFee is a free data retrieval call binding the contract method 0xc9d3a885.

Solidity: function notarisationFee() constant returns(uint256)

func (*NotaryCaller) Owner

func (_Notary *NotaryCaller) 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)

func (*NotaryCaller) Record

func (_Notary *NotaryCaller) Record(opts *bind.CallOpts, _notarisedData []byte) ([]byte, *big.Int, error)

Record is a free data retrieval call binding the contract method 0xe1112648.

Solidity: function record(_notarisedData bytes) constant returns(bytes, uint256)

func (*NotaryCaller) Records

func (_Notary *NotaryCaller) Records(opts *bind.CallOpts, arg0 [32]byte) (struct {
	NotarisedData []byte
	Timestamp     *big.Int
}, error)

Records is a free data retrieval call binding the contract method 0x01e64725.

Solidity: function records( bytes32) constant returns(notarisedData bytes, timestamp uint256)

type NotaryCallerRaw

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

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

func (*NotaryCallerRaw) Call

func (_Notary *NotaryCallerRaw) 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 NotaryCallerSession

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

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

func (*NotaryCallerSession) NotarisationFee

func (_Notary *NotaryCallerSession) NotarisationFee() (*big.Int, error)

NotarisationFee is a free data retrieval call binding the contract method 0xc9d3a885.

Solidity: function notarisationFee() constant returns(uint256)

func (*NotaryCallerSession) Owner

func (_Notary *NotaryCallerSession) Owner() (common.Address, error)

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

Solidity: function owner() constant returns(address)

func (*NotaryCallerSession) Record

func (_Notary *NotaryCallerSession) Record(_notarisedData []byte) ([]byte, *big.Int, error)

Record is a free data retrieval call binding the contract method 0xe1112648.

Solidity: function record(_notarisedData bytes) constant returns(bytes, uint256)

func (*NotaryCallerSession) Records

func (_Notary *NotaryCallerSession) Records(arg0 [32]byte) (struct {
	NotarisedData []byte
	Timestamp     *big.Int
}, error)

Records is a free data retrieval call binding the contract method 0x01e64725.

Solidity: function records( bytes32) constant returns(notarisedData bytes, timestamp uint256)

type NotaryFilterer

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

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

func NewNotaryFilterer

func NewNotaryFilterer(address common.Address, filterer bind.ContractFilterer) (*NotaryFilterer, error)

NewNotaryFilterer creates a new log filterer instance of Notary, bound to a specific deployed contract.

func (*NotaryFilterer) FilterOwnershipRenounced

func (_Notary *NotaryFilterer) FilterOwnershipRenounced(opts *bind.FilterOpts, previousOwner []common.Address) (*NotaryOwnershipRenouncedIterator, error)

FilterOwnershipRenounced is a free log retrieval operation binding the contract event 0xf8df31144d9c2f0f6b59d69b8b98abd5459d07f2742c4df920b25aae33c64820.

Solidity: e OwnershipRenounced(previousOwner indexed address)

func (*NotaryFilterer) FilterOwnershipTransferred

func (_Notary *NotaryFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*NotaryOwnershipTransferredIterator, error)

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

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

func (*NotaryFilterer) WatchOwnershipRenounced

func (_Notary *NotaryFilterer) WatchOwnershipRenounced(opts *bind.WatchOpts, sink chan<- *NotaryOwnershipRenounced, previousOwner []common.Address) (event.Subscription, error)

WatchOwnershipRenounced is a free log subscription operation binding the contract event 0xf8df31144d9c2f0f6b59d69b8b98abd5459d07f2742c4df920b25aae33c64820.

Solidity: e OwnershipRenounced(previousOwner indexed address)

func (*NotaryFilterer) WatchOwnershipTransferred

func (_Notary *NotaryFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *NotaryOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error)

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

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

type NotaryMulti

type NotaryMulti struct {
	NotaryMultiCaller     // Read-only binding to the contract
	NotaryMultiTransactor // Write-only binding to the contract
	NotaryMultiFilterer   // Log filterer for contract events
}

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

func DeployNotaryMulti

func DeployNotaryMulti(auth *bind.TransactOpts, backend bind.ContractBackend, _notary common.Address) (common.Address, *types.Transaction, *NotaryMulti, error)

DeployNotaryMulti deploys a new Ethereum contract, binding an instance of NotaryMulti to it.

func NewNotaryMulti

func NewNotaryMulti(address common.Address, backend bind.ContractBackend) (*NotaryMulti, error)

NewNotaryMulti creates a new instance of NotaryMulti, bound to a specific deployed contract.

type NotaryMultiCaller

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

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

func NewNotaryMultiCaller

func NewNotaryMultiCaller(address common.Address, caller bind.ContractCaller) (*NotaryMultiCaller, error)

NewNotaryMultiCaller creates a new read-only instance of NotaryMulti, bound to a specific deployed contract.

func (*NotaryMultiCaller) Notary

func (_NotaryMulti *NotaryMultiCaller) Notary(opts *bind.CallOpts) (common.Address, error)

Notary is a free data retrieval call binding the contract method 0x9d54c79d.

Solidity: function notary() constant returns(address)

func (*NotaryMultiCaller) NotaryFee

func (_NotaryMulti *NotaryMultiCaller) NotaryFee(opts *bind.CallOpts) (*big.Int, error)

NotaryFee is a free data retrieval call binding the contract method 0x835c853b.

Solidity: function notaryFee() constant returns(uint256)

type NotaryMultiCallerRaw

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

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

func (*NotaryMultiCallerRaw) Call

func (_NotaryMulti *NotaryMultiCallerRaw) 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 NotaryMultiCallerSession

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

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

func (*NotaryMultiCallerSession) Notary

func (_NotaryMulti *NotaryMultiCallerSession) Notary() (common.Address, error)

Notary is a free data retrieval call binding the contract method 0x9d54c79d.

Solidity: function notary() constant returns(address)

func (*NotaryMultiCallerSession) NotaryFee

func (_NotaryMulti *NotaryMultiCallerSession) NotaryFee() (*big.Int, error)

NotaryFee is a free data retrieval call binding the contract method 0x835c853b.

Solidity: function notaryFee() constant returns(uint256)

type NotaryMultiFilterer

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

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

func NewNotaryMultiFilterer

func NewNotaryMultiFilterer(address common.Address, filterer bind.ContractFilterer) (*NotaryMultiFilterer, error)

NewNotaryMultiFilterer creates a new log filterer instance of NotaryMulti, bound to a specific deployed contract.

type NotaryMultiRaw

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

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

func (*NotaryMultiRaw) Call

func (_NotaryMulti *NotaryMultiRaw) 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 (*NotaryMultiRaw) Transact

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

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

func (*NotaryMultiRaw) Transfer

func (_NotaryMulti *NotaryMultiRaw) 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 NotaryMultiSession

type NotaryMultiSession struct {
	Contract     *NotaryMulti      // 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
}

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

func (*NotaryMultiSession) NotarizeTwo

func (_NotaryMulti *NotaryMultiSession) NotarizeTwo(_firstRecord []byte, _secondRecord []byte) (*types.Transaction, error)

NotarizeTwo is a paid mutator transaction binding the contract method 0x09267785.

Solidity: function notarizeTwo(_firstRecord bytes, _secondRecord bytes) returns()

func (*NotaryMultiSession) Notary

func (_NotaryMulti *NotaryMultiSession) Notary() (common.Address, error)

Notary is a free data retrieval call binding the contract method 0x9d54c79d.

Solidity: function notary() constant returns(address)

func (*NotaryMultiSession) NotaryFee

func (_NotaryMulti *NotaryMultiSession) NotaryFee() (*big.Int, error)

NotaryFee is a free data retrieval call binding the contract method 0x835c853b.

Solidity: function notaryFee() constant returns(uint256)

type NotaryMultiTransactor

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

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

func NewNotaryMultiTransactor

func NewNotaryMultiTransactor(address common.Address, transactor bind.ContractTransactor) (*NotaryMultiTransactor, error)

NewNotaryMultiTransactor creates a new write-only instance of NotaryMulti, bound to a specific deployed contract.

func (*NotaryMultiTransactor) NotarizeTwo

func (_NotaryMulti *NotaryMultiTransactor) NotarizeTwo(opts *bind.TransactOpts, _firstRecord []byte, _secondRecord []byte) (*types.Transaction, error)

NotarizeTwo is a paid mutator transaction binding the contract method 0x09267785.

Solidity: function notarizeTwo(_firstRecord bytes, _secondRecord bytes) returns()

type NotaryMultiTransactorRaw

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

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

func (*NotaryMultiTransactorRaw) Transact

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

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

func (*NotaryMultiTransactorRaw) Transfer

func (_NotaryMulti *NotaryMultiTransactorRaw) 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 NotaryMultiTransactorSession

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

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

func (*NotaryMultiTransactorSession) NotarizeTwo

func (_NotaryMulti *NotaryMultiTransactorSession) NotarizeTwo(_firstRecord []byte, _secondRecord []byte) (*types.Transaction, error)

NotarizeTwo is a paid mutator transaction binding the contract method 0x09267785.

Solidity: function notarizeTwo(_firstRecord bytes, _secondRecord bytes) returns()

type NotaryOwnershipRenounced

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

NotaryOwnershipRenounced represents a OwnershipRenounced event raised by the Notary contract.

type NotaryOwnershipRenouncedIterator

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

NotaryOwnershipRenouncedIterator is returned from FilterOwnershipRenounced and is used to iterate over the raw logs and unpacked data for OwnershipRenounced events raised by the Notary contract.

func (*NotaryOwnershipRenouncedIterator) Close

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

func (*NotaryOwnershipRenouncedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*NotaryOwnershipRenouncedIterator) 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 NotaryOwnershipTransferred

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

NotaryOwnershipTransferred represents a OwnershipTransferred event raised by the Notary contract.

type NotaryOwnershipTransferredIterator

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

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

func (*NotaryOwnershipTransferredIterator) Close

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

func (*NotaryOwnershipTransferredIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*NotaryOwnershipTransferredIterator) 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 NotaryRaw

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

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

func (*NotaryRaw) Call

func (_Notary *NotaryRaw) 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 (*NotaryRaw) Transact

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

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

func (*NotaryRaw) Transfer

func (_Notary *NotaryRaw) 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 NotarySession

type NotarySession struct {
	Contract     *Notary           // 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
}

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

func (*NotarySession) NotarisationFee

func (_Notary *NotarySession) NotarisationFee() (*big.Int, error)

NotarisationFee is a free data retrieval call binding the contract method 0xc9d3a885.

Solidity: function notarisationFee() constant returns(uint256)

func (*NotarySession) Notarize

func (_Notary *NotarySession) Notarize(_record []byte) (*types.Transaction, error)

Notarize is a paid mutator transaction binding the contract method 0xfb1ace34.

Solidity: function notarize(_record bytes) returns()

func (*NotarySession) Owner

func (_Notary *NotarySession) Owner() (common.Address, error)

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

Solidity: function owner() constant returns(address)

func (*NotarySession) Record

func (_Notary *NotarySession) Record(_notarisedData []byte) ([]byte, *big.Int, error)

Record is a free data retrieval call binding the contract method 0xe1112648.

Solidity: function record(_notarisedData bytes) constant returns(bytes, uint256)

func (*NotarySession) Records

func (_Notary *NotarySession) Records(arg0 [32]byte) (struct {
	NotarisedData []byte
	Timestamp     *big.Int
}, error)

Records is a free data retrieval call binding the contract method 0x01e64725.

Solidity: function records( bytes32) constant returns(notarisedData bytes, timestamp uint256)

func (*NotarySession) RenounceOwnership

func (_Notary *NotarySession) RenounceOwnership() (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*NotarySession) SetNotarisationFee

func (_Notary *NotarySession) SetNotarisationFee(_fee *big.Int) (*types.Transaction, error)

SetNotarisationFee is a paid mutator transaction binding the contract method 0xc0496e57.

Solidity: function setNotarisationFee(_fee uint256) returns()

func (*NotarySession) TransferOwnership

func (_Notary *NotarySession) TransferOwnership(_newOwner common.Address) (*types.Transaction, error)

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

Solidity: function transferOwnership(_newOwner address) returns()

type NotaryTransactor

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

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

func NewNotaryTransactor

func NewNotaryTransactor(address common.Address, transactor bind.ContractTransactor) (*NotaryTransactor, error)

NewNotaryTransactor creates a new write-only instance of Notary, bound to a specific deployed contract.

func (*NotaryTransactor) Notarize

func (_Notary *NotaryTransactor) Notarize(opts *bind.TransactOpts, _record []byte) (*types.Transaction, error)

Notarize is a paid mutator transaction binding the contract method 0xfb1ace34.

Solidity: function notarize(_record bytes) returns()

func (*NotaryTransactor) RenounceOwnership

func (_Notary *NotaryTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*NotaryTransactor) SetNotarisationFee

func (_Notary *NotaryTransactor) SetNotarisationFee(opts *bind.TransactOpts, _fee *big.Int) (*types.Transaction, error)

SetNotarisationFee is a paid mutator transaction binding the contract method 0xc0496e57.

Solidity: function setNotarisationFee(_fee uint256) returns()

func (*NotaryTransactor) TransferOwnership

func (_Notary *NotaryTransactor) TransferOwnership(opts *bind.TransactOpts, _newOwner common.Address) (*types.Transaction, error)

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

Solidity: function transferOwnership(_newOwner address) returns()

type NotaryTransactorRaw

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

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

func (*NotaryTransactorRaw) Transact

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

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

func (*NotaryTransactorRaw) Transfer

func (_Notary *NotaryTransactorRaw) 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 NotaryTransactorSession

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

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

func (*NotaryTransactorSession) Notarize

func (_Notary *NotaryTransactorSession) Notarize(_record []byte) (*types.Transaction, error)

Notarize is a paid mutator transaction binding the contract method 0xfb1ace34.

Solidity: function notarize(_record bytes) returns()

func (*NotaryTransactorSession) RenounceOwnership

func (_Notary *NotaryTransactorSession) RenounceOwnership() (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*NotaryTransactorSession) SetNotarisationFee

func (_Notary *NotaryTransactorSession) SetNotarisationFee(_fee *big.Int) (*types.Transaction, error)

SetNotarisationFee is a paid mutator transaction binding the contract method 0xc0496e57.

Solidity: function setNotarisationFee(_fee uint256) returns()

func (*NotaryTransactorSession) TransferOwnership

func (_Notary *NotaryTransactorSession) TransferOwnership(_newOwner common.Address) (*types.Transaction, error)

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

Solidity: function transferOwnership(_newOwner address) returns()

type Ownable

type Ownable struct {
	OwnableCaller     // Read-only binding to the contract
	OwnableTransactor // Write-only binding to the contract
	OwnableFilterer   // Log filterer for contract events
}

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

func DeployOwnable

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

DeployOwnable deploys a new Ethereum contract, binding an instance of Ownable to it.

func NewOwnable

func NewOwnable(address common.Address, backend bind.ContractBackend) (*Ownable, error)

NewOwnable creates a new instance of Ownable, bound to a specific deployed contract.

type OwnableCaller

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

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

func NewOwnableCaller

func NewOwnableCaller(address common.Address, caller bind.ContractCaller) (*OwnableCaller, error)

NewOwnableCaller creates a new read-only instance of Ownable, bound to a specific deployed contract.

func (*OwnableCaller) Owner

func (_Ownable *OwnableCaller) 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 OwnableCallerRaw

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

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

func (*OwnableCallerRaw) Call

func (_Ownable *OwnableCallerRaw) 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 OwnableCallerSession

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

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

func (*OwnableCallerSession) Owner

func (_Ownable *OwnableCallerSession) Owner() (common.Address, error)

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

Solidity: function owner() constant returns(address)

type OwnableFilterer

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

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

func NewOwnableFilterer

func NewOwnableFilterer(address common.Address, filterer bind.ContractFilterer) (*OwnableFilterer, error)

NewOwnableFilterer creates a new log filterer instance of Ownable, bound to a specific deployed contract.

func (*OwnableFilterer) FilterOwnershipRenounced

func (_Ownable *OwnableFilterer) FilterOwnershipRenounced(opts *bind.FilterOpts, previousOwner []common.Address) (*OwnableOwnershipRenouncedIterator, error)

FilterOwnershipRenounced is a free log retrieval operation binding the contract event 0xf8df31144d9c2f0f6b59d69b8b98abd5459d07f2742c4df920b25aae33c64820.

Solidity: e OwnershipRenounced(previousOwner indexed address)

func (*OwnableFilterer) FilterOwnershipTransferred

func (_Ownable *OwnableFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*OwnableOwnershipTransferredIterator, error)

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

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

func (*OwnableFilterer) WatchOwnershipRenounced

func (_Ownable *OwnableFilterer) WatchOwnershipRenounced(opts *bind.WatchOpts, sink chan<- *OwnableOwnershipRenounced, previousOwner []common.Address) (event.Subscription, error)

WatchOwnershipRenounced is a free log subscription operation binding the contract event 0xf8df31144d9c2f0f6b59d69b8b98abd5459d07f2742c4df920b25aae33c64820.

Solidity: e OwnershipRenounced(previousOwner indexed address)

func (*OwnableFilterer) WatchOwnershipTransferred

func (_Ownable *OwnableFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *OwnableOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error)

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

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

type OwnableOwnershipRenounced

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

OwnableOwnershipRenounced represents a OwnershipRenounced event raised by the Ownable contract.

type OwnableOwnershipRenouncedIterator

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

OwnableOwnershipRenouncedIterator is returned from FilterOwnershipRenounced and is used to iterate over the raw logs and unpacked data for OwnershipRenounced events raised by the Ownable contract.

func (*OwnableOwnershipRenouncedIterator) Close

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

func (*OwnableOwnershipRenouncedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*OwnableOwnershipRenouncedIterator) 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 OwnableOwnershipTransferred

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

OwnableOwnershipTransferred represents a OwnershipTransferred event raised by the Ownable contract.

type OwnableOwnershipTransferredIterator

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

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

func (*OwnableOwnershipTransferredIterator) Close

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

func (*OwnableOwnershipTransferredIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*OwnableOwnershipTransferredIterator) 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 OwnableRaw

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

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

func (*OwnableRaw) Call

func (_Ownable *OwnableRaw) 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 (*OwnableRaw) Transact

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

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

func (*OwnableRaw) Transfer

func (_Ownable *OwnableRaw) 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 OwnableSession

type OwnableSession struct {
	Contract     *Ownable          // 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
}

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

func (*OwnableSession) Owner

func (_Ownable *OwnableSession) Owner() (common.Address, error)

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

Solidity: function owner() constant returns(address)

func (*OwnableSession) RenounceOwnership

func (_Ownable *OwnableSession) RenounceOwnership() (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*OwnableSession) TransferOwnership

func (_Ownable *OwnableSession) TransferOwnership(_newOwner common.Address) (*types.Transaction, error)

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

Solidity: function transferOwnership(_newOwner address) returns()

type OwnableTransactor

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

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

func NewOwnableTransactor

func NewOwnableTransactor(address common.Address, transactor bind.ContractTransactor) (*OwnableTransactor, error)

NewOwnableTransactor creates a new write-only instance of Ownable, bound to a specific deployed contract.

func (*OwnableTransactor) RenounceOwnership

func (_Ownable *OwnableTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*OwnableTransactor) TransferOwnership

func (_Ownable *OwnableTransactor) TransferOwnership(opts *bind.TransactOpts, _newOwner common.Address) (*types.Transaction, error)

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

Solidity: function transferOwnership(_newOwner address) returns()

type OwnableTransactorRaw

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

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

func (*OwnableTransactorRaw) Transact

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

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

func (*OwnableTransactorRaw) Transfer

func (_Ownable *OwnableTransactorRaw) 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 OwnableTransactorSession

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

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

func (*OwnableTransactorSession) RenounceOwnership

func (_Ownable *OwnableTransactorSession) RenounceOwnership() (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*OwnableTransactorSession) TransferOwnership

func (_Ownable *OwnableTransactorSession) TransferOwnership(_newOwner common.Address) (*types.Transaction, error)

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

Solidity: function transferOwnership(_newOwner address) returns()

type Storage

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

func NewStorage

func NewStorage(db *storm.DB, km *keyManager.KeyManager) *Storage

func (*Storage) All

func (s *Storage) All() ([]*Document, error)

func (*Storage) Save

func (s *Storage) Save(d *Document) error

Jump to

Keyboard shortcuts

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