data

package
v0.0.0-...-88dbfc4 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2023 License: AGPL-3.0 Imports: 3 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Project

type Project struct {
	ProjectID            int      `db:"project_id"`
	ProjectOwnerId       string   `db:"project_owner_id"`
	ProjectOwnerUsername string   `db:"project_owner_username"`
	ProjectName          string   `db:"project_name"`
	ProjectURL           string   `db:"project_url"`
	ProjectSkills        []string `json:"project_skills"`
	ProjectDescription   string   `json:"project_description"`
}

type ProjectData

type ProjectData struct {
	PDriver *db.PostgresDriver
}

func NewProjectData

func NewProjectData(dbDriver *db.PostgresDriver) *ProjectData

func (*ProjectData) AddProject

func (pd *ProjectData) AddProject(ownerID int, ownerUsername string, projectName string, projectURL string,
	description string, skills []string) error

func (*ProjectData) AddTask

func (pd *ProjectData) AddTask(projectID int, projectName string, taskStatus string, createdDate time.Time, completedDate time.Time, taskTitle string, taskDescription string, diffictly int, priority int, skills []string) error

func (*ProjectData) CoalesceUpdate

func (pd *ProjectData) CoalesceUpdate(projectName string, taskID int, taskTitle string, taskStatus string,
	description string, diffictly int, priority int, skills []string) error

func (*ProjectData) CompleteTask

func (pd *ProjectData) CompleteTask(projectName string, taskID int, completedByID int) error

func (*ProjectData) DeleteProject

func (pd *ProjectData) DeleteProject(projectID int) error

func (*ProjectData) DeleteTask

func (pd *ProjectData) DeleteTask(projectName string, taskID int) error

func (*ProjectData) GetProject

func (pd *ProjectData) GetProject(projectID int) (*Project, error)

func (*ProjectData) GetProjectByName

func (pd *ProjectData) GetProjectByName(projectName string) (*Project, error)

func (*ProjectData) GetTask

func (pd *ProjectData) GetTask(projectName string, taskID int) (*Task, error)

func (*ProjectData) GetTasks

func (pd *ProjectData) GetTasks(projectName string) ([]Task, error)

func (*ProjectData) GetTopNProjects

func (pd *ProjectData) GetTopNProjects(numProjects int) ([]Project, error)

func (*ProjectData) GetUserProjects

func (pd *ProjectData) GetUserProjects(username string) ([]Project, error)

func (*ProjectData) UpdateProjectDescription

func (pd *ProjectData) UpdateProjectDescription(projectID int, description string) error

func (*ProjectData) UpdateProjectName

func (pd *ProjectData) UpdateProjectName(projectID int, projectName string) error

func (*ProjectData) UpdateTaskDescription

func (pd *ProjectData) UpdateTaskDescription(projectName string, taskID int, description string) error

func (*ProjectData) UpdateTaskDiffictly

func (pd *ProjectData) UpdateTaskDiffictly(projectName string, taskID int, diffictly string) error

func (*ProjectData) UpdateTaskPriority

func (pd *ProjectData) UpdateTaskPriority(projectName string, taskID int, priority string) error

func (*ProjectData) UpdateTaskSkills

func (pd *ProjectData) UpdateTaskSkills(projectName string, taskID int, skills []string) error

func (*ProjectData) UpdateTaskStatus

func (pd *ProjectData) UpdateTaskStatus(projectName string, taskID int, taskStatus string) error

func (*ProjectData) UpdateTaskTitle

func (pd *ProjectData) UpdateTaskTitle(projectName string, taskID int, taskTitle string) error

type Task

type Task struct {
	TaskID          int       `db:"task_id"`
	ProjectID       int       `db:"project_id"`
	ProjectName     string    `db:"project_name"`
	TaskStatus      string    `db:"task_status"`
	CompletedByID   int       `db:"completed_by_id"`
	CreatedDate     time.Time `db:"created_date"`
	CompletedDate   time.Time `db:"completed_date"`
	TaskTitle       string    `db:"task_title"`
	TaskDescription string    `db:"task_description"`
	Diffictly       int       `db:"diffictly"`
	Priority        int       `db:"priority"`
	Skills          []string  `db:"skills"`
}

Jump to

Keyboard shortcuts

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