models

package
v0.0.0-...-5e7ce8a Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2015 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PageInit

func PageInit() error

func ProjectInit

func ProjectInit() error

func TopicInit

func TopicInit() error

Types

type Node

type Node struct {
	Name   string `json:"name"`
	IsTree bool   `json:"isTree"`
	Path   string `json:"path"`
}

Node ==== Represents a single node. I can be subtopic or topic. Each node will have `Name`, `Children`

type Page

type Page struct {
	ID        bson.ObjectId `json:"id" bson:"_id,omitempty"`
	Name      string        `json:"name" bson:"name"`
	Title     string        `json:"title" bson:"title"`
	Content   string        `json:"content" bson:"content"`
	Topic     bson.ObjectId `json:"topic" bson:"topic"`
	Project   bson.ObjectId `json:"project" bson:"project"`
	Timestamp int64         `json:"timestamp" bson:"timestamp"`
}

Page: Represents a single page

type Project

type Project struct {
	ID          bson.ObjectId `json:"id" bson:"_id,omitempty"`
	Name        string        `json:"name" bson:"name"`
	Description string        `json:"description" bson:"description"`
	Title       string        `json:"title" bson:"title"`
	Timestamp   int64         `json:"timestamp" bson:"timestamp"`
}

Project: Represents a single project

type Topic

type Topic struct {
	ID        bson.ObjectId `json:"id" bson:"_id,omitempty"`
	Name      string        `json:"name" bson:"name"`
	Title     string        `json:"title" bson:"title"`
	Project   bson.ObjectId `json:"project" bson:"project"`
	Timestamp int64         `json:"timestamp" bson:"timestamp"`
}

Topic: Represents a single topic

Jump to

Keyboard shortcuts

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