Documentation ¶
Overview ¶
* Copyright (c) 2019. Baidu Inc. All Rights Reserved.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type XchainP2pProxy ¶
type XchainP2pProxy struct {
// contains filtered or unexported fields
}
func GetXchainP2pProxy ¶
func GetXchainP2pProxy() *XchainP2pProxy
func (*XchainP2pProxy) SendMessage ¶
func (cli *XchainP2pProxy) SendMessage(ctx context.Context, msg *xuperp2p.XuperMessage) error
SendMessage send message to a peer
func (*XchainP2pProxy) SendMessageWithResponse ¶
func (cli *XchainP2pProxy) SendMessageWithResponse(ctx context.Context, msg *xuperp2p.XuperMessage) (*xuperp2p.XuperMessage, error)
SendMessageWithResponse send message to a peer with responce
Click to show internal directories.
Click to hide internal directories.