Documentation
¶
Index ¶
- func ContextWithTestLogConfig(ctx context.Context, config TestLogConfig) context.Context
- func NewClient(ctx context.Context, logger log.Logger, hostPort string, namespace string) (client.Client, error)
- func NewWorkerLogInterceptor(logger log.Logger, publisher LogPublisher) interceptor.WorkerInterceptor
- func WorkflowContextWithTestLogConfig(ctx workflow.Context, config TestLogConfig) workflow.Context
- type CaseOption
- type Level
- type LogPublisher
- type Logger
- type TestActivityLogger
- type TestLogActivity
- type TestLogConfig
- type TestLogRequest
- type TestLogResponse
- type TestWorkflowLogger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContextWithTestLogConfig ¶
func ContextWithTestLogConfig(ctx context.Context, config TestLogConfig) context.Context
func NewWorkerLogInterceptor ¶
func NewWorkerLogInterceptor(logger log.Logger, publisher LogPublisher) interceptor.WorkerInterceptor
func WorkflowContextWithTestLogConfig ¶
func WorkflowContextWithTestLogConfig(ctx workflow.Context, config TestLogConfig) workflow.Context
Types ¶
type CaseOption ¶
type CaseOption func(logger *TestActivityLogger)
func WithCaseExecID ¶
func WithCaseExecID(caseExecID test.CaseExecutionID) CaseOption
type LogPublisher ¶
type TestActivityLogger ¶
type TestActivityLogger struct { *Logger // contains filtered or unexported fields }
func NewTestActivityLogger ¶
func NewTestActivityLogger(logger log.Logger, pub LogPublisher, testExecID test.TestExecutionID, opts ...CaseOption) *TestActivityLogger
func (*TestActivityLogger) Debug ¶
func (l *TestActivityLogger) Debug(msg string, keyvals ...any)
func (*TestActivityLogger) Error ¶
func (l *TestActivityLogger) Error(msg string, keyvals ...any)
func (*TestActivityLogger) Info ¶
func (l *TestActivityLogger) Info(msg string, keyvals ...any)
func (*TestActivityLogger) Warn ¶
func (l *TestActivityLogger) Warn(msg string, keyvals ...any)
type TestLogActivity ¶
type TestLogActivity struct {
// contains filtered or unexported fields
}
TestLogActivity is used to publish test logs from a workflow. This must be executed as a local activity to minimize the number of workflow events.
func NewTestLogActivity ¶
func NewTestLogActivity(pub LogPublisher) *TestLogActivity
func (*TestLogActivity) Publish ¶
func (t *TestLogActivity) Publish(ctx context.Context, req TestLogRequest) (*TestLogResponse, error)
type TestLogConfig ¶
type TestLogConfig struct { TestExecID test.TestExecutionID CaseExecID *test.CaseExecutionID }
func TestLogConfigFromContext ¶
func TestLogConfigFromContext(ctx context.Context) (TestLogConfig, bool)
func TestLogConfigFromWorkflowContext ¶
func TestLogConfigFromWorkflowContext(ctx workflow.Context) (TestLogConfig, bool)
type TestLogRequest ¶
type TestLogResponse ¶
type TestWorkflowLogger ¶
type TestWorkflowLogger struct { *Logger // contains filtered or unexported fields }
func NewTestWorkflowLogger ¶
func NewTestWorkflowLogger(ctx workflow.Context, logger log.Logger, testExecID test.TestExecutionID) *TestWorkflowLogger
func (*TestWorkflowLogger) Debug ¶
func (l *TestWorkflowLogger) Debug(msg string, keyvals ...any)
func (*TestWorkflowLogger) Error ¶
func (l *TestWorkflowLogger) Error(msg string, keyvals ...any)
func (*TestWorkflowLogger) Info ¶
func (l *TestWorkflowLogger) Info(msg string, keyvals ...any)
func (*TestWorkflowLogger) Warn ¶
func (l *TestWorkflowLogger) Warn(msg string, keyvals ...any)
Click to show internal directories.
Click to hide internal directories.