/gateway

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

Primary LanguageGoMIT LicenseMIT

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