registry

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Registry

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

Registry is the relayer's watch list registry. It contains a list of addresses, and the relayer only works with interchain queries that are under these addresses' ownership.

func New

func New(cfg *RegistryConfig) *Registry

New instantiates a new *Registry based on the cfg.

func (*Registry) Contains

func (r *Registry) Contains(addr string) bool

Contains returns true if the addr is in the registry.

func (*Registry) GetAddresses

func (r *Registry) GetAddresses() []string

func (*Registry) IsEmpty

func (r *Registry) IsEmpty() bool

IsEmpty returns true if the registry addresses list is empty.

type RegistryConfig

type RegistryConfig struct {
	Addresses []string
}

RegistryConfig represents the config structure for the Registry.

Jump to

Keyboard shortcuts

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