clientregistry

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: Apache-2.0 Imports: 6 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 client version factory registry.

func New

func New() *Registry

New returns a new client version factory Registry.

func (*Registry) CreateClientVersion

func (r *Registry) CreateClientVersion(version string, config *common.ProtocolConfig) (protocol.Version, error)

CreateClientVersion creates a new client version using the given version and providers.

func (*Registry) Register

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

Register registers a client 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