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.
Click to show internal directories.
Click to hide internal directories.