client

package
v0.1.0-testnet Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2022 License: MPL-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrTimeout = errors.New("Timeout")

Functions

This section is empty.

Types

type RemoteConnection

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

func Connect

func Connect(sessReqChan chan model.SessionRequest, url string, ignoreTLS bool) (*RemoteConnection, error)

func (*RemoteConnection) CardPair

func (c *RemoteConnection) CardPair(initPairingData []byte) (cardPairData []byte, err error)

func (*RemoteConnection) CardPair2

func (c *RemoteConnection) CardPair2(cardPairData []byte) (cardPairData2 []byte, err error)

func (*RemoteConnection) ConnectToCard

func (c *RemoteConnection) ConnectToCard(cardID string) error

func (*RemoteConnection) FinalizeCardPair

func (c *RemoteConnection) FinalizeCardPair(cardPair2Data []byte) error

func (*RemoteConnection) GenerateInvoice

func (c *RemoteConnection) GenerateInvoice() (invoiceData []byte, err error)

func (*RemoteConnection) GetCertificate

func (c *RemoteConnection) GetCertificate() (*cert.CardCertificate, error)

func (*RemoteConnection) HandleIncoming

func (c *RemoteConnection) HandleIncoming()

func (*RemoteConnection) Identify

func (c *RemoteConnection) Identify() error

/// Below are the methods that satisfy the interface for remote counterparty ///

func (*RemoteConnection) PairingStatus

func (c *RemoteConnection) PairingStatus() model.RemotePairingStatus

func (*RemoteConnection) ReceiveInvoice

func (c *RemoteConnection) ReceiveInvoice(invoiceData []byte) error

func (*RemoteConnection) ReceivePhonons

func (c *RemoteConnection) ReceivePhonons(PhononTransfer []byte) error

func (*RemoteConnection) VerifyPaired

func (c *RemoteConnection) VerifyPaired() error

Jump to

Keyboard shortcuts

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