services

package
v1.2.4 Latest Latest
Warning

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

Go to latest
Published: May 29, 2022 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	//FeatureAlias - the constant which identifies the feature alias which our parser will try to find in the strings
	FeatureAlias = "@featureType"

	//ProjectAlias - the constant for project annotation search
	ProjectAlias = "@project"
)

Variables

This section is empty.

Functions

func AnalyseFile added in v1.0.8

func AnalyseFile(basePath string, filePath string) (indexedFile dto.IndexedFile, err error)

AnalyseFile find the features in the destination file path basePath - will be used for generation of relation path filePath - the actual absolute file path

func AnalyseTheCode added in v1.0.8

func AnalyseTheCode(src string, ext string, ignored []string) (foundResults map[string]dto.IndexedFile, pathIndex map[string]dto.IndexedFile, importsIndex map[string][]string, err error)

AnalyseTheCode method loads the available project features in the memory

func FindFeaturesInIndex added in v1.0.8

func FindFeaturesInIndex(diff []string, absolutePath string) (result dto.AnalysisResult)

FindFeaturesInIndex method tries to find features in the prepared indexes

func GetIgnoredFilePaths

func GetIgnoredFilePaths(path string, absolutePath string) (files []string, err error)

GetIgnoredFilePaths used for generation of the list of ignored file paths, which will be ignored during the features search

Types

type Git

type Git struct {
}

Git the object struct of Git vcs

func (Git) Diff

func (g Git) Diff(path string, branch1 string, branch2 string) (files []string, err error)

Diff the main method which is used for diff files get

type VcsInterface

type VcsInterface interface {
	Diff(path string, branch1 string, branch2 string) (files []string, err error)
	// contains filtered or unexported methods
}

VcsInterface the vcs interface

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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