prxyxchain

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 25, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

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) Defer

func (cli *XchainP2pProxy) Defer()

@todo 复用一个conn 会出问题, 后面再排查下原因吧

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL