Documentation
¶
Index ¶
Constants ¶
View Source
const ( TopicSync string = "sync" StatusCreated string = "created" StatusUpdated string = "updated" StatusDeleted string = "deleted" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Model ¶
type Model interface {
Table() database.Table
GetList() ([]interface{}, error)
Get(id int) (interface{}, error)
Create(resource Id, context interface{}) (int, error)
Update(resource Id, context interface{}) error
Delete(id int, context interface{}) error
Sync() error
SyncSingle(id int) (interface{}, error)
SetBeforeInsertLayer(layer func(id int, resource interface{}))
SetBeforeEraseLayer(layer func(id int, resource interface{}))
SetBeforeNotifyLayer(layer func(id int, e *event.Event))
}
type PrimaryKey ¶
type PrimaryKey struct {
database.PrimaryKey
}
func (*PrimaryKey) GetId ¶
func (p *PrimaryKey) GetId() int
func (*PrimaryKey) SetId ¶
func (p *PrimaryKey) SetId(id int)
Click to show internal directories.
Click to hide internal directories.