Documentation ¶
Overview ¶
Package worker contains functions to manage lifecycle of a Cadence client side worker.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnableVerboseLogging ¶
func EnableVerboseLogging(enable bool)
EnableVerboseLogging enable or disable verbose logging of internal Cadence library components. Most customers don't need this feature, unless advised by the Cadence team member. Also there is no guarantee that this API is not going to change.
Types ¶
type Options ¶
type Options = internal.WorkerOptions
Options is used to configure a worker instance.
type Worker ¶
Worker represents objects that can be started and stopped.
func New ¶
func New( service workflowserviceclient.Interface, domain string, taskList string, options Options, ) Worker
New creates an instance of worker for managing workflow and activity executions. service - thrift connection to the cadence server. domain - the name of the cadence domain. taskList - is the task list name you use to identify your client worker, also
identifies group of workflow and activity implementations that are hosted by a single worker process.
options - configure any worker specific options like logger, metrics, identity.