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
Name | Type |
---|---|
config | WorkloadDemandDirectorConfig |
Returns
Defined in
src/market/demand/directors/workload-demand-director.ts:8
Methods
apply
▸ apply(builder
): Promise
<void
>
Parameters
Name | Type |
---|---|
builder | DemandBodyBuilder |
Returns
Promise
<void
>
Implementation of
Defined in
Was this helpful?