registry

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2020 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ModuleName = "feg"

	CONTROL_PROXY = "CONTROL_PROXY"
	S6A_PROXY     = "S6A_PROXY"
	SESSION_PROXY = "SESSION_PROXY"
	SWX_PROXY     = "SWX_PROXY"
	HLR_PROXY     = "HLR_PROXY"
	HEALTH        = "HEALTH"
	CSFB          = "CSFB"
	FEG_HELLO     = "FEG_HELLO"
	AAA_SERVER    = "AAA_SERVER"
	EAP           = "EAP"
	EAP_AKA       = "EAP_AKA"
	RADIUSD       = "RADIUSD"
	RADIUS        = "RADIUS"
	REDIS         = "REDIS"
	PIPELINED     = "PIPELINED"
	MOCK_VLR      = "MOCK_VLR"
	MOCK_OCS      = "MOCK_OCS"
	MOCK_OCS2     = "MOCK_OCS2"
	MOCK_PCRF     = "MOCK_PCRF"
	MOCK_PCRF2    = "MOCK_PCRF2"
	MOCK_HSS      = "HSS"

	SESSION_MANAGER = "SESSIOND"
)

Variables

This section is empty.

Functions

func AddService

func AddService(serviceType, host string, port int)

Add a new service. If the service already exists, overwrites the service config.

func Get

Get returns a singleton of gateway's registry

func GetConnection

func GetConnection(service string) (*grpc.ClientConn, error)

Provides a gRPC connection to a service in the registry.

func GetServiceAddress

func GetServiceAddress(service string) (string, error)

Returns the RPC address of the service. The service needs to be added to the registry before this.

Types

This section is empty.

Jump to

Keyboard shortcuts

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