factory

package
v0.0.0-...-cf31420 Latest Latest
Warning

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

Go to latest
Published: May 26, 2023 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Factory

type Factory interface {
	TemporalClient(ctx context.Context, hostPort string) (client.Client, error)
	ArtifactClient(ctx context.Context, connectionString string) (artifactservice.ArtifactServiceClient, error)
}

func New

func New(opts ...OptionsFunc) Factory

type OptionsFunc

type OptionsFunc func(*RetryFactory)

func WithLogger

func WithLogger(logger logger.Logger) OptionsFunc

func WithMaxRetries

func WithMaxRetries(maxRetries int) OptionsFunc

func WithMaxTotalTime

func WithMaxTotalTime(maxTotalTime time.Duration) OptionsFunc

func WithRetryInterval

func WithRetryInterval(retryInterval time.Duration) OptionsFunc

type RetryFactory

type RetryFactory struct {
	// contains filtered or unexported fields
}

func (*RetryFactory) ArtifactClient

func (f *RetryFactory) ArtifactClient(ctx context.Context, connectionString string) (artifactservice.ArtifactServiceClient, error)

func (*RetryFactory) TemporalClient

func (f *RetryFactory) TemporalClient(ctx context.Context, hostPort string) (client.Client, error)

Jump to

Keyboard shortcuts

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