1
0
mirror of https://github.com/ManyakRus/image_connections.git synced 2024-11-21 05:05:48 +02:00
Go to file
2024-06-21 14:14:34 +03:00
bin сделал mssql 2024-06-21 14:14:28 +03:00
cmd новый 2023-08-28 14:00:26 +03:00
docs сделал FindLinesCount_Cache 2024-03-15 10:48:11 +03:00
examples сделал readme 2023-08-29 16:50:12 +03:00
internal сделал // CachePackageName - кэш уже проверенных элементов 2024-03-15 15:12:58 +03:00
pkg/graphml сделал 2023-08-29 14:13:51 +03:00
settings сделал mssql 2024-06-21 14:14:28 +03:00
test новый 2023-08-28 17:56:09 +03:00
vendor сделал FindLinesCount_Cache 2024-03-15 14:40:15 +03:00
.env_example сделал readme 2023-08-29 15:28:38 +03:00
.gitignore сделал WEB 2023-10-13 16:05:46 +03:00
go.mod сделал FindLinesCount_Cache 2024-03-15 14:40:15 +03:00
go.sum сделал FindLinesCount_Cache 2024-03-15 14:40:15 +03:00
LICENSE Create LICENSE 2024-03-19 15:47:16 +03:00
Makefile сделал mssql 2024-06-21 14:14:28 +03:00
README.md сделал FindLinesCount_Cache 2024-03-15 15:08:06 +03:00
readme.rus сделал readme 2023-08-30 10:25:55 +03:00

Graph of connections to external services, for the golang language.

The image_connections console utility is designed to display all connections to external services of any repository in the Golang language in the form of a diagram (graph) in .graphml format, which can be converted into a .jpg image, etc. The source code of the repository is automatically parsed to find imports of external service modules. It is necessary to understand what services this repository interacts with, to study or better understand the call structure of the source code. Displayed:

  • the name of the current repository
  • names of external services, arrows to them

connections

Sample execution (pictures) can be found in the examples directory

Configured to display the following services:

  • PostgreSQL
  • MSSQL
  • Kafka
  • Nats
  • Minio
  • Email
  • Web
  • Web socket
  • Camunda
  • whatsapp
  • Telegram
  • Chat GPT
  • Redis
  • Keycloak
  • Prometeus
  • and etc.

You can add other services to the list in the files: settings/connections.txt settings/connections_add.txt

Installation order:

  1. Install the .graphml file editor yEd (free) https://www.yworks.com/products/yed/download

  2. Compile this repository

make build

image_connections file will appear in the bin folder

  1. Run the image_connections file with parameters:

image_connections <filename.graphml>

(or make an .env file DIRECTORY_SOURCE= FILENAME_GRAPHML= SERVICE_NAME= )

  1. Open the resulting .graphml file in the yEd editor (all elements will be in the center of the screen first) and select from the menu: Layout - Radial
  • The yEd editor will arrange all the elements of the circuit in an optimal way. You can also select a different Layout type to change the display.
  1. Export the scheme to a picture. Select from the menu: File-Export

Source code in Golang. Tested on Linux Ubuntu Readme from 29.08.2023

Made by Aleksandr Nikitin https://github.com/ManyakRus/image_connections