JS API Reference

Class: WorkloadDemandDirector

market/demand/directors/workload-demand-director.WorkloadDemandDirector

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 WorkloadDemandDirector(config): WorkloadDemandDirector

Parameters

NameType
configWorkloadDemandDirectorConfig

Returns

WorkloadDemandDirector

Defined in

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

Methods

apply

apply(builder): Promise<void>

Parameters

NameType
builderDemandBodyBuilder

Returns

Promise<void>

Implementation of

IDemandDirector.apply

Defined in

src/market/demand/directors/workload-demand-director.ts:10

Was this helpful?