protocol

package
v0.0.0-...-12e863f Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2018 License: AGPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChannelHandler

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

func NewChannelHandler

func NewChannelHandler(peerBook *p2p.PeerBook, km *wallet.KeyManager, client *ethclient.Client, db *db.DB) *ChannelHandler

func (*ChannelHandler) Accept

func (c *ChannelHandler) Accept(envelope *p2p.Envelope) (lnwire.Message, error)

func (*ChannelHandler) CanAccept

func (c *ChannelHandler) CanAccept(msg lnwire.Message) bool

func (*ChannelHandler) InitChannel

func (c *ChannelHandler) InitChannel(pub *crypto.PublicKey, amount *big.Int) error

type HandshakeHandler

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

func NewHandshakeHandler

func NewHandshakeHandler(lndClient *lndclient.Client) *HandshakeHandler

func (*HandshakeHandler) Accept

func (h *HandshakeHandler) Accept(envelope *p2p.Envelope) (lnwire.Message, error)

func (*HandshakeHandler) CanAccept

func (h *HandshakeHandler) CanAccept(msg lnwire.Message) bool

type PingPongHandler

type PingPongHandler struct{}

func (*PingPongHandler) Accept

func (*PingPongHandler) Accept(envelope *p2p.Envelope) (lnwire.Message, error)

func (*PingPongHandler) CanAccept

func (*PingPongHandler) CanAccept(msg lnwire.Message) bool

type SwapHandler

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

func NewSwapHandler

func NewSwapHandler(pb *p2p.PeerBook, lnd *lndclient.Client, eth *ethclient.Client, d *db.DB, km *wallet.KeyManager) *SwapHandler

func (*SwapHandler) Accept

func (s *SwapHandler) Accept(envelope *p2p.Envelope) (lnwire.Message, error)

func (*SwapHandler) CanAccept

func (s *SwapHandler) CanAccept(msg lnwire.Message) bool

func (*SwapHandler) InitSwap

func (s *SwapHandler) InitSwap(pub *crypto.PublicKey, ethAmount *big.Int, btcAmount *big.Int) error

Jump to

Keyboard shortcuts

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