seller

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const SellerNexusName = "SellerNexus"

Variables

This section is empty.

Functions

This section is empty.

Types

type SellerInfo

type SellerInfo struct {
	// wether or not the seller is ready
	Ready bool `json:"ready"`
	// wether or not the uuid works
	SellerUUID string              `json:"seller_uuid"`
	Items      []notification.Item `json:"items"`
}

seller info message

type SellerNexus

type SellerNexus struct {
	*base.BaseNexus
	// contains filtered or unexported fields
}

func NewSellerNexus

func NewSellerNexus(belowNexus nexus.Nexus, layer layer.Layer) SellerNexus

func (*SellerNexus) IsLayerMessage

func (s *SellerNexus) IsLayerMessage(message msg.MoneysocketMessage) bool

func (*SellerNexus) NotifyOpinionInvoice

func (s *SellerNexus) NotifyOpinionInvoice(bolt11, requestReferenceUuid string) error

func (*SellerNexus) NotifySellerNotReady

func (s *SellerNexus) NotifySellerNotReady(requestReferenceUuid string) error

func (*SellerNexus) OnBinMessage

func (s *SellerNexus) OnBinMessage(belowNexus nexus.Nexus, msgBytes []byte)

func (*SellerNexus) OnMessage

func (s *SellerNexus) OnMessage(baseNexus nexus.Nexus, message msg.MoneysocketMessage)

func (*SellerNexus) SellerNowReady

func (s *SellerNexus) SellerNowReady()

func (*SellerNexus) SetHandleOpinionInvoiceRequest

func (s *SellerNexus) SetHandleOpinionInvoiceRequest(invoiceRequest compat.HandleOpinionInvoiceRequest)

func (*SellerNexus) SetHandleSellerInfoRequest

func (s *SellerNexus) SetHandleSellerInfoRequest(handler func() SellerInfo)

func (*SellerNexus) UpdatePrices

func (s *SellerNexus) UpdatePrices()

func (*SellerNexus) WaitForBuyer

func (s *SellerNexus) WaitForBuyer(sellerFinishedCb func(nexus.Nexus))

Jump to

Keyboard shortcuts

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