Git Product home page Git Product logo

goro's Introduction

Hi 👋, I'm @hanagantig

A passionate golang software engineer


GitHub LinkedIn Medium Telegram

goro's People

Contributors

alekseykondratev91 avatar hanagantig avatar yuri-sn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

goro's Issues

Support AMQP handlers

Summary

In addition to http and grpc there is should be a way to generate also amqp handlers. It should generate all boilerplate code with connecting, publishing and consuming + flexible way to run handlers (listeners) and bind it with UseCases

Command to generate new UseCase method

Summary

Now we have only init command which generates whole project. But quite often we are faced with writing a new UseCase method for an existing project.

Intended Outcome

It will generate a boilerplate code for just adding single UseCase method with all dependencies

How will it work?

Has to be a new goro command

Command to generate new service method

Summary

Now we have only init command which generates whole project. But quite often we are faced with writing a new service method for an existing project.

Intended Outcome

It will generate a boilerplate code for just adding single service method with all dependencies and will save a lot of time

How will it work?

Has to be a new goro command

Command to generate new Adapter

Summary

Now we have only init command which generates whole project. But quite often we are faced with writing a new Adapter (repository) for an existing project.

Intended Outcome

It will generate a boilerplate code for just adding single Adapter (repository) with all provided configurations

How will it work?

Has to be a new goro command or just use single command to apply updated config

Support OpenTelemetry

Summary

Add to the layout openTelemetry implementation
It should have flexible configurations with ability to trace all infrastructure layers (databases, http, grpc, amqp... connections).
Also should provide an easy way to trace business logic

Support HTTP storage type

Summary

By design storages injects in repositories to provide access to data.
Currently supported storages:

storages:
  - mysql
  - mysqlx
  - pgsqlx

Intended Outcome

Repositories needs to access data with HTTP storage (for example web API call)

Use slog

Summary

Update go version and use slog logger for the app

Generate API tests

Summary

Implement needed boilerplate to evaluate API tests in table test style

Command to generate new Service

Summary

Now we have only init command which generates whole project. But quite often we are faced with writing a new Service for an existing project.

Intended Outcome

It will generate a boilerplate code for just adding single Service with all provided configurations

How will it work?

Has to be a new goro command or just use single command to apply updated config

Generate integration tests

Summary

Generate all needed code and environment to evaluate integration tests (for instance tests for repositories which query a real database instance in container)

GRPC handlers

Summary

Currently there is no way to generate GRPC handlers (only http handlers available). It should be possible to configure our routes in goro.yaml and bind it with different handlers (in this case with GRPC)

Intended Outcome

With such a feature to configure routes with different protocols we can easily use the same use case method via various transports.

How will it work?

There should be a way to configure usecases to access with needed protocol. Proto file url also has to be provided in config. goro init command should generate grpc server, generate all boilerplate code to run the server with provided proto and use case methods bindings.
The config could look like this:

handlers:
  v1:
    proto_file: "path/to/file"
    routing:
      - operation: operationID
        use_case: GetClients
        protocols: [http, grpc]
      - operation: signIN
        use_case: SignUp
        protocols: [grpc]

Generate failed with Postgres

In default config delete mysql and mysqlx, use postgres in as storage in adapters, and run goro init --config goro.yaml:

Enter an app work dir or leave it empty to use current directory:
chain #1: Fit file names
✔ Enter an app work dir or leave it empty to use current directory: █
chain #3: Generate services chain
chain #4: Generate useCase chain
chain #5: Generate code
Generate code fail: 49:32: expected type, found ')'ERR   49:32: expected type, found ')'

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.