seller

package
v0.82.0 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

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

type Nexus struct {
	*base.NexusBase
	// contains filtered or unexported fields
}

Nexus - SellerNexus handler.

func NewSellerNexus

func NewSellerNexus(belowNexus nexus.Nexus, layer layer.Base) *Nexus

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

func (s *Nexus) NotifyOpinionInvoice(bolt11, requestReferenceUUID string) error

NotifyOpinionInvoice notifies an invoice.

func (*Nexus) NotifySellerNotReady added in v0.54.0

func (s *Nexus) NotifySellerNotReady(requestReferenceUUID string) error

NotifySellerNotReady notifies the seller is not ready.

func (*Nexus) OnBinMessage added in v0.54.0

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

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

func (s *Nexus) SetHandleSellerInfoRequest(handler func() Info)

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

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

WaitForBuyer initializes the sellerFinishedCb.

Jump to

Keyboard shortcuts

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