Documentation ¶
Overview ¶
Package handlers manages the different versions of the API.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func APIMux ¶
func APIMux(cfg APIMuxConfig) *mux.Router
APIMux constructs a http.Handler with all application routes defined.
Types ¶
type APIMuxConfig ¶
type APIMuxConfig struct { Logger *slog.Logger DB *sqlx.DB RProxyConfig map[string]reverseproxy.Config }
APIMuxConfig contains all the mandatory systems required by handlers.
func NewAPIMuxConfig ¶
func NewAPIMuxConfig(logger *slog.Logger, db *sqlx.DB, rProxyConfig map[string]reverseproxy.Config) APIMuxConfig
NewAPIMuxConfig constructs a new mux config.
Directories ¶
Path | Synopsis |
---|---|
Package middleware contains different middleware used on the API Gateway.
|
Package middleware contains different middleware used on the API Gateway. |
Package v1 contains the full set of handler functions and routes supported by the v1 web api.
|
Package v1 contains the full set of handler functions and routes supported by the v1 web api. |
reverseproxy
Package reverseproxy maintains the reverse proxy handlers.
|
Package reverseproxy maintains the reverse proxy handlers. |
usergrp
Package usergrp maintains the group of handlers for user access.
|
Package usergrp maintains the group of handlers for user access. |
Click to show internal directories.
Click to hide internal directories.