keeltemporal

package
v0.10.17 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2022 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(ctx workflow.Context, msg string, fields ...zap.Field)

func Error

func Error(ctx workflow.Context, err error, msg string, fields ...zap.Field)

func GetActivityLogger added in v0.10.12

func GetActivityLogger(ctx context.Context) tlog.Logger

func GetWorkflowLogger added in v0.10.12

func GetWorkflowLogger(ctx workflow.Context) tlog.Logger

func Info

func Info(ctx workflow.Context, msg string, fields ...zap.Field)

func LoggerWith added in v0.10.12

func LoggerWith(logger tlog.Logger, fields ...zap.Field) tlog.Logger

func NewClient added in v0.8.2

func NewClient(ctx context.Context, endpoint string, opts ...ClientOption) (client.Client, error)

func NewLogger

func NewLogger(l *zap.Logger) *logger

func NewMetricsHandler

func NewMetricsHandler(meter metric.Meter) client.MetricsHandler

scope, _ := tally.NewRootScope(opts, time.Second)

func NewService

func NewService(l *zap.Logger, name string, w worker.Worker) *service

func NewTestService

func NewTestService(name string, w worker.Worker) *test

func WithActivityOptions added in v0.10.12

func WithActivityOptions(ctx workflow.Context, opts ...ActivityOption) workflow.Context

Types

type ActivityOption added in v0.10.12

type ActivityOption func(options *workflow.ActivityOptions)

func ActivityOptionsWithActivityID added in v0.10.12

func ActivityOptionsWithActivityID(v string) ActivityOption

func ActivityOptionsWithHeartbeatTimeout added in v0.10.12

func ActivityOptionsWithHeartbeatTimeout(v time.Duration) ActivityOption

func ActivityOptionsWithRetryPolicy added in v0.10.12

func ActivityOptionsWithRetryPolicy(v *temporal.RetryPolicy) ActivityOption

func ActivityOptionsWithScheduleToCloseTimeout added in v0.10.12

func ActivityOptionsWithScheduleToCloseTimeout(v time.Duration) ActivityOption

func ActivityOptionsWithScheduleToStartTimeout added in v0.10.12

func ActivityOptionsWithScheduleToStartTimeout(v time.Duration) ActivityOption

func ActivityOptionsWithStartToCloseTimeout added in v0.10.12

func ActivityOptionsWithStartToCloseTimeout(v time.Duration) ActivityOption

func ActivityOptionsWithTaskQueue added in v0.10.12

func ActivityOptionsWithTaskQueue(v string) ActivityOption

func ActivityOptionsWithWaitForCancellation added in v0.10.12

func ActivityOptionsWithWaitForCancellation(v bool) ActivityOption

type ClientOption added in v0.8.2

type ClientOption func(o *ClientOptions)

func ClientWithNamespace added in v0.8.2

func ClientWithNamespace(v string) ClientOption

func ClientWithOtelEnabled added in v0.8.2

func ClientWithOtelEnabled(v bool) ClientOption

func ClientWithRegisterNamespace added in v0.8.2

func ClientWithRegisterNamespace(v *workflowservice.RegisterNamespaceRequest) ClientOption

type ClientOptions added in v0.8.2

type ClientOptions struct {
	Logger            *zap.Logger
	Namespace         string
	RegisterNamespace *workflowservice.RegisterNamespaceRequest
	OtelEnabled       bool
}

func DefaultClientOptions added in v0.8.2

func DefaultClientOptions() ClientOptions

Jump to

Keyboard shortcuts

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