Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Course ¶
type Course struct { item.Item Name string `json:"name"` Title string `json:"title"` Subtitle string `json:"subtitle"` VideoCode string `json:"video_code"` Instructor string `json:"instructor"` Modules []string `json:"modules"` }
func (*Course) MarshalEditor ¶
MarshalEditor writes a buffer of html to edit a Course within the CMS and implements editor.Editable
type CourseListResult ¶
type CourseListResult struct {
Data []Course `json:"data"`
}
type CourseResult ¶
type CourseResult struct {
Course `json:"data"`
}
type Instructor ¶
type Instructor struct { item.Item FirstName string `json:"first_name"` LastName string `json:"last_name"` Twitter string `json:"twitter"` Email string `json:"email"` Linkedin string `json:"linkedin"` }
func (*Instructor) MarshalEditor ¶
func (i *Instructor) MarshalEditor() ([]byte, error)
MarshalEditor writes a buffer of html to edit a Instructor within the CMS and implements editor.Editable
func (*Instructor) String ¶
func (i *Instructor) String() string
type Job ¶
type Job struct { item.Item Title string `json:"title"` Company string `json:"company"` Location string `json:"location"` Description string `json:"description"` Website string `json:"website"` Requirements string `json:"requirements"` RemoteOK bool `json:"remote_ok"` ContactPhone string `json:"contact_phone"` ContactEmail string `json:"contact_email"` ContactName string `json:"contact_name"` ExpirationDate time.Time `json:"expiration_date"` }
func init() { go func() { for { time.Sleep(30 * time.Minute) jobs := db.ContentAll("Job") for _, jj := range jobs { var j Job err := json.Unmarshal(jj, &j) if err != nil { continue } //if j.Timestamp + time.Duration(30*time.Day) { //kill it // db.D //} } } }() }
func (*Job) AfterApprove ¶
func (*Job) MarshalEditor ¶
MarshalEditor writes a buffer of html to edit a Job within the CMS and implements editor.Editable
type Lesson ¶
type Lesson struct { item.Item Name string `json:"name"` Title string `json:"title"` Subtitle string `json:"subtitle"` Content string `json:"content"` VideoCode string `json:"video_code"` GithubLesson string `json:"github_lesson"` Thumb string `json:"thumb"` }
func (*Lesson) MarshalEditor ¶
MarshalEditor writes a buffer of html to edit a Lesson within the CMS and implements editor.Editable
type LessonListResult ¶
type LessonListResult struct {
Data []Lesson `json:"data"`
}
type LessonResult ¶
type LessonResult struct {
Course `json:"data"`
}
type Module ¶
type Module struct { item.Item Name string `json:"name"` Title string `json:"title"` Subtitle string `json:"subtitle"` Description string `json:"description"` VideoCode string `json:"video_code"` Topic string `json:"topic"` Level string `json:"level"` Lessons []string `json:"lessons"` }
func (*Module) MarshalEditor ¶
MarshalEditor writes a buffer of html to edit a Modules within the CMS and implements editor.Editable
type ModuleResult ¶
type ModuleResult struct {
Data []Module `json:"data"`
}
type Resource ¶
type Resource struct { item.Item Title string `json:"title"` Description string `json:"description"` Link string `json:"link"` Category string `json:"category"` }
func (*Resource) AfterApprove ¶
func (*Resource) MarshalEditor ¶
MarshalEditor writes a buffer of html to edit a Resource within the CMS and implements editor.Editable
Click to show internal directories.
Click to hide internal directories.