Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSyncLockMapper ¶
func NewSyncLockMapper() synclockimpl.SyncLockMapper
Types ¶
type Config ¶
type Config struct { Conn string `json:"conn" required:"true"` ConnMaxLifetime int `json:"conn_max_life_time"` MaxOpenConns int `json:"max_open_conns"` MaxIdleConns int `json:"max_idle_conns"` TableName string `json:"table_name" required:"true"` }
func (*Config) SetDefault ¶
func (cfg *Config) SetDefault()
type RepoSyncLock ¶
type RepoSyncLock struct { Id int `json:"-" gorm:"column:id"` Owner string `json:"-" gorm:"column:owner"` RepoId string `json:"-" gorm:"column:repo_id"` Status string `json:"status" gorm:"column:status"` Version int `json:"-" gorm:"column:version"` LastCommit string `json:"last_commit" gorm:"column:last_commit"` }
func (*RepoSyncLock) TableName ¶
func (r *RepoSyncLock) TableName() string
Click to show internal directories.
Click to hide internal directories.