pages

package
v0.0.0-...-cbaa3f3 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2017 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeletePage

func DeletePage(db *gorp.DbMap, p *Page) error

func UpdatePage

func UpdatePage(db *gorp.DbMap, p *Page) error

Types

type Page

type Page struct {
	Id          int64
	Title       string
	Slug        string
	Description string
	Body        string
	Owner       int64
	PhotoId     int64

	Created int64
	Updated int64
	Deleted int64
	Version int64
}

func CreatePage

func CreatePage(db *gorp.DbMap, p *Page) (*Page, error)

func GetPage

func GetPage(db *gorp.DbMap, slug string) (*Page, error)

func GetPages

func GetPages(db *gorp.DbMap, offset, limit int64) ([]Page, error)

Jump to

Keyboard shortcuts

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