seller

package
v0.60.0 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 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 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"`
}

seller info message

type Nexus added in v0.54.0

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

func NewSellerNexus

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

func (*Nexus) IsLayerMessage added in v0.54.0

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

func (*Nexus) NotifyOpinionInvoice added in v0.54.0

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

func (*Nexus) NotifySellerNotReady added in v0.54.0

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

func (*Nexus) OnBinMessage added in v0.54.0

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

func (*Nexus) OnMessage added in v0.54.0

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

func (*Nexus) SellerNowReady added in v0.54.0

func (s *Nexus) SellerNowReady()

func (*Nexus) SetHandleOpinionInvoiceRequest added in v0.54.0

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

func (*Nexus) SetHandleSellerInfoRequest added in v0.54.0

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

func (*Nexus) UpdatePrices added in v0.54.0

func (s *Nexus) UpdatePrices()

func (*Nexus) WaitForBuyer added in v0.54.0

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

Jump to

Keyboard shortcuts

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