Documentation ¶
Index ¶
Constants ¶
View Source
const NeighborOfferBaseEndpoint = baseEndpoint + "/neighbor/offer"
View Source
const OfferBaseEndpoint = baseEndpoint + "/offer"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Discovery ¶
type Discovery interface { CreateOffer(ctx context.Context, fromNode, toNode *types.Node, offer *types.Offer) RefreshOffer(ctx context.Context, fromTrader *types.Node, offer *types.Offer) bool UpdateOffer(ctx context.Context, fromSupplier, toTrader *types.Node, offer *types.Offer) RemoveOffer(ctx context.Context, fromSupp, toTrader *types.Node, offer *types.Offer) GetOffers(ctx context.Context, fromNode, toTrader *types.Node, relay bool) []types.AvailableOffer AdvertiseOffersNeighbor(ctx context.Context, fromTrader, toNeighborTrader, traderOffering *types.Node) }
Discovery API necessary to forward the REST calls
Click to show internal directories.
Click to hide internal directories.