controllers

package
v0.0.0-...-d0dead0 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddFunction

func AddFunction(module *model.Module, function *model.Function) (*model.Function, error)

AddFunction: add a model.Module with given moduleId, functionName and functionPath.

Return an error if error in database.Database save.

func AddModule

func AddModule(project *model.Project, module *model.Module) (*model.Module, error)

AddModule: add a model.Project with given projectId, moduleName and modulePath.

Return an error if error in database.Database save.

func AddProject

func AddProject(project *model.Project) (*model.Project, error)

AddProject: add a model.Project with given projectName and projectPath.

Return an error if error in database.Database save.

func DeleteFunction

func DeleteFunction(function *model.Function) (*model.Function, error)

func DeleteModule

func DeleteModule(module *model.Module) (*model.Module, error)

FindModuleById : search for model.Module with model.Module FindById method and delete it along with dependencies.

Return an error if no module found or error in database.Database deletion.

func DeleteModuleDependencies

func DeleteModuleDependencies(module *model.Module) (*model.Module, error)

DeleteModuleDependencies: search for list of all links inside model.Module and delete them.

func DeleteProject

func DeleteProject(project *model.Project) (*model.Project, error)

DeleteProject: Delete a model.Project with given Id with it's dependencies.

Return an error if no project found or error in database.Database deletion.

func DeleteProjectDependencies

func DeleteProjectDependencies(project *model.Project) (*model.Project, error)

func FindFunctionById

func FindFunctionById(function *model.Function) (*model.Function, error)

FindFunctionById : search for model.Function with model.Function FindById method.

Return an error if no module or function found, or error in database.Database query.

func FindFunctionByName

func FindFunctionByName(module *model.Module, function *model.Function) (functions []model.Function, err error)

FindFunctionByName : search for model.Function with FindByName method.

Return an error if no module or function found or error in database.Database query.

func FindFunctionByPath

func FindFunctionByPath(module *model.Module, function *model.Function) (functions []model.Function, err error)

FindFunctionByPath : search for model.Function with FindByPath method.

Return an error if no module or function found or error in database.Database query.

func FindModuleById

func FindModuleById(module *model.Module) (*model.Module, error)

FindModuleById : search for model.Module with model.Module FindById method.

Return an error if no project or module found, or error in database.Database query.

func FindModuleByName

func FindModuleByName(project *model.Project, module *model.Module) (modules []model.Module, err error)

FindModuleByName : search for model.Module with FindByName method.

Return an error if no project or module found or error in database.Database query.

func FindModuleByPath

func FindModuleByPath(module *model.Module) (*model.Module, error)

FindModuleByPath : search for model.Module with model.Module FindByPath method.

Return an error if no project or module found, or error in database.Database query.

func FindProjectById

func FindProjectById(project *model.Project) (*model.Project, error)

FindProjectById : search for model.Project with model.Project FindById method.

Return an error if no project found or error in database.Database query.

func FindProjectByName

func FindProjectByName(project *model.Project) (projects []model.Project, err error)

FindProjectByName : search for model.Project with FindByName method.

Return an error if no project found or error in database.Database query.

func FindProjectByPath

func FindProjectByPath(project *model.Project) (*model.Project, error)

FindProjectByPath : search for model.Project with FindByPath method.

Return an error if no project found or error in database.Database query.

func ListFunctions

func ListFunctions(module *model.Module) ([]model.Function, error)

ListFunctions: search for list of all model.Model with associated model.ListModules ID.

Return an error if no module found or error in database.Database listing.

func ListModules

func ListModules(project *model.Project) ([]model.Module, error)

ListModules: search for list of all model.Module with associated model.ListProjects ID.

Return an error if no project found or error in database.Database listing.

func ListProjects

func ListProjects() ([]model.Project, error)

ListProjects: search for list of all model.Project with model.ListProjects.

Return an error if no project found or error in database.Database listing.

func UpdateFunction

func UpdateFunction(queryFunction *model.Function, updatedFields *model.Function) (*model.Function, error)

UpdateFunction : search for model.Function with model.Function FindById method and update fields.

Return an error if no Function found or error in database.Database query or save.

func UpdateModule

func UpdateModule(queryModule *model.Module, updatedFields *model.Module) (*model.Module, error)

UpdateModule : search for model.Module with model.Module FindById method and update fields.

Return an error if no Module found or error in database.Database query or save.

func UpdateProject

func UpdateProject(queryProject *model.Project, updatedFields *model.Project) (*model.Project, error)

UpdateProject : search for model.Project with model.Project FindById method and update fields.

Return an error if no project found or error in database.Database query or save.

Types

This section is empty.

Jump to

Keyboard shortcuts

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