service

package
v0.0.0-...-2540013 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2018 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const SwapProtocol protocol.ID = "/SwapProtocol/1.0.0"

Variables

This section is empty.

Functions

This section is empty.

Types

type WireService

type WireService struct {
	// contains filtered or unexported fields
}

func NewWireService

func NewWireService(msgChan chan interface{}, orderBook *ob.OrderBook, peerHost host.Host) *WireService

func (*WireService) SendMessage

func (ws *WireService) SendMessage(peer peer.ID, pmes *pb.Message) error

func (*WireService) SendRequest

func (ws *WireService) SendRequest(peer peer.ID, pmes *pb.Message) (*pb.Message, error)

Jump to

Keyboard shortcuts

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