Documentation
¶
Index ¶
- func SendFatalError(job, message string, errorChan chan ProgressError)
- func SendProgressError(job, message string, errorChan chan ProgressError)
- func SendProgressUpdate(job, message string, completed bool, progressChan chan *ProgressUpdate)
- func SendProgressWarning(job, message string, progressChan chan *ProgressUpdate)
- type Commit
- type FlatHistoricalReport
- type FlatReport
- type HashedChange
- type ProgressError
- type ProgressUpdate
- type Report
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SendFatalError ¶
func SendFatalError(job, message string, errorChan chan ProgressError)
func SendProgressError ¶
func SendProgressError(job, message string, errorChan chan ProgressError)
func SendProgressUpdate ¶
func SendProgressUpdate(job, message string, completed bool, progressChan chan *ProgressUpdate)
func SendProgressWarning ¶
func SendProgressWarning(job, message string, progressChan chan *ProgressUpdate)
Types ¶
type Commit ¶
type Commit struct {
CreatedAt time.Time `json:"-"`
UpdatedAt time.Time `json:"-"`
ID uint `gorm:"primaryKey" json:"-"`
Hash string `json:"commitHash"`
Message string `json:"message"`
Author string `json:"author"`
AuthorEmail string `gorm:"index" json:"authorEmail"`
CommitDate time.Time `json:"committed"`
Changes *model.DocumentChanges `gorm:"-" json:"changeReport,omitempty"`
SerializedChanges []byte `gorm:"-" json:"-"`
Data []byte `gorm:"-" json:"-"`
OldData []byte `gorm:"-" json:"-"`
Document libopenapi.Document `gorm:"-" json:"-"`
OldDocument libopenapi.Document `gorm:"-" json:"-"`
RepoDirectory string `gorm:"-" json:"-"`
FilePath string `gorm:"-" json:"-"`
Synthetic bool `gorm:"-" json:"-"`
}
type FlatHistoricalReport ¶ added in v0.0.54
type FlatHistoricalReport struct {
GitRepoPath string `json:"gitRepoPath"`
GitFilePath string `json:"gitFilePath"`
Filename string `json:"filename"`
DateGenerated string `json:"dateGenerated"`
Reports []*FlatReport `json:"reports" `
}
type FlatReport ¶ added in v0.0.54
type HashedChange ¶ added in v0.0.65
type HashedChange struct {
*model.Change
ChangeHash string `json:"changeHash,omitempty"`
RawPath string `json:"rawPath,omitempty"`
}
func (*HashedChange) HashChange ¶ added in v0.0.65
func (hc *HashedChange) HashChange()
func (*HashedChange) MarshalJSON ¶ added in v0.0.65
func (hc *HashedChange) MarshalJSON() ([]byte, error)
type ProgressError ¶
func (ProgressError) Error ¶
func (p ProgressError) Error() string
type ProgressUpdate ¶
Click to show internal directories.
Click to hide internal directories.