Documentation ¶
Index ¶
- Variables
- type ClientOp
- type FeedPacket
- type FeedType
- type Remote
- func (r *Remote) FeedBlockedTxHash(hashes []common.Hash) error
- func (r *Remote) FeedChainConfig(config *params.ChainConfig) error
- func (r *Remote) FeedNewTx(txs types.Transactions) error
- func (r *Remote) FeedResponse(id int, ok bool, msg string) error
- func (r *Remote) RecvLoop() error
- func (r *Remote) Serve(cfg *params.ChainConfig) error
- func (r *Remote) Stop()
- type RequestPacket
- type ResponsePacket
- type Server
- type Topic
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrConnClosed = errors.New("ws conn closed")
Functions ¶
This section is empty.
Types ¶
type FeedPacket ¶
FeedPacket 服务器向客户端推送的数据类型
type Remote ¶
type Remote struct {
// contains filtered or unexported fields
}
Remote represents one conn instance
func (*Remote) FeedBlockedTxHash ¶
FeedBlockedTxHash relay new blocked tx hash to clients
func (*Remote) FeedChainConfig ¶
func (r *Remote) FeedChainConfig(config *params.ChainConfig) error
func (*Remote) FeedNewTx ¶
func (r *Remote) FeedNewTx(txs types.Transactions) error
FeedNewTx relay new tx event to clients
func (*Remote) FeedResponse ¶
FeedResponse respond to client requests
type RequestPacket ¶
type ResponsePacket ¶
Click to show internal directories.
Click to hide internal directories.