factoryregistry

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// V1_0 ...
	V1_0 = "1.0"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Registry

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

Registry implements a protocol version factory registry.

func New

func New() *Registry

New returns a new protocol version factory Registry.

func (*Registry) CreateProtocolVersion

func (r *Registry) CreateProtocolVersion(version string, casClient cas.Client, casResolver ctxcommon.CASResolver,
	opStore ctxcommon.OperationStore, provider storage.Provider,
	sidetreeCfg *config.Sidetree, metrics metricsProvider.Metrics,
) (protocol.Version, error)

CreateProtocolVersion creates a new protocol version using the given version and providers.

func (*Registry) Register

func (r *Registry) Register(version string, factory factory)

Register registers a protocol factory for a given version.

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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