project

package
v0.0.0-...-c937b9e Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2015 License: MIT Imports: 3 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Member

type Member struct {
	User bson.ObjectId `json:"user"`
}

type MemberList

type MemberList struct {
	pagination.Meta `json:",inline"`
	Results         []*Member `json:"results"`
}

type Project

type Project struct {
	Id      bson.ObjectId `json:"id,omitempty" bson:"_id"`
	Name    string        `json:"name"`
	Owner   bson.ObjectId `json:"owner,omitempty"`
	Created time.Time     `json:"created,omitempty"`
	Updated time.Time     `json:"updated,omitempty"`

	Members []*Member `json:"members" bson:"members"`
}

func (*Project) GetMember

func (p *Project) GetMember(userId bson.ObjectId) *Member

func (*Project) String

func (p *Project) String() string

type ProjectList

type ProjectList struct {
	pagination.Meta `json:",inline"`
	Results         []*Project `json:"results"`
}

Jump to

Keyboard shortcuts

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