Coder Social home page Coder Social logo

gokit-microservices-template's Introduction

gokit-microservices-template

基于go kit封装的微服务应用模板:http-iris-consul-gateway-reverse-websocket-zaplog-keystone-cors-device-grpc(client-consul) 支持:

  • 协议:http(iris), grpc, websocket(gosf)
  • 服务注册于发现(http, grpc) -> consul
  • 支持http网关:端口代理网关、反向代理、双网关(http, ws)
  • 统一了各类协议的request/response结构, 模拟http的json方式
  • 支持zap logger
  • 支持跨域 cors
  • 支持grpc客户端调用封装,便于实现服务之间的rpc调用
  • 内置了认证微服务(keystone),支持oauth/jwt认证
  • 内置了微服务实例(http_server, grpc_server, ws_server)

详细文档,请参考博客:https://taodanfang.github.io/post/go-kit-microservice/

gokit-microservices-template's People

Contributors

taodanfang avatar cclab-hanks avatar

Watchers

 avatar

gokit-microservices-template's Issues

websocket集群问题

项目中的websocket服务如果以集群形式部署的话,是不是要考虑分布式长链接的问题?

About naming conventions in Go

感谢分享的文章,有点疑惑为什么所有函数的命名没有采用Go官方约定俗成的驼峰式命名方式

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.