cadence

package
v0.30.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 13, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package cadence provide some utilities to interact with Cadence.

Index

Constants

View Source
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"
)

Variables

This section is empty.

Functions

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.

Types

type Config

type Config struct {
	Domain  string
	Address string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL