Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAPIMux ¶
func NewAPIMux(config APIMuxConfig, routeAdder RouteAdder) http.Handler
Types ¶
type APIMuxConfig ¶
type APIMuxConfig struct { Build string Shutdown chan os.Signal Log *logger.Logger Auth *auth.Auth DB *sqlx.DB }
APIMuxConfig contains all mandatory systems required by handlers.
type RouteAdder ¶
type RouteAdder interface {
Add(app *web.App, cfg APIMuxConfig)
}
RouteAdder defines behavior that sets the routes to bind for an instance of the service.
Directories
¶
Path | Synopsis |
---|---|
Package auth provides authentication and authorization support.
|
Package auth provides authentication and authorization support. |
Click to show internal directories.
Click to hide internal directories.