resources

package
v0.0.0-...-e4a6ec5 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2015 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Image

type Image struct {
	vitali.Ctx
}

func (*Image) Get

func (c *Image) Get() interface{}

type Images

type Images struct {
	vitali.Ctx
	vitali.Perm     `*:"AUTHED"`
	vitali.Provides `GET:"text/html" POST:"text/html"`
	vitali.Consumes `POST:"multipart/form-data,application/x-www-form-urlencoded"`
	vitali.Views    `GET:"base.html,images.html" POST:"base.html,images.html"`
}

func (*Images) Get

func (c *Images) Get() interface{}

func (*Images) Post

func (c *Images) Post() interface{}

type PageModel

type PageModel struct {
	Raw string `json:"raw"`
	CSS string `json:"css"`
}

func (*PageModel) HTML

func (c *PageModel) HTML() (res template.HTML)

func (*PageModel) UnescapeCSS

func (c *PageModel) UnescapeCSS() template.CSS

type Progress

type Progress struct {
	vitali.Ctx
	vitali.Perm `*:"AUTHED"`
	ChanMap     *util.ChanMap
}

func (*Progress) Get

func (c *Progress) Get() interface{}

func (*Progress) Post

func (c *Progress) Post() interface{}

type Slide

type Slide struct {
	vitali.Ctx
	vitali.Perm     `GET:"AUTHED" *:"OWNER"`
	vitali.Provides `GET:"application/json,text/html"`
	vitali.Views    `GET:"base.html,slide.html"`
	Page            uint64
}

func (*Slide) Delete

func (c *Slide) Delete() interface{}

func (*Slide) Get

func (c *Slide) Get() interface{}

func (*Slide) Post

func (c *Slide) Post() interface{}

func (*Slide) Pre

func (c *Slide) Pre() interface{}

type SlideModel

type SlideModel struct {
	Pages []PageModel `json:"pages"`
}

func (*SlideModel) InsertPage

func (c *SlideModel) InsertPage(idx int, raw string, css string)

func (*SlideModel) RemovePage

func (c *SlideModel) RemovePage(idx int)

type UserSlideList

type UserSlideList struct {
	vitali.Ctx
	vitali.Perm     `POST:"OWNER" DELETE:"OWNER"`
	vitali.Provides `GET:"application/json,text/html"`
	vitali.Views    `GET:"base.html,user_slide_list.html"`
}

func (*UserSlideList) Get

func (c *UserSlideList) Get() interface{}

func (*UserSlideList) Post

func (c *UserSlideList) Post() interface{}

func (*UserSlideList) Pre

func (c *UserSlideList) Pre() interface{}

Jump to

Keyboard shortcuts

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