JS API Reference

Interface: IDemandDirector

market/market.module.IDemandDirector

Represents a director that can instruct DemandDetailsBuilder

Demand is a complex concept in Golem. Requestors can place arbitrary properties and constraints on such market entity. While the demand request on the Golem Protocol level is a flat list of properties (key, value) and constraints, from the Requestor side they form logical groups that make sense together.

The idea behind Directors is that you can encapsulate this grouping knowledge along with validation logic etc to prepare all the final demand request body properties in a more controlled and organized manner.

Implemented by

Table of contents

Methods

Methods

apply

apply(builder): void | Promise<void>

Parameters

NameType
builderDemandBodyBuilder

Returns

void | Promise<void>

Defined in

src/market/market.module.ts:232