Skip to content

Instantly share code, notes, and snippets.

@opannapo
Created May 11, 2022 16:34
Show Gist options
  • Save opannapo/5d6e1d89ff67aa5f12e67a54ae7938fe to your computer and use it in GitHub Desktop.
Save opannapo/5d6e1d89ff67aa5f12e67a54ae7938fe to your computer and use it in GitHub Desktop.

Revisions

  1. opannapo created this gist May 11, 2022.
    97 changes: 97 additions & 0 deletions diff.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,97 @@
    # Diff

    ## Struktur:

    | User | Company | Wallet |
    |---------------------|------------------|--------|
    | stream, mock, utils | nats, mock, test | errors |

    #

    ## Code:

    #### main

    | User | Company | Wallet |
    |------------|------------------|----------|
    | Exec Cmd | Exec Cmd | Exec Cmd |

    #### cmd

    | User | Company | Wallet |
    |------------------------------------|-------------------|-------------------|
    | Start Server, Consumer & Migration | Migration | Migration |
    | Migration Command | Migration Command | Migration Command |

    #### config

    | User | Company |
    |-----------------------------|-------------------|
    | Load Config (Auto by Viper) | Load Config |

    #### dto

    | User | Company |
    |----------|---------|
    | error.go | |

    #### api

    | User | Company |
    |------------------------------------------------|-----------------------------------------------|
    | Response Management | Response Management |
    | Pagination Request Handling | Pagination Request Handling |
    | Error Handling from service:internal app error | Error Handling from service:common http error |

    #### dto

    | User | Company |
    |------------------------------------------------|-----------------------------------------------|
    | Ada Pagination Dto (Generic) | Response Management |

    #### logic

    | User | Company |
    |------------------------|------------------------|
    | Handle Pagination data | Handle Pagination data |
    | Handle Open-close DB | Handle Open-close DB |

    #### server

    | User | Company |
    |----------------|-------------|
    | startServer | startServer |
    | go http | graceful |
    | BaseMiddleware | middleware |

    #### storage

    | User | Company |
    |-----------------|------------------|
    | Struct Database | Variable per /Db |

    #### stream

    | User | Company |
    |----------------------------|--------------------------|
    | Broker Instance | - |
    | Publisher n/a | - Execute on logic layer |
    | Consumer (Message Handler) | - N/a |

    #

    #

    #