JS API Reference

Class: BasicDemandDirector

market/demand/directors/basic-demand-director.BasicDemandDirector

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.

Implements

Table of contents

Constructors

Methods

Constructors

constructor

new BasicDemandDirector(config?): BasicDemandDirector

Parameters

NameType
configBasicDemandDirectorConfig

Returns

BasicDemandDirector

Defined in

src/market/demand/directors/basic-demand-director.ts:6

Methods

apply

apply(builder): void

Parameters

NameType
builderDemandBodyBuilder

Returns

void

Implementation of

IDemandDirector.apply

Defined in

src/market/demand/directors/basic-demand-director.ts:8

Was this helpful?