gateway

command
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2021 License: MIT Imports: 39 Imported by: 0

Documentation

Overview

ipc_manager.go handles messages between gateway and the following other processes:

  • vic-engine: There are both a CLAD (EngineCladIpcManager) and a Protobuf (EngineProtoIpcManager) domain socket connecting gateway to the engine. The CLAD socket is currently in the process of being deprecated because it was designed as a temporary connection while messages were converted to Protobuf.
  • vic-switchboard: There is a CLAD domain socket connecting gateway to switchboard. This socket is used to coordinate authentication between the two processes.
  • vic-cloud: There is a CLAD domain socket connecting gateway to vic-cloud. This socket is used to refresh the latest authentication tokens from vic-cloud. This socket is defined inside the tokens.go file because the properties of that socket are a special case.

To add a new connection, add the domain socket name (as defined by the server) to the list of consts below. And create a new IpcManager struct for that given socket. In main.go the connection should be Init-ed. Then it will be ready to use.

Jump to

Keyboard shortcuts

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