Documentation ¶
Index ¶
- type IndexAdminDelivery
- func (iad *IndexAdminDelivery) AddUser(w http.ResponseWriter, r *http.Request)
- func (iad *IndexAdminDelivery) HomeAdmin(w http.ResponseWriter, r *http.Request)
- func (iad *IndexAdminDelivery) Login(w http.ResponseWriter, r *http.Request)
- func (iad *IndexAdminDelivery) Routes(adminMiddleware middlewares.AdminMiddleware) chi.Router
- func (iad *IndexAdminDelivery) Signup(w http.ResponseWriter, r *http.Request)
- func (iad *IndexAdminDelivery) VerifyUser(w http.ResponseWriter, r *http.Request)
- type UserAdminDelivery
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IndexAdminDelivery ¶
type IndexAdminDelivery struct { Tpl helper.Template SessionManager *scs.SessionManager UserService service.UserService }
func NewIndexAdminDelivery ¶
func NewIndexAdminDelivery(userService service.UserService, sessionManager *scs.SessionManager) *IndexAdminDelivery
func (*IndexAdminDelivery) AddUser ¶
func (iad *IndexAdminDelivery) AddUser(w http.ResponseWriter, r *http.Request)
func (*IndexAdminDelivery) HomeAdmin ¶
func (iad *IndexAdminDelivery) HomeAdmin(w http.ResponseWriter, r *http.Request)
func (*IndexAdminDelivery) Login ¶
func (iad *IndexAdminDelivery) Login(w http.ResponseWriter, r *http.Request)
func (*IndexAdminDelivery) Routes ¶
func (iad *IndexAdminDelivery) Routes(adminMiddleware middlewares.AdminMiddleware) chi.Router
func (*IndexAdminDelivery) Signup ¶
func (iad *IndexAdminDelivery) Signup(w http.ResponseWriter, r *http.Request)
func (*IndexAdminDelivery) VerifyUser ¶
func (iad *IndexAdminDelivery) VerifyUser(w http.ResponseWriter, r *http.Request)
type UserAdminDelivery ¶
type UserAdminDelivery struct { SessionManager *scs.SessionManager UserService service.UserService // contains filtered or unexported fields }
func NewUserAdminDelivery ¶
func NewUserAdminDelivery(userService service.UserService, sessionManager *scs.SessionManager) *UserAdminDelivery
func (*UserAdminDelivery) NewUser ¶
func (uad *UserAdminDelivery) NewUser(w http.ResponseWriter, r *http.Request)
func (*UserAdminDelivery) Routes ¶
func (uad *UserAdminDelivery) Routes() chi.Router
Click to show internal directories.
Click to hide internal directories.