Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Router ¶
type Router struct { APIRouter model.Router WebRouter model.Router AdminRouter model.Router AdminPanelRouter model.Router RootRouter *http.ServeMux APIRouterPath string WebRouterPath string AdminRouterPath string AdminPanelRouterPath string }
Router is a root router to handle REST API, web, and admin requests.
type RouterSetting ¶
type RouterSetting struct { AppStorage model.AppStorage UserStorage model.UserStorage TokenStorage model.TokenStorage TokenBlacklist model.TokenBlacklist InviteStorage model.InviteStorage VerificationCodeStorage model.VerificationCodeStorage TokenService jwtService.TokenService SMSService model.SMSService EmailService model.EmailService SessionService model.SessionService SessionStorage model.SessionStorage StaticFilesStorage model.StaticFilesStorage ConfigurationStorage model.ConfigurationStorage Logger *log.Logger ServeAdminPanel bool APIRouterSettings []func(*api.Router) error WebRouterSettings []func(*html.Router) error AdminRouterSettings []func(*admin.Router) error LoggerSettings model.LoggerSettings }
RouterSetting contains settings for root http router.
Click to show internal directories.
Click to hide internal directories.