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 CanvasDirection
- type CanvasPosition
- type ChangeStatistics
- type Commit
- type CommitStatistics
- type EdgeData
- type FlatHistoricalReport
- type FlatReport
- type GraphResult
- type HTMLReport
- type HTMLReportItem
- type HistoricalReport
- type IconData
- type NodeData
- type PortData
- type PortSide
- type ProgressError
- type ProgressUpdate
- type Report
- type TreeNode
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 CanvasDirection ¶
type CanvasDirection string
type CanvasPosition ¶
type CanvasPosition string
type ChangeStatistics ¶
type ChangeStatistics struct { Total int `json:"total"` TotalBreaking int `json:"totalBreaking"` Added int `json:"added"` Modified int `json:"modified"` Removed int `json:"removed"` BreakingAdded int `json:"breakingAdded"` BreakingModified int `json:"breakingModified"` BreakingRemoved int `json:"breakingRemoved"` Commit *CommitStatistics `json:"commit,omitempty"` }
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"` 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:"-"` }
type CommitStatistics ¶
type EdgeData ¶
type EdgeData[T any] struct { Id string `json:"id,omitempty"` Disabled *bool `json:"disabled,omitempty"` Text string `json:"text,omitempty"` From string `json:"from,omitempty"` To string `json:"to,omitempty"` FromPort string `json:"fromPort,omitempty"` ToPort string `json:"toPort,omitempty"` Data T `json:"data,omitempty"` ClassName string `json:"className,omitempty"` ContainerClassName string `json:"containerClassName,omitempty"` ArrowHeadType any `json:"arrowHeadType,omitempty"` Parent string `json:"parent,omitempty"` SelectionDisabled string `json:"selectionDisabled,omitempty"` }
type FlatHistoricalReport ¶
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 ¶
type GraphResult ¶
type HTMLReport ¶
type HTMLReport struct { DateGenerated string `json:"dateGenerated"` ReportItems []*HTMLReportItem `json:"reportItems"` UseCDN bool `json:"useCDN"` }
type HTMLReportItem ¶
type HTMLReportItem struct { OriginalSpec string `json:"originalSpec"` ModifiedSpec string `json:"modifiedSpec"` DocumentChanges *wcModel.DocumentChanges `json:"documentChanges,omitempty"` TreeNodes []*TreeNode `json:"tree,omitempty"` Graph *GraphResult `json:"graph,omitempty"` Statistics *ChangeStatistics `json:"statistics"` }
type HistoricalReport ¶
type NodeData ¶
type NodeData[T any] struct { Id string `json:"id,omitempty"` Disabled *bool `json:"disabled,omitempty"` Text any `json:"text,omitempty"` Height *int `json:"height,omitempty"` Width *int `json:"width,omitempty"` Parent string `json:"parent,omitempty"` Ports []*PortData `json:"ports,omitempty"` Icon *IconData `json:"icon,omitempty"` NodePadding []int `json:"nodePadding,omitempty"` Data T `json:"data,omitempty"` ClassName string `json:"className,omitempty"` LayoutOptions any `json:"layoutOptions,omitempty"` SelectionDisabled *bool `json:"selectionDisabled,omitempty"` }
type PortData ¶
type PortData struct { Id string `json:"id,omitempty"` Height *int `json:"height,omitempty"` Width *int `json:"weight,omitempty"` Hidden bool `json:"hidden,omitempty"` ClassName string `json:"className,omitempty"` Alignment CanvasPosition `json:"alignment,omitempty"` Side PortSide `json:"side,omitempty"` }
type ProgressError ¶
func (ProgressError) Error ¶
func (p ProgressError) Error() string
type ProgressUpdate ¶
type TreeNode ¶
type TreeNode struct { TitleString string `json:"titleString"` Title string `json:"title,omitempty"` Key string `json:"key"` IsLeaf bool `json:"isLeaf,omitempty"` Selectable bool `json:"selectable,omitempty"` TotalChanges int `json:"totalChanges,omitempty"` BreakingChanges int `json:"breakingChanges,omitempty"` Change *wcModel.Change `json:"change,omitempty"` Disabled bool `json:"disabled,omitempty"` Children []*TreeNode `json:"children,omitempty"` }
Click to show internal directories.
Click to hide internal directories.