Code Monkey home page Code Monkey logo

aehcl's People

Contributors

emahiro avatar itomoyasu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

aehcl's Issues

App Engine 向けの HTTP クライアントを作成する

なぜ作るのか?

GAE/Go1.12 以降 appengine パッケージが使えなくなるので、urlfetch が使えなくなります。
urlfetch は GAE で提供されている URL取得サービスで GAE ではこのサービスを使って HTTP 通信を行ってきました。
しかしこの urlfetch サービスが使えなくので urlfetch で行えていたことができなくなります。

その1つがマイクロサービスにおける サービス間通信における内部通信判定
urlfetch を使っているときは urlfetch を利用する時に HTTP のヘッダーに付いてくる urlfetch の独自ヘッダーを使うことが代用できましたが、今後は標準の net/http を使うことになるので、この独自ヘッダーを使った内部通信判定は使えなくなります。

GAE/Go1.12 以降は https://cloud.google.com/run/docs/authenticating/service-to-service にあるような metadata server を使ってサービス間通信を行います。

aehctではこのサービス間通信を異様するための

  • idToken を取得する。
  • Transport の生成時に Authorization ヘッダーに取得した idToken をつける。

機能を提供します。

Feature

aehcl はクライアントなので、アクセストークンを検証し、内部通信判定まで含めた aehsv( appengine http server) もセットで作成予定です。
※ ライブラリ名は適当です。

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.