controllers

package
v0.0.0-...-d8ae0c1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 15, 2015 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Notifications = NewNotificationsController()

Functions

func Root

func Root() (root *web.Mux)

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL