package
1.2.1
Repository: https://github.com/go-magma/magma.git
Documentation: pkg.go.dev

# Functions

AddService add a new service to global registry.
AddServices adds new services to the global registry.
FindServices returns the names of all registered services that have the passed label.
Get returns a reference to the instance of global platform registry.
GetAnnotation returns the annotation value for the passed annotation name.
GetAnnotationList returns the comma-split fields of the value for the passed annotation name.
GetClientConnection provides a gRPC connection to a service on the address addr.
GetConnection provides a gRPC connection to a service in the registry.
No description provided by the author
GetEchoServerPort returns the listening port for the service's echo server.
GetServiceAddress returns the RPC address of the service from global registry The service needs to be added to the registry before this.
GetServicePort returns the listening port for the RPC service.
GetServiceProxyAliases returns the proxy_aliases, if any, of the service from global registry The service needs to be added to the registry before this.
GetSharedCloudConnectionTTL atomically gets and returns current Shared Cloud Connection TTL value.
ListAllServices lists all services' names from global registry.
ListControllerServices list all services that should run on a controller instances This is a comma separated list in an env var named CONTROLLER_SERVICES.
LoadServiceRegistryConfig reads service registry config file from /etc/magma/configs/{moduleName} or override config.
LoadServiceRegistryConfigs reads service registry config file from all modules under /etc/magma/configs/.
MustPopulateServices is same as PopulateServices but fails on errors.
New creates and returns a new registry.
PopulateServices populates the service registry based on the per-module config files at /etc/magma/configs/MODULE_NAME/service_registry.yml.
RemoveService removes a service from the registry.
RemoveServicesWithLabel removes all services from the registry which have the passed label.
SetSharedCloudConnectionTTL atomically sets Shared Cloud Connection TTL Note: the new TTL will apply only to newly created connections, existing cached connections will not be affected.

# Constants

No description provided by the author
DefaultSharedCloudConnectionTTL - default duration to reuse the same connection.
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

ServiceLocation is an entry for the service registry which identifies a service by name and the host:port that it is running on.
No description provided by the author