Documentation ¶
Index ¶
- func AddFunction(module *model.Module, function *model.Function) (*model.Function, error)
- func AddModule(project *model.Project, module *model.Module) (*model.Module, error)
- func AddProject(project *model.Project) (*model.Project, error)
- func DeleteFunction(function *model.Function) (*model.Function, error)
- func DeleteModule(module *model.Module) (*model.Module, error)
- func DeleteModuleDependencies(module *model.Module) (*model.Module, error)
- func DeleteProject(project *model.Project) (*model.Project, error)
- func DeleteProjectDependencies(project *model.Project) (*model.Project, error)
- func FindFunctionById(function *model.Function) (*model.Function, error)
- func FindFunctionByName(module *model.Module, function *model.Function) (functions []model.Function, err error)
- func FindFunctionByPath(module *model.Module, function *model.Function) (functions []model.Function, err error)
- func FindModuleById(module *model.Module) (*model.Module, error)
- func FindModuleByName(project *model.Project, module *model.Module) (modules []model.Module, err error)
- func FindModuleByPath(module *model.Module) (*model.Module, error)
- func FindProjectById(project *model.Project) (*model.Project, error)
- func FindProjectByName(project *model.Project) (projects []model.Project, err error)
- func FindProjectByPath(project *model.Project) (*model.Project, error)
- func ListFunctions(module *model.Module) ([]model.Function, error)
- func ListModules(project *model.Project) ([]model.Module, error)
- func ListProjects() ([]model.Project, error)
- func UpdateFunction(queryFunction *model.Function, updatedFields *model.Function) (*model.Function, error)
- func UpdateModule(queryModule *model.Module, updatedFields *model.Module) (*model.Module, error)
- func UpdateProject(queryProject *model.Project, updatedFields *model.Project) (*model.Project, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddFunction ¶
AddFunction: add a model.Module with given moduleId, functionName and functionPath.
Return an error if error in database.Database save.
func AddModule ¶
AddModule: add a model.Project with given projectId, moduleName and modulePath.
Return an error if error in database.Database save.
func AddProject ¶
AddProject: add a model.Project with given projectName and projectPath.
Return an error if error in database.Database save.
func DeleteModule ¶
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 ¶
DeleteModuleDependencies: search for list of all links inside model.Module and delete them.
func DeleteProject ¶
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 FindFunctionById ¶
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 ¶
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 ¶
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 ¶
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 ¶
FindProjectByName : search for model.Project with FindByName method.
Return an error if no project found or error in database.Database query.
func FindProjectByPath ¶
FindProjectByPath : search for model.Project with FindByPath method.
Return an error if no project found or error in database.Database query.
func ListFunctions ¶
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 ¶
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 ¶
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 ¶
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.
Types ¶
This section is empty.