package
0.1.3
Repository: https://github.com/tdex-network/tor-proxy.git
Documentation: pkg.go.dev

# Functions

getRegistry will check if the given string is a) a JSON by itself b) if is a path to a file c) remote url.
Observe the registry for changes returns json bytes and errors via channels.

# Constants

No description provided by the author
No description provided by the author

# Structs

ConstantRegistry is a registry that always returns the same JSON value it can be created from a JSON string or from a file path.
No description provided by the author
RemoteRegistry represents a registry that is fetched from a remote URL it can be created from a valid URL returning the JSON value on http GET request.

# Interfaces

Registry is the interface for the JSON registry It is used to get the JSON bytes representing a set of endpoints to redirects.

# Type aliases

RegistryType is an enum-like type that represents the type of registry useful to conditionally observe the registry according to its type.