content

package
v0.0.0-...-204148f Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2017 License: BSD-3-Clause Imports: 6 Imported by: 0

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

func (c *Course) MarshalEditor() ([]byte, error)

MarshalEditor writes a buffer of html to edit a Course within the CMS and implements editor.Editable

func (*Course) Push

func (c *Course) Push() []string

func (*Course) String

func (c *Course) String() string

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) Accept

func (j *Job) Accept(w http.ResponseWriter, r *http.Request) error

func (*Job) AfterApprove

func (j *Job) AfterApprove(w http.ResponseWriter, r *http.Request) error

func (*Job) Approve

func (j *Job) Approve(w http.ResponseWriter, r *http.Request) error

func (*Job) MarshalEditor

func (j *Job) MarshalEditor() ([]byte, error)

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

func (l *Lesson) MarshalEditor() ([]byte, error)

MarshalEditor writes a buffer of html to edit a Lesson within the CMS and implements editor.Editable

func (*Lesson) String

func (l *Lesson) String() string

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

func (m *Module) MarshalEditor() ([]byte, error)

MarshalEditor writes a buffer of html to edit a Modules within the CMS and implements editor.Editable

func (*Module) String

func (m *Module) String() string

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) Accept

func (res *Resource) Accept(w http.ResponseWriter, r *http.Request) error

func (*Resource) AfterApprove

func (res *Resource) AfterApprove(w http.ResponseWriter, r *http.Request) error

func (*Resource) Approve

func (res *Resource) Approve(w http.ResponseWriter, r *http.Request) error

func (*Resource) MarshalEditor

func (r *Resource) MarshalEditor() ([]byte, error)

MarshalEditor writes a buffer of html to edit a Resource within the CMS and implements editor.Editable

Jump to

Keyboard shortcuts

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