Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChangeType ¶
type ChangeType string
ChangeType is type of change that affects a line, such as added or removed.
const ( // ChangeAdd means a line was added. ChangeAdd ChangeType = "add" // ChangeRemove means a line was removed. ChangeRemove ChangeType = "remove" // ChangeNone means a line was unchanged. ChangeNone ChangeType = "none" )
type Line ¶
type Line struct { Line string ChangeType ChangeType LineNo int Issues []db.Issue }
A Line represents a single line in a diff.
type VCSReader ¶
type VCSReader interface { // Diff returns a multi file unified diff as an io.ReadCloser, return nil // if no diff could be found or returns an error if an error is found. Diff(ctx context.Context, repositoryID int, commitFrom string, commitTo string, requestNumber int) (io.ReadCloser, error) }
A VCSReader reads information about a completed analysis.
type Web ¶
type Web struct {
// contains filtered or unexported fields
}
Web handles general web/html responses (not API hooks).
func (*Web) AnalysisHandler ¶
func (web *Web) AnalysisHandler(w http.ResponseWriter, r *http.Request)
AnalysisHandler displays a single analysis.
func (*Web) NotFoundHandler ¶
func (web *Web) NotFoundHandler(w http.ResponseWriter, r *http.Request)
NotFoundHandler displays a 404 not found error
Click to show internal directories.
Click to hide internal directories.