Documentation ¶
Index ¶
- Variables
- func Root() (root *web.Mux)
- type AlbumsController
- func (controller *AlbumsController) Edit(c web.C, w http.ResponseWriter, r *http.Request)
- func (controller *AlbumsController) Find(c web.C, w http.ResponseWriter, r *http.Request)
- func (controller *AlbumsController) FindByUser(c web.C, w http.ResponseWriter, r *http.Request)
- func (controller *AlbumsController) GetPictures(c web.C, w http.ResponseWriter, r *http.Request)
- func (controller *AlbumsController) New(c web.C, w http.ResponseWriter, r *http.Request)
- func (controller *AlbumsController) Public(c web.C, w http.ResponseWriter, r *http.Request)
- func (controller *AlbumsController) Remove(c web.C, w http.ResponseWriter, r *http.Request)
- func (controller *AlbumsController) Routes() (root *web.Mux)
- type BaseController
- func (controller *BaseController) Error(w http.ResponseWriter, err error)
- func (controller *BaseController) GetCurrentUser(c web.C) *models.UserData
- func (controller *BaseController) GetParams(c web.C) (p system.Params)
- func (controller *BaseController) GetSession(c web.C) (s *sessions.Session)
- func (controller *BaseController) NotFound(w http.ResponseWriter)
- func (controller *BaseController) Write(w http.ResponseWriter, data interface{})
- type NotificationsController
- func (controller *NotificationsController) Delete(c web.C, w http.ResponseWriter, r *http.Request)
- func (controller *NotificationsController) Find(c web.C, w http.ResponseWriter, r *http.Request)
- func (controller *NotificationsController) Pop(c web.C, w http.ResponseWriter, r *http.Request)
- func (controller *NotificationsController) Routes() (root *web.Mux)
- type PicturesController
- func (controller *PicturesController) CanBeViewed(c web.C, w http.ResponseWriter, r *http.Request)
- func (controller *PicturesController) CheckPictureName(name string) interface{}
- func (controller *PicturesController) Edit(c web.C, w http.ResponseWriter, r *http.Request)
- func (controller *PicturesController) Find(c web.C, w http.ResponseWriter, r *http.Request)
- func (controller *PicturesController) FindByUser(c web.C, w http.ResponseWriter, r *http.Request)
- func (controller *PicturesController) GetFile(c web.C, w http.ResponseWriter, r *http.Request)
- func (controller *PicturesController) GetThumb(c web.C, w http.ResponseWriter, r *http.Request)
- func (controller *PicturesController) Like(c web.C, w http.ResponseWriter, r *http.Request)
- func (controller *PicturesController) New(c web.C, w http.ResponseWriter, r *http.Request)
- func (controller *PicturesController) Remove(c web.C, w http.ResponseWriter, r *http.Request)
- func (controller *PicturesController) Routes() (root *web.Mux)
- func (controller *PicturesController) Unlike(c web.C, w http.ResponseWriter, r *http.Request)
- type UsersController
- func (controller *UsersController) Auth(c web.C, w http.ResponseWriter, r *http.Request)
- func (controller *UsersController) CurrentUser(c web.C, w http.ResponseWriter, r *http.Request)
- func (controller *UsersController) Edit(c web.C, w http.ResponseWriter, r *http.Request)
- func (controller *UsersController) Find(c web.C, w http.ResponseWriter, r *http.Request)
- func (controller *UsersController) GetAlbums(c web.C, w http.ResponseWriter, r *http.Request)
- func (controller *UsersController) Logout(c web.C, w http.ResponseWriter, r *http.Request)
- func (controller *UsersController) New(c web.C, w http.ResponseWriter, r *http.Request)
- func (controller *UsersController) Routes() (root *web.Mux)
- func (controller *UsersController) SearchByUsername(c web.C, w http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
View Source
var Albums = NewAlbumsController()
View Source
var Notifications = NewNotificationsController()
View Source
var Pictures = NewPicturesController()
View Source
var Users = NewUsersController()
Functions ¶
Types ¶
type AlbumsController ¶
type AlbumsController struct { BaseController M *models.AlbumModel }
func NewAlbumsController ¶
func NewAlbumsController() *AlbumsController
func (*AlbumsController) Edit ¶
func (controller *AlbumsController) Edit(c web.C, w http.ResponseWriter, r *http.Request)
func (*AlbumsController) Find ¶
func (controller *AlbumsController) Find(c web.C, w http.ResponseWriter, r *http.Request)
func (*AlbumsController) FindByUser ¶
func (controller *AlbumsController) FindByUser(c web.C, w http.ResponseWriter, r *http.Request)
func (*AlbumsController) GetPictures ¶
func (controller *AlbumsController) GetPictures(c web.C, w http.ResponseWriter, r *http.Request)
func (*AlbumsController) New ¶
func (controller *AlbumsController) New(c web.C, w http.ResponseWriter, r *http.Request)
func (*AlbumsController) Public ¶
func (controller *AlbumsController) Public(c web.C, w http.ResponseWriter, r *http.Request)
func (*AlbumsController) Remove ¶
func (controller *AlbumsController) Remove(c web.C, w http.ResponseWriter, r *http.Request)
func (*AlbumsController) Routes ¶
func (controller *AlbumsController) Routes() (root *web.Mux)
type BaseController ¶
type BaseController struct{}
func (*BaseController) Error ¶
func (controller *BaseController) Error(w http.ResponseWriter, err error)
func (*BaseController) GetCurrentUser ¶
func (controller *BaseController) GetCurrentUser(c web.C) *models.UserData
func (*BaseController) GetParams ¶
func (controller *BaseController) GetParams(c web.C) (p system.Params)
func (*BaseController) GetSession ¶
func (controller *BaseController) GetSession(c web.C) (s *sessions.Session)
func (*BaseController) NotFound ¶
func (controller *BaseController) NotFound(w http.ResponseWriter)
func (*BaseController) Write ¶
func (controller *BaseController) Write(w http.ResponseWriter, data interface{})
type NotificationsController ¶
type NotificationsController struct { BaseController M *models.NotificationModel }
func NewNotificationsController ¶
func NewNotificationsController() *NotificationsController
func (*NotificationsController) Delete ¶
func (controller *NotificationsController) Delete(c web.C, w http.ResponseWriter, r *http.Request)
func (*NotificationsController) Find ¶
func (controller *NotificationsController) Find(c web.C, w http.ResponseWriter, r *http.Request)
func (*NotificationsController) Pop ¶
func (controller *NotificationsController) Pop(c web.C, w http.ResponseWriter, r *http.Request)
func (*NotificationsController) Routes ¶
func (controller *NotificationsController) Routes() (root *web.Mux)
type PicturesController ¶
type PicturesController struct { BaseController M *models.PictureModel ThumbCache map[string]*image.NRGBA }
func NewPicturesController ¶
func NewPicturesController() *PicturesController
func (*PicturesController) CanBeViewed ¶
func (controller *PicturesController) CanBeViewed(c web.C, w http.ResponseWriter, r *http.Request)
func (*PicturesController) CheckPictureName ¶
func (controller *PicturesController) CheckPictureName(name string) interface{}
func (*PicturesController) Edit ¶
func (controller *PicturesController) Edit(c web.C, w http.ResponseWriter, r *http.Request)
func (*PicturesController) Find ¶
func (controller *PicturesController) Find(c web.C, w http.ResponseWriter, r *http.Request)
func (*PicturesController) FindByUser ¶
func (controller *PicturesController) FindByUser(c web.C, w http.ResponseWriter, r *http.Request)
func (*PicturesController) GetFile ¶
func (controller *PicturesController) GetFile(c web.C, w http.ResponseWriter, r *http.Request)
func (*PicturesController) GetThumb ¶
func (controller *PicturesController) GetThumb(c web.C, w http.ResponseWriter, r *http.Request)
func (*PicturesController) Like ¶
func (controller *PicturesController) Like(c web.C, w http.ResponseWriter, r *http.Request)
func (*PicturesController) New ¶
func (controller *PicturesController) New(c web.C, w http.ResponseWriter, r *http.Request)
func (*PicturesController) Remove ¶
func (controller *PicturesController) Remove(c web.C, w http.ResponseWriter, r *http.Request)
func (*PicturesController) Routes ¶
func (controller *PicturesController) Routes() (root *web.Mux)
func (*PicturesController) Unlike ¶
func (controller *PicturesController) Unlike(c web.C, w http.ResponseWriter, r *http.Request)
type UsersController ¶
type UsersController struct { BaseController M *models.UserModel }
func NewUsersController ¶
func NewUsersController() *UsersController
func (*UsersController) Auth ¶
func (controller *UsersController) Auth(c web.C, w http.ResponseWriter, r *http.Request)
func (*UsersController) CurrentUser ¶
func (controller *UsersController) CurrentUser(c web.C, w http.ResponseWriter, r *http.Request)
func (*UsersController) Edit ¶
func (controller *UsersController) Edit(c web.C, w http.ResponseWriter, r *http.Request)
func (*UsersController) Find ¶
func (controller *UsersController) Find(c web.C, w http.ResponseWriter, r *http.Request)
func (*UsersController) GetAlbums ¶
func (controller *UsersController) GetAlbums(c web.C, w http.ResponseWriter, r *http.Request)
func (*UsersController) Logout ¶
func (controller *UsersController) Logout(c web.C, w http.ResponseWriter, r *http.Request)
func (*UsersController) New ¶
func (controller *UsersController) New(c web.C, w http.ResponseWriter, r *http.Request)
func (*UsersController) Routes ¶
func (controller *UsersController) Routes() (root *web.Mux)
func (*UsersController) SearchByUsername ¶
func (controller *UsersController) SearchByUsername(c web.C, w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.