common

package
v0.15.1 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewParallelListenerManagerProvider

func NewParallelListenerManagerProvider[V comparable](provider driver.ListenerManagerProvider[V]) *parallelListenerManagerProvider[V]

func NewPublicParamsFetcher

func NewPublicParamsFetcher(fetcher Fetcher, namespace string) *publicParamsFetcher

Types

type Configuration

type Configuration interface {
	// LookupNamespace searches for a TMS configuration that matches the given network and channel, and
	// return its namespace.
	// If no matching configuration is found, an error is returned.
	// If multiple matching configurations are found, an error is returned.
	LookupNamespace(network, channel string) (string, error)

	// ConfigurationFor returns the configuration for the given coordinates
	ConfigurationFor(network, channel, namespace string) (*config.Configuration, error)
}

Configuration models the configuration provider

type Fetcher

type Fetcher interface {
	FetchPublicParameters(namespace string) ([]byte, error)
}

Directories

Path Synopsis
rws
translator/mock
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