example

package
v0.0.0-...-4ea827c Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2016 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PageMgr *_PageMgr
View Source
var SectionMgr *_SectionMgr

Functions

func PageAddInsertCallback

func PageAddInsertCallback(cb func(obj EzOrmObj))

func PageAddUpdateCallback

func PageAddUpdateCallback(cb func(obj EzOrmObj))

func PageInsertCallback

func PageInsertCallback(o *Page)

func PageUpdateCallback

func PageUpdateCallback(o *Page)

Types

type Page

type Page struct {
	ID bson.ObjectId `bson:"_id,omitempty"`

	Title string `bson:"Title"`

	Hits int32 `bson:"Hits"`

	Slug string `bson:"Slug"`

	Sections []Section `bson:"Sections"`

	Meta map[string][]map[string]int `bson:"Meta"`
	// contains filtered or unexported fields
}

func (*Page) GetClassName

func (p *Page) GetClassName() string

func (*Page) GetNameSpace

func (p *Page) GetNameSpace() string

func (*Page) Id

func (o *Page) Id() string

func (*Page) InsertUnique

func (o *Page) InsertUnique(query interface{}) (saved bool, err error)

func (*Page) IsSearchEnabled

func (o *Page) IsSearchEnabled() bool

func (*Page) Save

func (o *Page) Save() (info *mgo.ChangeInfo, err error)

type Section

type Section struct {
	Key string `bson:"Key"`

	Val int32 `bson:"Val"`

	Data map[string]string `bson:"Data"`
}

func (*Section) GetClassName

func (p *Section) GetClassName() string

func (*Section) GetNameSpace

func (p *Section) GetNameSpace() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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