go-apigateway

module
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 27, 2024 License: Apache-2.0

README

go-apigateway Build Status GoDoc License

Provides some required elements to build an api gateway, requiring Go1.21.

Directories

Path Synopsis
cmd
apigateway Module
http
core
Package core provides some core runtime functions.
Package core provides some core runtime functions.
directive
Package directive provides a request or response processor based on the directive.
Package directive provides a request or response processor based on the directive.
internal/httpx
Package httpx provides some helpful http tools.
Package httpx provides some helpful http tools.
internal/maps
Package maps provides some assistant generic functions about map.
Package maps provides some assistant generic functions about map.
middleware
Package middleware provides a common handler middleware.
Package middleware provides a common handler middleware.
middleware/middlewares
Package middlewares is used to register the builtin middlewares.
Package middlewares is used to register the builtin middlewares.
middleware/middlewares/allow
Package allow provides a client-allowed middleware.
Package allow provides a client-allowed middleware.
middleware/middlewares/auth
Package auth provides a common auth middleware based on the request header 'Authorization'.
Package auth provides a common auth middleware based on the request header 'Authorization'.
middleware/middlewares/auth/forwardauth
Package forward provides a middleware that forward the auth to the external server.
Package forward provides a middleware that forward the auth to the external server.
middleware/middlewares/block
Package block provides a client-blocked middleware.
Package block provides a client-blocked middleware.
middleware/middlewares/cors
Package cors provides a CORS middleware.
Package cors provides a CORS middleware.
middleware/middlewares/logger
Package provides a logger middleware to log the request.
Package provides a logger middleware to log the request.
middleware/middlewares/processor
Package processor provides a processor middleware to handle the forwarding request and response.
Package processor provides a processor middleware to handle the forwarding request and response.
middleware/middlewares/redirect
Package redirect provides a redirect middleware.
Package redirect provides a redirect middleware.
middleware/middlewares/requestid
Package requestid provides a request id middleware based on the request header "X-Request-Id".
Package requestid provides a request id middleware based on the request header "X-Request-Id".
router
Package router provides an entrypoint router for the api gateway.
Package router provides an entrypoint router for the api gateway.
statuscode
Package statuscode provides an error based on the status code.
Package statuscode provides an error based on the status code.
upstream
Package upstream provides an upstream forwarding based on the http.
Package upstream provides an upstream forwarding based on the http.
internal
jsonx
Package jsonx provides some helpful json functions.
Package jsonx provides some helpful json functions.
mapx
Package mapx provides some assistant generic functions about map.
Package mapx provides some assistant generic functions about map.
rand
Package rand provides some compatible rand functions.
Package rand provides some compatible rand functions.
slogx
Package slogx provides some slog functions for test.
Package slogx provides some slog functions for test.
Package manager provides a common object manager.
Package manager provides a common object manager.
Package nets provides some assistant tools about net.
Package nets provides some assistant tools about net.
Package orch provides some orchestration functions.
Package orch provides some orchestration functions.
updater
Package updater provides a common mechanism to updates the runtime from the synchronized configurations.
Package updater provides a common mechanism to updates the runtime from the synchronized configurations.
Package registry provides a common builder registry.
Package registry provides a common builder registry.
Package upstream provides some upstream functions.
Package upstream provides some upstream functions.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL