Documentation
¶
Index ¶
Constants ¶
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BalanceProof ¶
type BalanceProof struct {
Result
Proof tee.BalanceProof `json:"proof"`
}
BalanceProof contains one BalanceProof from the according subscription.
type Call ¶
type Call struct {
// ID is an unique id.
ID ID `json:"id"`
// Method describes which action should be executed.
Method Method `json:"method"`
}
Call is a generic call.
type DepositProof ¶
type DepositProof struct {
Result
Proof tee.DepositProof `json:"proof"`
}
DepositProof contains one DepositProof from the according subscription.
type PushConfig ¶
type PushConfig struct {
Result
Config config.OpClientConfig `json:"config"`
}
type Result ¶
type Result struct {
// ID can be used to map the Result fo its corresponding `Call`.
ID ID `json:"id,omitempty"`
// Topic is set iff this Result to the specified Topic subscription.
Topic Topic `json:"topic,omitempty"`
// Error is set iff an error occurred with a Call or subscription.
Error string `json:"error,omitempty"`
}
Result is a generic result. It has either ID or Topic set, depending on whether it is a result for a call or a subscription update for a topic.
type SendTx ¶
type SendTx struct {
Call
Tx tee.Transaction `json:"tx"`
}
SendTx sends one Transaction to the remote operator.
type Subscribe ¶
type Subscribe struct {
Call
// The Address this subscription is for.
Who common.Address `json:"who"`
}
Subscribe sets up a client subscription.
type TXReceipt ¶
type TXReceipt struct {
Result
TX tee.Transaction `json:"tx"`
}
TXReceipt notifies a peer that he received a new transaction.
Click to show internal directories.
Click to hide internal directories.