app

package
v0.0.0-...-96d7121 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 3, 2018 License: LGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HTML

func HTML(summary *Summary) ([]byte, error)

func NoLogging

func NoLogging(string, ...interface{})

Types

type Commit

type Commit struct {
	SHA              string     `json:"sha"`
	Description      string     `json:"description"`
	RelevantPackages []*Package `json:"relevantPackages"` // This may be empty if only artifacts in non-Go subdirectories changed.
}

type Differ

type Differ struct {
	// contains filtered or unexported fields
}

func NewDiffer

func NewDiffer(goPath string, importer func(string) (*importer.PackageGraph, error), includeCommits, includePaths bool, logger Logger) *Differ

func (*Differ) Diff

func (d *Differ) Diff(importPath, sha string, artifacts bool) (*Summary, error)

type Logger

type Logger func(string, ...interface{})

type Package

type Package struct {
	ImportPath   string   `json:"name"`
	PathFromRoot []string `json:"pathFromRoot"`
}

type Summary

type Summary struct {
	RootImportPath string     `json:"rootImportPath"`
	SHA            string     `json:"sha"`
	Packages       []*Package `json:"packages"`
	Commits        []*Commit  `json:"commits"`
	Files          []string   `json:"files"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL