Documentation ¶
Index ¶
- type InterpreterRepo
- func (r *InterpreterRepo) Create(interpreter model.Interpreter) (id uint, err error)
- func (r *InterpreterRepo) Delete(id uint) (err error)
- func (r *InterpreterRepo) FindDuplicate(lang string, id uint) (po model.Interpreter, err error)
- func (r *InterpreterRepo) Get(id uint) (po model.Interpreter, err error)
- func (r *InterpreterRepo) List() (pos []model.Interpreter, err error)
- func (r *InterpreterRepo) Update(interpreter model.Interpreter) error
- type JobRepo
- func (r *JobRepo) AddRetry(po *model.Job) (err error)
- func (r *JobRepo) Delete(id uint) (err error)
- func (r *JobRepo) Get(id uint) (po model.Job, err error)
- func (r *JobRepo) ListByStatus(status string) (jobs []model.Job, err error)
- func (r *JobRepo) Query() (pos []model.Job, err error)
- func (r *JobRepo) Save(po *model.Job) (err error)
- func (r *JobRepo) SetCanceled(po model.Job) (err error)
- func (r *JobRepo) Update(po *model.Job) (err error)
- func (r *JobRepo) UpdateStatus(job *model.Job, status commConsts.JobStatus, isStart, isEnd bool) (err error)
- type ProxyRepo
- func (r *ProxyRepo) Create(proxy model.Proxy) (id uint, err error)
- func (r *ProxyRepo) Delete(id uint) (err error)
- func (r *ProxyRepo) FindDuplicate(path string, id uint) (po model.Proxy, err error)
- func (r *ProxyRepo) Get(id uint) (po model.Proxy, err error)
- func (r *ProxyRepo) List() (pos []model.Proxy, err error)
- func (r *ProxyRepo) Update(proxy model.Proxy) error
- type ServerRepo
- func (r *ServerRepo) Create(server model.Server) (id uint, err error)
- func (r *ServerRepo) Delete(id uint) (err error)
- func (r *ServerRepo) FindDuplicate(path string, id uint) (po model.Server, err error)
- func (r *ServerRepo) Get(id uint) (po model.Server, err error)
- func (r *ServerRepo) List() (pos []model.Server, err error)
- func (r *ServerRepo) Update(server model.Server) error
- type SiteRepo
- func (r *SiteRepo) Create(site *model.Site) (id uint, isDuplicate bool, err error)
- func (r *SiteRepo) Delete(id uint) (err error)
- func (r *SiteRepo) FindDuplicate(name, url string, id uint) (po model.Site, err error)
- func (r *SiteRepo) Get(id uint) (po model.Site, err error)
- func (r *SiteRepo) GetCurrSiteByUser() (currSite model.Site, err error)
- func (r *SiteRepo) Paginate(req serverDomain.ReqPaginate) (data domain.PageData, err error)
- func (r *SiteRepo) RemoveDefaultTag() (err error)
- func (r *SiteRepo) SetCurrSite(id uint) (err error)
- func (r *SiteRepo) Update(site model.Site) (isDuplicate bool, err error)
- type StatisticRepo
- func (r *StatisticRepo) Create(statistics *model.Statistic) (id uint, isDuplicate bool, err error)
- func (r *StatisticRepo) Delete(id uint) (err error)
- func (r *StatisticRepo) FindDuplicate(path string, id uint) (po model.Statistic, err error)
- func (r *StatisticRepo) Get(id uint) (po model.Statistic, err error)
- func (r *StatisticRepo) GetByPath(path string) (po model.Statistic, err error)
- func (r *StatisticRepo) Update(statistics model.Statistic) (isDuplicate bool, err error)
- func (r *StatisticRepo) UpdateStatistic(path string, total, success, fail int, logPath string) (err error)
- type WorkspaceRepo
- func (r *WorkspaceRepo) Create(workspace model.Workspace) (id uint, err error)
- func (r *WorkspaceRepo) Delete(id uint) (err error)
- func (r *WorkspaceRepo) DeleteByPath(path string, productId uint) (err error)
- func (r *WorkspaceRepo) DeleteBySite(siteId uint) (err error)
- func (r *WorkspaceRepo) FindByName(name string, ids ...uint) (po model.Workspace, err error)
- func (r *WorkspaceRepo) FindByPath(workspacePath string) (po model.Workspace, err error)
- func (r *WorkspaceRepo) FindDuplicate(name, url string, id, productId uint, siteId uint) (po model.Workspace, err error)
- func (r *WorkspaceRepo) Get(id uint) (po model.Workspace, err error)
- func (r *WorkspaceRepo) GetCurrWorkspaceByUser() (currWorkspace model.Workspace, err error)
- func (r *WorkspaceRepo) ListByProduct(siteId, productId uint) (pos []model.Workspace, err error)
- func (r *WorkspaceRepo) ListBySite(siteId uint) (pos []model.Workspace, err error)
- func (r *WorkspaceRepo) ListWorkspace() (workspaces []model.Workspace, err error)
- func (r *WorkspaceRepo) Paginate(req serverDomain.WorkspaceReqPaginate) (data domain.PageData, err error)
- func (r *WorkspaceRepo) RemoveDefaultTag() (err error)
- func (r *WorkspaceRepo) SetCurrWorkspace(pth string) (err error)
- func (r *WorkspaceRepo) SetProxyId(id, proxyId uint) (err error)
- func (r *WorkspaceRepo) Update(workspace model.Workspace) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InterpreterRepo ¶
func NewInterpreterRepo ¶
func NewInterpreterRepo() *InterpreterRepo
func (*InterpreterRepo) Create ¶
func (r *InterpreterRepo) Create(interpreter model.Interpreter) (id uint, err error)
func (*InterpreterRepo) Delete ¶
func (r *InterpreterRepo) Delete(id uint) (err error)
func (*InterpreterRepo) FindDuplicate ¶
func (r *InterpreterRepo) FindDuplicate(lang string, id uint) (po model.Interpreter, err error)
func (*InterpreterRepo) Get ¶
func (r *InterpreterRepo) Get(id uint) (po model.Interpreter, err error)
func (*InterpreterRepo) List ¶
func (r *InterpreterRepo) List() (pos []model.Interpreter, err error)
func (*InterpreterRepo) Update ¶
func (r *InterpreterRepo) Update(interpreter model.Interpreter) error
type JobRepo ¶
func NewJobRepo ¶
func NewJobRepo() *JobRepo
func (*JobRepo) ListByStatus ¶
func (*JobRepo) UpdateStatus ¶
type ProxyRepo ¶
func NewProxyRepo ¶
func NewProxyRepo() *ProxyRepo
func (*ProxyRepo) FindDuplicate ¶
type ServerRepo ¶
func NewServerRepo ¶
func NewServerRepo() *ServerRepo
func (*ServerRepo) Delete ¶
func (r *ServerRepo) Delete(id uint) (err error)
func (*ServerRepo) FindDuplicate ¶
type SiteRepo ¶
func NewSiteRepo ¶
func NewSiteRepo() *SiteRepo
func (*SiteRepo) FindDuplicate ¶
func (*SiteRepo) GetCurrSiteByUser ¶
func (*SiteRepo) Paginate ¶
func (r *SiteRepo) Paginate(req serverDomain.ReqPaginate) (data domain.PageData, err error)
func (*SiteRepo) RemoveDefaultTag ¶
func (*SiteRepo) SetCurrSite ¶
type StatisticRepo ¶
func NewStatisticRepo ¶
func NewStatisticRepo() *StatisticRepo
func (*StatisticRepo) Delete ¶
func (r *StatisticRepo) Delete(id uint) (err error)
func (*StatisticRepo) FindDuplicate ¶
func (*StatisticRepo) GetByPath ¶
func (r *StatisticRepo) GetByPath(path string) (po model.Statistic, err error)
func (*StatisticRepo) Update ¶
func (r *StatisticRepo) Update(statistics model.Statistic) (isDuplicate bool, err error)
func (*StatisticRepo) UpdateStatistic ¶
func (r *StatisticRepo) UpdateStatistic(path string, total, success, fail int, logPath string) (err error)
type WorkspaceRepo ¶
func NewWorkspaceRepo ¶
func NewWorkspaceRepo() *WorkspaceRepo
func (*WorkspaceRepo) Create ¶
func (r *WorkspaceRepo) Create(workspace model.Workspace) (id uint, err error)
func (*WorkspaceRepo) Delete ¶
func (r *WorkspaceRepo) Delete(id uint) (err error)
func (*WorkspaceRepo) DeleteByPath ¶
func (r *WorkspaceRepo) DeleteByPath(path string, productId uint) (err error)
func (*WorkspaceRepo) DeleteBySite ¶
func (r *WorkspaceRepo) DeleteBySite(siteId uint) (err error)
func (*WorkspaceRepo) FindByName ¶
func (*WorkspaceRepo) FindByPath ¶
func (r *WorkspaceRepo) FindByPath(workspacePath string) (po model.Workspace, err error)
func (*WorkspaceRepo) FindDuplicate ¶
func (*WorkspaceRepo) GetCurrWorkspaceByUser ¶
func (r *WorkspaceRepo) GetCurrWorkspaceByUser() (currWorkspace model.Workspace, err error)
func (*WorkspaceRepo) ListByProduct ¶
func (r *WorkspaceRepo) ListByProduct(siteId, productId uint) (pos []model.Workspace, err error)
func (*WorkspaceRepo) ListBySite ¶
func (r *WorkspaceRepo) ListBySite(siteId uint) (pos []model.Workspace, err error)
func (*WorkspaceRepo) ListWorkspace ¶
func (r *WorkspaceRepo) ListWorkspace() (workspaces []model.Workspace, err error)
func (*WorkspaceRepo) Paginate ¶
func (r *WorkspaceRepo) Paginate(req serverDomain.WorkspaceReqPaginate) (data domain.PageData, err error)
func (*WorkspaceRepo) RemoveDefaultTag ¶
func (r *WorkspaceRepo) RemoveDefaultTag() (err error)
func (*WorkspaceRepo) SetCurrWorkspace ¶
func (r *WorkspaceRepo) SetCurrWorkspace(pth string) (err error)
func (*WorkspaceRepo) SetProxyId ¶
func (r *WorkspaceRepo) SetProxyId(id, proxyId uint) (err error)
Click to show internal directories.
Click to hide internal directories.