Versions in this module Expand all Collapse all v1 v1.0.1 Feb 3, 2021 v1.0.0 Jan 18, 2021 Changes in this version + const StatusCreated + const StatusDeleted + const StatusUpdated + type Model interface + Create func(resource interface{}, context interface{}) error + Delete func(context interface{}, whereSql string, args ...interface{}) error + Get func(whereSql string, args ...interface{}) (interface{}, error) + GetList func(whereSql string, args ...interface{}) ([]interface{}, error) + Sync func() error + SyncSingle func(whereSql string, args ...interface{}) (interface{}, error) + Table func() database.Table + Update func(resource interface{}, context interface{}, whereSql string, ...) error + func New(db database.Database, resource interface{}, topic string, isCache bool, ...) (Model, error)