post

package
v0.0.0-...-bb4d10d Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2014 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Post

type Post struct {
	Id       int64
	Content  string `orm:"type(text)"`
	Created  time.Time
	Modified time.Time
}

type PostRepository

type PostRepository struct {
}

func (*PostRepository) Delete

func (this *PostRepository) Delete(p *Post) error

func (*PostRepository) FindAll

func (this *PostRepository) FindAll() ([]*Post, error)

func (*PostRepository) FindById

func (this *PostRepository) FindById(id int64) (*Post, error)

func (*PostRepository) Save

func (this *PostRepository) Save(p *Post) error

Jump to

Keyboard shortcuts

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