Documentation
¶
Index ¶
Constants ¶
View Source
const ( ECode060201 = e.Code0602 + "01" ECode060202 = e.Code0602 + "02" ECode060203 = e.Code0602 + "03" )
View Source
const ( MaxGoRoutinesAllowed = 1000 // The maximum allowed number of go routines DefaultMaxNumGoRoutines = 25 ECode060101 = e.Code0601 + "01" ECode060102 = e.Code0601 + "02" ECode060103 = e.Code0601 + "03" ECode060104 = e.Code0601 + "04" ECode060105 = e.Code0601 + "05" ECode060106 = e.Code0601 + "06" )
View Source
const (
MIGRATION_CODE = "sync"
)
Variables ¶
This section is empty.
Functions ¶
func GetMigrationList ¶
GetMigrationList returns this packages migration list
func SyncUpsert ¶
SyncUpsert performs the DB operation to upsert a record in the sync_queue
Types ¶
type Provider ¶
type Provider interface { GetSyncQueueObject(itemID int, syncItemType string) *model.SyncQueue HandleItemQueue(db *sql.Connection, item *model.SyncQueue) (err error) Send(db *sql.Connection, so *model.SyncQueue) (err error) }
Provider interface for the sync services
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
NewService returns an instance of a service provider
Click to show internal directories.
Click to hide internal directories.