Documentation
¶
Index ¶
- type Browse
- func (b *Browse) ClearSubmission()
- func (b *Browse) SetDisplayCount(r *http.Request) error
- func (b *Browse) SetFile(r *http.Request) error
- func (b *Browse) SetFileIndices(r *http.Request) error
- func (b *Browse) SetLevel(route string)
- func (b *Browse) SetPid(r *http.Request) error
- func (b *Browse) SetResult(r *http.Request) error
- func (b *Browse) SetSid(r *http.Request) error
- func (b *Browse) SetUid(r *http.Request) error
- func (b *Browse) Submissions() ([]*project.Submission, error)
- func (b *Browse) Update(r *http.Request) error
- type C
- func (c *C) AddMessage(m string, isErr bool)
- func (c *C) AddUser(u string)
- func (c *C) Close()
- func (c *C) Errors() []interface{}
- func (c *C) IsView(v string) bool
- func (c *C) LoggedIn() bool
- func (c *C) RemoveUser()
- func (c *C) Save(r *http.Request, w http.ResponseWriter) error
- func (c *C) Successes() []interface{}
- func (c *C) Username() (string, error)
- type Level
- type Result
- type Setter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Browse ¶
type Browse struct { IsUser bool Pid, Sid bson.ObjectId Uid, File, View string //ChildFile string Current, Next int DisplayCount int Level Level Result *Result }
Browse is used to keep track of the user's browsing.
func (*Browse) ClearSubmission ¶
func (b *Browse) ClearSubmission()
func (*Browse) Submissions ¶
func (b *Browse) Submissions() ([]*project.Submission, error)
type C ¶
Context is used to keep track of the current user's session.
func (*C) AddMessage ¶
AddMessage adds a message to be displayed to the user.
Click to show internal directories.
Click to hide internal directories.