Goaとは? Goa is a Go framework for writing microservices that promotesbest practice by providing a single source of truth from which server code, client code, and documentation is derived. マイクロサービス用のフレームワーク コードからサーバサイドのスケルトンやドキュメント(swagger) を生成できる 4
Pythonicに書けるようにしたつもり このPythonファイルをスキーマとする with Service('http_service'): Title('This is a http service') with Method('liveness'): Description('liveness probe') Result(str) HTTP(GET, '/liveness') with Method('readiness'): Description('readiness probe') Result(str) HTTP(GET, '/readiness') 26
まだTODOたくさんあるけれど Configure http url and port Add URL parameter and type Add payload (name, type, description, position etc) Add validation Add gRPC server Generate proto files Generate swagger json 29