Giter Club home page Giter Club logo

golang-example-app's Introduction

golang-example-app

build

サーバ起動

$> rake
$> http://localhost:4001/v1/users_and_items -i # grpc-server

試したこと

  • サーバの起動
    • grpc-gatewayサーバ
    • grpcサーバ(本体)
    • grpcサーバ(サービス1)
    • grpcサーバ(サービス2)
  • サーバ間gRPC通信
  • 分散トランザクション実装
    • sagaパターン
  • DB処理
    • gorp
  • ログ出力
    • logrus
  • gatewayサーバ
    • バリデーション
      • RESTAPIのバリデーション(protobufの拡張)
    • エラーハンドリング
      • RESTAPIのエラーレスポンスをカスタマイズ
  • OpenAPI

protoの拡張

go getコマンドでprotoファイルの拡張を使う場合にFile not foundエラーになるときは /usr/local/Cellar/protobuf/${version}/include/validate/配下にファイル配置する。

例:/usr/local/Cellar/protobuf/3.12.3/include/google/api/annotations.proto

golang-example-app's People

Contributors

mapserver2007 avatar

Watchers

 avatar James Cloos 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.