Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService() *Service
func (*Service) CreateSyncJob ¶
func (*Service) GetSyncJobs ¶
type SyncJob ¶
type SyncJob struct {
ID uint `json:"id" gorm:"primaryKey"`
Name string `json:"name" gorm:"not null"`
UserID string `json:"user_id" gorm:"index;not null"`
Source string `json:"source" gorm:"not null"`
Destination string `json:"destination" gorm:"not null"`
Status SyncStatus `json:"status" gorm:"default:0"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
DeletedAt gorm.DeletedAt `json:"-" gorm:"index"`
}
type SyncStatus ¶
type SyncStatus int
const ( SyncStatusPending SyncStatus = iota SyncStatusRunning SyncStatusCompleted SyncStatusFailed )
func (SyncStatus) String ¶
func (s SyncStatus) String() string
Click to show internal directories.
Click to hide internal directories.