Documentation
¶
Overview ¶
Package prism contains a local runner for running pipelines in the current process. Useful for testing.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateJobServer ¶ added in v2.49.0
CreateJobServer returns a Beam JobServicesClient connected to an in memory JobServer. This call is non-blocking.
func CreateWebServer ¶ added in v2.49.0
CreateWebServer initialises the web UI for prism against the given JobsServiceClient. This call is blocking.
Types ¶
type Options ¶ added in v2.49.0
type Options struct { // Port the Job Management Server should start on. Port int // The time prism will wait for new jobs before shuting itself down. IdleShutdownTimeout time.Duration // CancelFn allows Prism to terminate the program due to it's internal state, such as via the idle shutdown timeout. // If unset, os.Exit(1) will be called instead. CancelFn context.CancelCauseFunc }
Options for in process server creation.
Directories
¶
Path | Synopsis |
---|---|
Package internal is where the less separable parts of the runner are put together in order to execute pipelines, and validate that beam features are implemented, and configured appropriately for the variant a pipeline is using.
|
Package internal is where the less separable parts of the runner are put together in order to execute pipelines, and validate that beam features are implemented, and configured appropriately for the variant a pipeline is using. |
config
Package config defines and handles the parsing and provision of configurations for the runner.
|
Package config defines and handles the parsing and provision of configurations for the runner. |
engine
Package engine handles the operational components of a runner, to track elements, watermarks, timers, triggers etc
|
Package engine handles the operational components of a runner, to track elements, watermarks, timers, triggers etc |
jobservices
Package jobservices handles services necessary WRT handling jobs from SDKs.
|
Package jobservices handles services necessary WRT handling jobs from SDKs. |
urns
Package urns handles extracting urns from all the protos.
|
Package urns handles extracting urns from all the protos. |
web
Package web serves a web UI for Prism.
|
Package web serves a web UI for Prism. |
worker
Package worker handles interactions with SDK side workers, representing the worker services, communicating with those services, and SDK environments.
|
Package worker handles interactions with SDK side workers, representing the worker services, communicating with those services, and SDK environments. |
Click to show internal directories.
Click to hide internal directories.