Documentation ¶
Overview ¶
Package activity provides access to the club activity of the Buddy System.
Package activity provides access to the club activity of the Buddy System.
Index ¶
Constants ¶
View Source
const ( FoundingEvent = iota Study Etc )
Variables ¶
View Source
var (
FilePathPrefix = strings.Join([]string{home, "registry"}, "/")
)
Functions ¶
Types ¶
type Activities ¶
type Activities []Activity
type Activity ¶
type Activity struct { ID primitive.ObjectID `json:"id" bson:"_id"` Title string `json:"title" bson:"title"` Start int64 `json:"start,string" bson:"start"` End int64 `json:"end,string" bson:"end"` Place string `json:"place" bson:"place"` Type int `json:"type" bson:"type"` Description string `json:"description" bson:"description"` Participants []string `json:"participants" bson:"participants"` Private bool `json:"private" bson:"private"` Files Files `json:"files" bson:"files"` }
Activity represents a club activity state.
func New ¶
func New(title string, start, end int64, place, description string, typ int, participants []string, private bool) *Activity
New returns a new activity.
func (Activity) Create ¶
Create creates a new activity.
NOTE:
It is a privileged operation:
Only the club managers can access to this operation.
func (Activity) DeleteFile ¶
DeleteFile deletes file of FILENAME from a.
NOTE:
It is a privileged operation:
Only the club managers can access to this operation.
Click to show internal directories.
Click to hide internal directories.