Package dev.gmitch215.bytebox.gradle
Class WranglerSpec
java.lang.Object
dev.gmitch215.bytebox.gradle.WranglerSpec
The
wrangler { } block: what goes into the generated configuration.- Since:
- 1.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcompatibilityFlags(String... flags) Adds compatibility flags.voidAdds Cron Triggers.abstract org.gradle.api.provider.Property<String> Returns the compatibility date.abstract org.gradle.api.provider.ListProperty<String> Returns the compatibility flags.abstract org.gradle.api.provider.ListProperty<String> getCrons()Returns the Cron Triggers that fire it.abstract org.gradle.api.provider.Property<String> getName()Returns the Worker's name.abstract org.gradle.api.provider.Property<Boolean> Returns whether to send logs to Cloudflare's observability.abstract org.gradle.api.provider.ListProperty<String> Returns the routes this Worker answers on.abstract org.gradle.api.provider.ListProperty<String> Returns the Workers this one sends its logs to.voidAdds routes.voidtailConsumers(String... workers) Adds tail consumers.
-
Constructor Details
-
WranglerSpec
public WranglerSpec()
-
-
Method Details
-
getName
Returns the Worker's name.- Returns:
- the Worker's name
-
getCompatibilityDate
Returns the compatibility date.Validated at build time for format and for a real calendar date, and checked against the installed Wrangler by
buildWorker, which is the only thing that knows which dates its runtime supports.- Returns:
- the compatibility date
-
getCompatibilityFlags
Returns the compatibility flags.- Returns:
- the compatibility flags
-
getRoutes
Returns the routes this Worker answers on.- Returns:
- the routes this Worker answers on
-
getCrons
Returns the Cron Triggers that fire it.- Returns:
- the Cron Triggers that fire it
-
getTailConsumers
Returns the Workers this one sends its logs to.- Returns:
- the Workers this one sends its logs to
-
getObservability
Returns whether to send logs to Cloudflare's observability.- Returns:
- whether to send logs to Cloudflare's observability
-
routes
Adds routes.- Parameters:
routes- the routes
-
crons
Adds Cron Triggers.An account gets 5 on the free plan and 250 on paid, counted across every Worker rather than per Worker.
- Parameters:
crons- the cron expressions
-
compatibilityFlags
Adds compatibility flags.- Parameters:
flags- the flags
-
tailConsumers
Adds tail consumers.- Parameters:
workers- the Workers to send logs to
-