Coder Social home page Coder Social logo

manyakrus / image_connections Goto Github PK

View Code? Open in Web Editor NEW
6.0 1.0 0.0 6.48 MB

Graph of connections to external services, for the golang language. Designed to display all connections to external services of any repository in the Golang language in the form of a diagram (graph)

License: GNU General Public License v2.0

Makefile 2.77% Shell 0.22% Python 4.86% Go 92.15%
graph-of-connections-to-external-services automatic connections diagram external golang graph image repository services

image_connections's Introduction

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

image_connections's People

Contributors

manyakrus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.