Documentation ¶
Index ¶
- Constants
- Variables
- type AppController
- func (ac *AppController) Bind(formStruct binding.FieldMapper) binding.Errors
- func (ac *AppController) ContextGet(key interface{}) interface{}
- func (ac *AppController) ContextSet(key, value interface{})
- func (ac *AppController) Init(rw http.ResponseWriter, r *http.Request, params httprouter.Params) error
- func (ac *AppController) Redirect(url string, code int) error
- type LandingPageController
- type UsersController
- func (c *UsersController) CreateNewUser() error
- func (c *UsersController) DeleteUser() error
- func (c *UsersController) NewUser() error
- func (c *UsersController) PerformUserDeletion() error
- func (c *UsersController) PerformUserUpdate() error
- func (c *UsersController) UpdateUser() error
- func (c *UsersController) User() error
- func (c *UsersController) Users() error
Constants ¶
View Source
const ( DEV_MODE = "DEV_MODE" MONGO_URL = "MONGO_URL" )
Variables ¶
View Source
var IS_DEV_MODE = getDevMode()
Functions ¶
This section is empty.
Types ¶
type AppController ¶
type AppController struct { controller.Base // contains filtered or unexported fields }
func (*AppController) Bind ¶
func (ac *AppController) Bind(formStruct binding.FieldMapper) binding.Errors
helper methods for handling request data
func (*AppController) ContextGet ¶
func (ac *AppController) ContextGet(key interface{}) interface{}
helper methods for context access
func (*AppController) ContextSet ¶
func (ac *AppController) ContextSet(key, value interface{})
func (*AppController) Init ¶
func (ac *AppController) Init(rw http.ResponseWriter, r *http.Request, params httprouter.Params) error
lifecycle methods
type LandingPageController ¶
type LandingPageController struct {
AppController
}
func (*LandingPageController) Index ¶
func (c *LandingPageController) Index() error
type UsersController ¶
type UsersController struct {
AppController
}
func (*UsersController) CreateNewUser ¶
func (c *UsersController) CreateNewUser() error
func (*UsersController) DeleteUser ¶
func (c *UsersController) DeleteUser() error
func (*UsersController) NewUser ¶
func (c *UsersController) NewUser() error
func (*UsersController) PerformUserDeletion ¶
func (c *UsersController) PerformUserDeletion() error
func (*UsersController) PerformUserUpdate ¶
func (c *UsersController) PerformUserUpdate() error
func (*UsersController) UpdateUser ¶
func (c *UsersController) UpdateUser() error
func (*UsersController) User ¶
func (c *UsersController) User() error
func (*UsersController) Users ¶
func (c *UsersController) Users() error
Click to show internal directories.
Click to hide internal directories.