Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct { *gin.Engine // shared components Config config.Configuration SessionStore sessions.Store // services Shortener internal.UrlShortenerService Users internal.UsersService }
func New ¶
func New(config config.Configuration, store sessions.Store, shortener internal.UrlShortenerService, users internal.UsersService) *Server
func (*Server) InitRoutes ¶
func (s *Server) InitRoutes()
Click to show internal directories.
Click to hide internal directories.