provider

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrUnknownScheme is the error for unknown archiver scheme
	ErrUnknownScheme = errors.New("unknown archiver scheme")
)

Functions

This section is empty.

Types

type HistoryArchiverConfigs

type HistoryArchiverConfigs struct {
	FileStore *filestore.HistoryArchiverConfig
}

HistoryArchiverConfigs contain config for all implementations of the HistoryArchiver interface

type Provider

type Provider interface {
	GetHistoryArchiver(scheme string, serviceName string, tags ...tag.Tag) (archiver.HistoryArchiver, error)
	GetVisibilityArchiver(scheme string, serviceName string, tags ...tag.Tag) (archiver.VisibilityArchiver, error)
}

Provider returns history or visiblity archiver based on the scheme and serviceName. The archiver for each combination of scheme and serviceName will be created only once and cached.

func NewArchiverProvider

func NewArchiverProvider(
	historyContainer *archiver.HistoryBootstrapContainer,
	visibilityContainer *archiver.VisibilityBootstrapContainer,
	historyArchiverConfigs *HistoryArchiverConfigs,
	visibilityArchiverConfigs *VisibilityArchiverConfigs,
) Provider

NewArchiverProvider returns a new Archiver provider

type VisibilityArchiverConfigs

type VisibilityArchiverConfigs struct {
	FileStore *filestore.VisibilityArchiverConfig
}

VisibilityArchiverConfigs contain config for all implementations of the VisibilityArchiver interface

Jump to

Keyboard shortcuts

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