Documentation ¶
Index ¶
- func Debug(ctx workflow.Context, msg string, fields ...zap.Field)
- func Error(ctx workflow.Context, err error, msg string, fields ...zap.Field)
- func Info(ctx workflow.Context, msg string, fields ...zap.Field)
- func NewClient(ctx context.Context, endpoint string, opts ...ClientOption) (client.Client, error)
- func NewLogger(l *zap.Logger) *logger
- func NewMetricsHandler(meter metric.MeterMust) client.MetricsHandler
- func NewService(name string, w worker.Worker) *service
- func NewTestService(name string, w worker.Worker) *test
- type ClientOption
- type ClientOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMetricsHandler ¶
func NewMetricsHandler(meter metric.MeterMust) client.MetricsHandler
scope, _ := tally.NewRootScope(opts, time.Second)
func NewService ¶
func NewTestService ¶
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
Click to show internal directories.
Click to hide internal directories.