Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthHandler ¶
type AuthHandler interface { GetLogin(c *gin.Context) PostLogin(c *gin.Context) GetLogout(c *gin.Context) }
AuthHandler is the handler interface.
type ListHandler ¶
ListHandler is the handler interface.
type PostHandler ¶
PostHandler is the handler interface.
type Router ¶
type Router struct {
// contains filtered or unexported fields
}
Router is the router.
func NewRouter ¶
func NewRouter( admin Admin, auth AuthHandler, tariffs ListHandler, tags ListHandler, reviews ListHandler, collections ListHandler, images ListHandler, calendar ListHandler, book PostHandler, ) *Router
NewRouter returns a new router object.
Click to show internal directories.
Click to hide internal directories.