Documentation ¶
Index ¶
- Variables
- type EosClient
- func (ec *EosClient) BlockRespDecodeTrx(blockResp *model.BlockResp) (out *model.BlockResp, err error)
- func (ec *EosClient) GetBlockByID(query uint32) (resp *model.BlockResp, err error)
- func (ec *EosClient) GetCurrencyBalance(account string, symbol string) (out []eos.Asset, err error)
- func (ec *EosClient) GetInfo() (out *eos.InfoResp, err error)
- func (ec *EosClient) GetIrreversibleBlockHeight() uint32
- func (ec *EosClient) GetNewestBlockHeight() uint32
- func (ec *EosClient) GetTransaction(id string) (out interface{}, err error)
- func (ec *EosClient) GetTransactionFormat(id string) (out *eos.TransactionResp, err error)
- func (ec *EosClient) PushSignedTransaction(tx *eos.PackedTransaction) (out *eos.PushTransactionFullResp, err error)
- func (ec *EosClient) SetChainID()
- type EosWatcher
- func (ew *EosWatcher) CheckConfirmOfTx(txid string) bool
- func (ew *EosWatcher) GetEosClient() *EosClient
- func (ew *EosWatcher) GetIrreversibleBlockChan() <-chan *model.BlockResp
- func (ew *EosWatcher) GetScanHeightFromRedis() uint32
- func (ew *EosWatcher) GetUnConfirmBlockChan() <-chan *model.BlockResp
- func (ew *EosWatcher) UpdateScanHeightToRedis(height uint32) bool
- func (ew *EosWatcher) WatchAllBlock()
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = errors.New("resource not found")
Functions ¶
This section is empty.
Types ¶
type EosClient ¶
func NewEosClient ¶
func (*EosClient) BlockRespDecodeTrx ¶
func (*EosClient) GetBlockByID ¶
func (*EosClient) GetCurrencyBalance ¶
func (*EosClient) GetIrreversibleBlockHeight ¶
func (*EosClient) GetNewestBlockHeight ¶
func (*EosClient) GetTransaction ¶
func (*EosClient) GetTransactionFormat ¶
func (*EosClient) PushSignedTransaction ¶
func (*EosClient) SetChainID ¶
func (ec *EosClient) SetChainID()
type EosWatcher ¶
type EosWatcher struct {
// contains filtered or unexported fields
}
func NewEosWatcher ¶
func NewEosWatcher(baseURL string, scanHeight uint32, redisPool *redis.Pool) *EosWatcher
func (*EosWatcher) CheckConfirmOfTx ¶
func (ew *EosWatcher) CheckConfirmOfTx(txid string) bool
func (*EosWatcher) GetEosClient ¶
func (ew *EosWatcher) GetEosClient() *EosClient
func (*EosWatcher) GetIrreversibleBlockChan ¶
func (ew *EosWatcher) GetIrreversibleBlockChan() <-chan *model.BlockResp
func (*EosWatcher) GetScanHeightFromRedis ¶
func (ew *EosWatcher) GetScanHeightFromRedis() uint32
func (*EosWatcher) GetUnConfirmBlockChan ¶
func (ew *EosWatcher) GetUnConfirmBlockChan() <-chan *model.BlockResp
func (*EosWatcher) UpdateScanHeightToRedis ¶
func (ew *EosWatcher) UpdateScanHeightToRedis(height uint32) bool
Click to show internal directories.
Click to hide internal directories.