Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetGatewayConnection ¶
func GetGatewayConnection(service GwServiceType, hwId string) (*grpc.ClientConn, context.Context, error)
GetGatewayConnection gets a connection to the SyncRPC HTTP server who can forward the message to the corresponding gateway.
Returns a connection and a context that should be based on for rpc calls on this connection. The context will put the Gatewayid in its metadata, which will be surfaced as HTTP/2 headers.
func GetServiceAddressForGateway ¶
GetServiceAddressForGateway returns the ip addr for the SyncRPCHTTPServer instance, which is in the same process of the Dispatcher grpc server who has an open bidirectional stream with the gateway with hwId.
Types ¶
type GwServiceType ¶
type GwServiceType string
const ( // Gateway services GwMobilityd GwServiceType = "mobilityd" GwMagmad GwServiceType = "magmad" GwEnodebd GwServiceType = "enodebd" GwPipelined GwServiceType = "pipelined" GwSubscriberDB GwServiceType = "subscriberdb" GwS6aService GwServiceType = "s6a_service" GwSgsService GwServiceType = "sgs_service" GwSessiondService GwServiceType = "sessiond" GwSpgwService GwServiceType = "spgw_service" GwAbortSessionService GwServiceType = "abort_session_service" GwAAAService GwServiceType = "aaa_server" // SyncRPC gateway header key GatewayIdHeaderKey = "Gatewayid" HttpServerAddressPort = 9080 )
func ListAllGwServices ¶
func ListAllGwServices() []GwServiceType
Click to show internal directories.
Click to hide internal directories.