dataFlowService

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDataflow

func CreateDataflow(dataflow []models.DataFlowStep, content []byte, startLine int, language, filePath, variable string) []models.DataFlow

----------------------------------------------------------------------------- CreateDataflow - Creates a data flow based on the provided steps and content. -----------------------------------------------------------------------------

Parameters:

  • dataflow ([]models.DataFlowStep): List of data flow steps.
  • content ([]byte): File content as a byte slice.
  • startLine (int): Starting line number in the file.
  • language (string): Programming language of the file.
  • filePath (string): Path to the file.
  • variable (string): Variable name to highlight.

Returns:

  • ([]models.DataFlow): List of created data flow objects.

-----------------------------------------------------------------------------

func CreateDataflowInitial

func CreateDataflowInitial(config models.Config) []models.DataFlow

----------------------------------------------------------------------------- CreateDataflowInitial - Creates an initial data flow step based on a given configuration. -----------------------------------------------------------------------------

Parameters:

  • config (models.Config): Configuration object containing file path, start line, variable, and language.

Returns:

  • ([]models.DataFlow): List containing the initial data flow object.

-----------------------------------------------------------------------------

func RemoveDuplicateDataFlowStep

func RemoveDuplicateDataFlowStep(elements []models.DataFlowStep, startLine uint32, variable string) []models.DataFlowStep

----------------------------------------------------------------------------- RemoveDuplicateDataFlowStep - Removes duplicates in the data flow while preserving the order. -----------------------------------------------------------------------------

Parameters:

  • elements ([]models.DataFlowStep): List of data flow steps.
  • startLine (uint32): Starting line number in the file.
  • variable (string): Variable name to check for duplicates.

Returns:

  • ([]models.DataFlowStep): List of data flow steps without duplicates.

-----------------------------------------------------------------------------

Types

This section is empty.

Jump to

Keyboard shortcuts

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