Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OracleSource ¶
OracleSource defines an input for the SendOracle.
type SendOracle ¶
type SendOracle interface { // OkToSend tells whether it makes sense to send a transaction // to the given conditional deposit address. OkToSend(conds *deposit.CDA) (bool, string, error) }
SendOracle tells whether it makes sense to send a transaction or not by using its sources to make a decision.
func New ¶
func New(sources ...OracleSource) SendOracle
New creates a new SendOracle which uses the provided sources to make its decision.
Click to show internal directories.
Click to hide internal directories.