Documentation ¶
Index ¶
- Constants
- func Begin(ctx ...context.Context) (*xorm.Session, error)
- func DeleteCache(tableName string, pk ...interface{}) error
- func Engine() *xorm.EngineGroup
- func Init(cnf *configure.DB)
- func LastETag(id int32) (etag string, e error)
- func LastModified(id int32) (modtime time.Time, e error)
- func Master() *xorm.Engine
- func Session(ctx ...context.Context) *xorm.Session
- func SetETag(id int32, etag string) (int64, error)
- func SetLastModified(id int32, modtime time.Time) (int64, error)
- func Slave() *xorm.Engine
- func SyncTable(session *xorm.Session, beans ...interface{}) (e error)
- type ModtimeHelper
- func (h ModtimeHelper) ETag(session *xorm.Session, etag string) (int64, error)
- func (h ModtimeHelper) Init(session *xorm.Session, unix int64, etag, description string) (e error)
- func (h ModtimeHelper) LastETag() (string, error)
- func (h ModtimeHelper) LastModified() (time.Time, error)
- func (h ModtimeHelper) Modified(session *xorm.Session, modtime time.Time) (int64, error)
Constants ¶
View Source
const ( ModtimeUser = 1 ModtimeSlave = 2 ModtimeGroup = 3 )
Variables ¶
This section is empty.
Functions ¶
func DeleteCache ¶
func Engine ¶
func Engine() *xorm.EngineGroup
Types ¶
type ModtimeHelper ¶
type ModtimeHelper int32
ModtimeHelper modtime update helper
func (ModtimeHelper) LastETag ¶
func (h ModtimeHelper) LastETag() (string, error)
func (ModtimeHelper) LastModified ¶
func (h ModtimeHelper) LastModified() (time.Time, error)
Click to show internal directories.
Click to hide internal directories.