Documentation ¶
Index ¶
- Constants
- type Diary
- func (c *Diary) AddPictureHandler(w http.ResponseWriter, r *http.Request)
- func (c Diary) CanCreate(userItf interface{}) bool
- func (c Diary) CanEdit(entry models.DiaryEntry, userItf interface{}) bool
- func (c Diary) CanSeeUnpublished(userItf interface{}) bool
- func (c *Diary) CommentHandler(w http.ResponseWriter, r *http.Request)
- func (c *Diary) Configure(app gongo.App) error
- func (c *Diary) DeletePictureHandler(w http.ResponseWriter, r *http.Request)
- func (c *Diary) EditHandler(w http.ResponseWriter, r *http.Request)
- func (c *Diary) ListHandler(w http.ResponseWriter, r *http.Request)
- func (c *Diary) PicturesHandler(w http.ResponseWriter, r *http.Request)
- func (c *Diary) PublishHandler(w http.ResponseWriter, r *http.Request)
- func (c *Diary) ReadHandler(w http.ResponseWriter, r *http.Request)
- func (c Diary) Resources() []interface{}
- func (c *Diary) ServeMux() http.Handler
- func (c *Diary) SubscribeHandler(w http.ResponseWriter, r *http.Request)
- func (c *Diary) ViewHandler(w http.ResponseWriter, r *http.Request)
- type Flash
Constants ¶
View Source
const PerPage = 10
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Diary ¶
func (*Diary) AddPictureHandler ¶
func (c *Diary) AddPictureHandler(w http.ResponseWriter, r *http.Request)
func (Diary) CanEdit ¶
func (c Diary) CanEdit(entry models.DiaryEntry, userItf interface{}) bool
TODO: can we simplify this can functions
func (Diary) CanSeeUnpublished ¶
func (*Diary) CommentHandler ¶
func (c *Diary) CommentHandler(w http.ResponseWriter, r *http.Request)
func (*Diary) DeletePictureHandler ¶
func (c *Diary) DeletePictureHandler(w http.ResponseWriter, r *http.Request)
func (*Diary) EditHandler ¶
func (c *Diary) EditHandler(w http.ResponseWriter, r *http.Request)
func (*Diary) ListHandler ¶
func (c *Diary) ListHandler(w http.ResponseWriter, r *http.Request)
func (*Diary) PicturesHandler ¶
func (c *Diary) PicturesHandler(w http.ResponseWriter, r *http.Request)
func (*Diary) PublishHandler ¶
func (c *Diary) PublishHandler(w http.ResponseWriter, r *http.Request)
func (*Diary) ReadHandler ¶
func (c *Diary) ReadHandler(w http.ResponseWriter, r *http.Request)
func (*Diary) SubscribeHandler ¶
func (c *Diary) SubscribeHandler(w http.ResponseWriter, r *http.Request)
func (*Diary) ViewHandler ¶
func (c *Diary) ViewHandler(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.