package
Version:
v0.0.1-alpha.1
Opens a new window with list of versions in this module.
Published: Jan 4, 2020
License: AGPL-3.0
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type IRouter interface {
InitializeRouter(router *chi.Mux) *chi.Mux
SetRoutes(router *chi.Mux)
}
IRouter HTTP Router interface
type Router struct {
DB *sql.DB
Redis *redis.Client
}
Router HTTP Router implementation
func NewHTTPRouter(db *sql.DB, redis *redis.Client) *Router
NewHTTPRouter Returns an HTTP Router instance
InitializeRouter Starts the given router with required configs
SetRoutes Mounts resources into the given router
Source Files
¶
Click to show internal directories.
Click to hide internal directories.