Back to

Package cadence

Latest Go to latest

The highest tagged major version is .

Published: Aug 13, 2020 | License: Apache-2.0 | Module:


Package cadence provide some utilities to interact with Cadence.



const (
	// This is the task list name we use to identify our global client worker.
	// It also identifies the group of workflow and activity implementations
	// that are hosted by a single worker process.
	GlobalTaskListName = "global"

func FirstHistoryEvent

func FirstHistoryEvent(ctx context.Context, cc client.Client, exec *shared.WorkflowExecution) (event *shared.HistoryEvent, err error)

func HistoryEvents

func HistoryEvents(ctx context.Context, cc client.Client, exec *shared.WorkflowExecution, poll bool) ([]*shared.HistoryEvent, error)

func NewDomainClient

func NewDomainClient(logger *zap.Logger, appName string, config Config) (client.DomainClient, error)

NewDomainClient returns a Cadence Domain client.

func NewWorker

func NewWorker(logger *zap.Logger, appName string, config Config) (worker.Worker, error)

func NewWorkflowClient

func NewWorkflowClient(logger *zap.Logger, appName string, config Config) (client.Client, error)

NewWorkflowClient returns a new Cadence client.

type Config

type Config struct {
	Domain  string
	Address string

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier