nsprovider

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: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientVersionProvider

type ClientVersionProvider interface {
	// Current returns latest client version.
	Current() (protocol.Version, error)

	// Get returns the client version at the given transaction time.
	Get(transactionTime uint64) (protocol.Version, error)
}

ClientVersionProvider defines interface for accessing protocol version information.

type Provider

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

Provider implements client version provider per namespace.

func New

func New() *Provider

New creates new client version provider per namespace.

func (*Provider) Add

func (m *Provider) Add(namespace string, cvp ClientVersionProvider)

Add adds client version provider for namespace.

func (*Provider) ForNamespace

func (m *Provider) ForNamespace(namespace string) (ClientVersionProvider, error)

ForNamespace will return client version provider for that namespace.

Jump to

Keyboard shortcuts

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