stories

package
v0.0.0-...-a53b4d7 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2015 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Collage

type Collage struct {
	Title   string `bson:"title" json:"title" xml:"title"`
	Content string `bson:"content" json:"content" xml:"content"`
}

type Collages

type Collages []Collage

type Stories

type Stories []Story

func GetAllStories

func GetAllStories() (stories Stories, err error)

type Story

type Story struct {
	ID       bson.ObjectId `bson:"_id" json:"id" xml:"id,attr"`
	Title    string        `bson:"title" json:"title" xml:"title"`
	Content  string        `bson:"content" json:"content" xml:"content"`
	Collages Collages      `bson:"collages" json:"collages,omitempty" xml:"collages"`
}

func (*Story) Get

func (s *Story) Get() error

type Timeline

type Timeline struct {
	ID      bson.ObjectId `bson:"_id" json:"id" xml:"id,attr"`
	Author  string        `bson:"author" json:"author" xml:"author"`
	Title   string        `bson:"title" json:"title" xml:"title"`
	Stories Stories       `bson:"stories" json:"stories,omitempty" xml:"stories"`
}

func (*Timeline) Get

func (t *Timeline) Get() error

type Timelines

type Timelines []Timeline

func GetAllTimelines

func GetAllTimelines() (timelines Timelines, err error)

Jump to

Keyboard shortcuts

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