Skip to content

A high-performance API Gateway with middlewares, supporting HTTP and gRPC protocols.

License

Notifications You must be signed in to change notification settings

go-kratos/gateway

Repository files navigation

Gateway

Build Status codecov

HTTP -> Proxy -> Router -> Middleware -> Client -> Selector -> Node

Protocol

  • HTTP -> HTTP
  • HTTP -> gRPC
  • gRPC -> gRPC

Encoding

  • Protobuf Schemas

Endpoint

  • prefix: /api/echo/*
  • path: /api/echo/hello
  • regex: /api/echo/[a-z]+
  • restful: /api/echo/{name}

Middleware

  • cors
  • auth
  • color
  • logging
  • tracing
  • metrics
  • ratelimit
  • datacenter