Documentation ¶
Index ¶
- Variables
- type RemoteConnection
- func (c *RemoteConnection) CardPair(initPairingData []byte) (cardPairData []byte, err error)
- func (c *RemoteConnection) CardPair2(cardPairData []byte) (cardPairData2 []byte, err error)
- func (c *RemoteConnection) ConnectToCard(cardID string) error
- func (c *RemoteConnection) FinalizeCardPair(cardPair2Data []byte) error
- func (c *RemoteConnection) GenerateInvoice() (invoiceData []byte, err error)
- func (c *RemoteConnection) GetCertificate() (*cert.CardCertificate, error)
- func (c *RemoteConnection) HandleIncoming()
- func (c *RemoteConnection) Identify() error
- func (c *RemoteConnection) PairingStatus() model.RemotePairingStatus
- func (c *RemoteConnection) ReceiveInvoice(invoiceData []byte) error
- func (c *RemoteConnection) ReceivePhonons(PhononTransfer []byte) error
- func (c *RemoteConnection) VerifyPaired() error
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
Click to show internal directories.
Click to hide internal directories.