keeltemporal

package
v0.10.6 Latest Latest
Warning

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

Go to latest
Published: May 18, 2022 License: MIT Imports: 22 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 Info

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

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

Types

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