Documentation ¶
Index ¶
- type ChainOracle
- func (ora *ChainOracle) CheckAutoInfo([]byte) bool
- func (ora *ChainOracle) DataStoreFinished(cid boson.Address, dataLen uint64, salt uint64, proof []byte, ...)
- func (ora *ChainOracle) GetCid(aufsUri string) []byte
- func (ora *ChainOracle) GetNodesFromCid(cid []byte) []boson.Address
- func (ora *ChainOracle) GetPeerBalance(peer boson.Address) *big.Int
- func (ora *ChainOracle) GetReceivedAmount(peer boson.Address) *big.Int
- func (ora *ChainOracle) GetSentAmount(peer boson.Address) *big.Int
- func (ora *ChainOracle) GetSourceNodes(aufsUri string) []boson.Address
- func (ora *ChainOracle) OnStoreMatched(cid boson.Address, dataLen uint64, salt uint64, address boson.Address)
- func (ora *ChainOracle) PeerPrice(address boson.Address) uint64
- func (ora *ChainOracle) Price() uint64
- func (ora *ChainOracle) ReportInvalidAuthInfo([]byte, chan oracle.ChainResult)
- func (ora *ChainOracle) ReportSignedAmount(voucher []byte, signature []byte, resCh chan oracle.ChainResult)
- func (ora *ChainOracle) SetPrice(value uint64, signature []byte, resCh chan oracle.ChainResult)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChainOracle ¶
type ChainOracle struct { }
func NewServer ¶
func NewServer() *ChainOracle
func (*ChainOracle) CheckAutoInfo ¶
func (ora *ChainOracle) CheckAutoInfo([]byte) bool
func (*ChainOracle) DataStoreFinished ¶
func (ora *ChainOracle) DataStoreFinished(cid boson.Address, dataLen uint64, salt uint64, proof []byte, resCh chan oracle.ChainResult)
func (*ChainOracle) GetCid ¶
func (ora *ChainOracle) GetCid(aufsUri string) []byte
func (*ChainOracle) GetNodesFromCid ¶
func (ora *ChainOracle) GetNodesFromCid(cid []byte) []boson.Address
func (*ChainOracle) GetPeerBalance ¶
func (ora *ChainOracle) GetPeerBalance(peer boson.Address) *big.Int
func (*ChainOracle) GetReceivedAmount ¶
func (ora *ChainOracle) GetReceivedAmount(peer boson.Address) *big.Int
func (*ChainOracle) GetSentAmount ¶
func (ora *ChainOracle) GetSentAmount(peer boson.Address) *big.Int
func (*ChainOracle) GetSourceNodes ¶
func (ora *ChainOracle) GetSourceNodes(aufsUri string) []boson.Address
func (*ChainOracle) OnStoreMatched ¶
func (*ChainOracle) Price ¶
func (ora *ChainOracle) Price() uint64
func (*ChainOracle) ReportInvalidAuthInfo ¶
func (ora *ChainOracle) ReportInvalidAuthInfo([]byte, chan oracle.ChainResult)
func (*ChainOracle) ReportSignedAmount ¶
func (ora *ChainOracle) ReportSignedAmount(voucher []byte, signature []byte, resCh chan oracle.ChainResult)
func (*ChainOracle) SetPrice ¶
func (ora *ChainOracle) SetPrice(value uint64, signature []byte, resCh chan oracle.ChainResult)
Click to show internal directories.
Click to hide internal directories.