cadence

package
v0.14.1 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

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.

func RegisterActivity

func RegisterActivity(activityFunc interface{}, name string)

func RegisterWorkflow

func RegisterWorkflow(workflowFunc interface{}, name string)

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