Documentation ¶
Index ¶
- Constants
- type Info
- type Nexus
- func (s *Nexus) IsLayerMessage(message msg.MoneysocketMessage) bool
- func (s *Nexus) NotifyOpinionInvoice(bolt11, requestReferenceUUID string) error
- func (s *Nexus) NotifySellerNotReady(requestReferenceUUID string) error
- func (s *Nexus) OnBinMessage(belowNexus nexus.Nexus, msgBytes []byte)
- func (s *Nexus) OnMessage(baseNexus nexus.Nexus, message msg.MoneysocketMessage)
- func (s *Nexus) SellerNowReady()
- func (s *Nexus) SetHandleOpinionInvoiceRequest(invoiceRequest compat.HandleOpinionInvoiceRequest)
- func (s *Nexus) SetHandleSellerInfoRequest(handler func() Info)
- func (s *Nexus) UpdatePrices()
- func (s *Nexus) WaitForBuyer(sellerFinishedCb func(nexus.Nexus))
Constants ¶
View Source
const SellerNexusName = "SellerNexus"
SellerNexusName is the seller name.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Info ¶ added in v0.54.0
type Info 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"` }
Info seller message.
type Nexus ¶ added in v0.54.0
Nexus - SellerNexus handler.
func NewSellerNexus ¶
NewSellerNexus creates a nexus.
func (*Nexus) IsLayerMessage ¶ added in v0.54.0
func (s *Nexus) IsLayerMessage(message msg.MoneysocketMessage) bool
IsLayerMessage processes a layer message.
func (*Nexus) NotifyOpinionInvoice ¶ added in v0.54.0
NotifyOpinionInvoice notifies an invoice.
func (*Nexus) NotifySellerNotReady ¶ added in v0.54.0
NotifySellerNotReady notifies the seller is not ready.
func (*Nexus) OnBinMessage ¶ added in v0.54.0
OnBinMessage calls the on bin message callback.
func (*Nexus) OnMessage ¶ added in v0.54.0
func (s *Nexus) OnMessage(baseNexus nexus.Nexus, message msg.MoneysocketMessage)
OnMessage processes the message.
func (*Nexus) SellerNowReady ¶ added in v0.54.0
func (s *Nexus) SellerNowReady()
SellerNowReady notifies the seller is now ready.
func (*Nexus) SetHandleOpinionInvoiceRequest ¶ added in v0.54.0
func (s *Nexus) SetHandleOpinionInvoiceRequest(invoiceRequest compat.HandleOpinionInvoiceRequest)
SetHandleOpinionInvoiceRequest sets an invoice request.
func (*Nexus) SetHandleSellerInfoRequest ¶ added in v0.54.0
SetHandleSellerInfoRequest sets the info request.
func (*Nexus) UpdatePrices ¶ added in v0.54.0
func (s *Nexus) UpdatePrices()
UpdatePrices updates seller prices.
func (*Nexus) WaitForBuyer ¶ added in v0.54.0
WaitForBuyer initializes the sellerFinishedCb.
Click to show internal directories.
Click to hide internal directories.