registry

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2022 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 watch list registry. It contains a list of addresses, and the relayer relays only works with interchain queries registered by these addresses.

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