Documentation ¶
Index ¶
- type Layer
- func (s *Layer) AnnounceNexus(belowNexus nexus.Nexus)
- func (s *Layer) HandleOpinionInvoiceRequest(nx nexus.Nexus, itemID string, requestUUID string)
- func (s *Layer) NexusWaitingForApp(seed *beacon.SharedSeed, sellerNexus nexus.Nexus)
- func (s *Layer) RegisterAboveLayer(belowLayer layer.Base)
- func (s *Layer) SellerNowReadyFromApp()
- func (s *Layer) SetHandleOpinionInvoiceRequest(request compat.HandleOpinionInvoiceRequest)
- func (s *Layer) SetHandleSellerInfoRequest(handler func() seller.Info)
- func (s *Layer) SetupSellerNexus(belowNexus nexus.Nexus) *seller.Nexus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Layer ¶ added in v0.54.0
type Layer struct { layer.BaseLayer // nexuses's we're waiting to initialize WaitingForApp compat.WaitingForApp NexusBySharedSeed compat.NexusBySharedSeed // the seller nexus object SellerNexus *seller.Nexus // contains filtered or unexported fields }
Layer is meant to simulate the seller layer in the js seller app this struct should not be initialized directly, the NewSellerLayer() method below should be used instead.
func (*Layer) AnnounceNexus ¶ added in v0.54.0
AnnounceNexus creates a new SellerNexus and registers it also registers the sellerFinished callback.
func (*Layer) HandleOpinionInvoiceRequest ¶ added in v0.54.0
HandleOpinionInvoiceRequest calls the client supplied handleOpinionInvoiceRequest method if present.
func (*Layer) NexusWaitingForApp ¶ added in v0.54.0
func (s *Layer) NexusWaitingForApp(seed *beacon.SharedSeed, sellerNexus nexus.Nexus)
NexusWaitingForApp sets the seller's status to waiting.
func (*Layer) RegisterAboveLayer ¶ added in v0.54.0
RegisterAboveLayer registers the current nexuses announce/revoke nexuses to the below layer.
func (*Layer) SellerNowReadyFromApp ¶ added in v0.54.0
func (s *Layer) SellerNowReadyFromApp()
SellerNowReadyFromApp sets the seller's status to ready (open store).
func (*Layer) SetHandleOpinionInvoiceRequest ¶ added in v0.54.0
func (s *Layer) SetHandleOpinionInvoiceRequest(request compat.HandleOpinionInvoiceRequest)
SetHandleOpinionInvoiceRequest sets the client supplied handleOpinionInvoiceRequest method. This method is null by default.
func (*Layer) SetHandleSellerInfoRequest ¶ added in v0.54.0
SetHandleSellerInfoRequest sets the client supplied handleSellerInfoRequest method. This method is null by default.