models

package
v0.0.0-...-b474970 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2020 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fix

type Fix struct {
	Link
	Severity   severity.Severity `json:"severity"`
	Reason     string            `json:"reason"`
	Suggestion string            `json:"suggestion"`
}

Fix represents fix for given link that is shown/suggested to the user.

type Link struct {
	Path  string   `json:"file"`
	Line  int      `json:"line"`
	Index int      `json:"index"`
	URL   *url.URL `json:"url"`
}

Link is single link found in a file. This structure holds more information about the link so that it can be later found, fixed/replaced and otherwise adjusted based on the users preferences.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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