handlers

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: 15 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

View Source
const TaskStatusApproved = "APPROVED"
View Source
const TaskStatusAssigned = "ASSIGNED"
View Source
const TaskStatusChangesRequested = "CHANGES_REQUESTED"
View Source
const TaskStatusCompleted = "COMPLETED"
View Source
const TaskStatusDismissed = "DISMISSED"
View Source
const TaskStatusReadyToMerge = "READY_TO_MERGE"
View Source
const TaskStatusUnassigned = "UNASSIGNED"

Variables

This section is empty.

Functions

This section is empty.

Types

type Projects

type Projects struct {
	PgConn      *db.PostgresDriver
	ProjectData *data.ProjectData

	Log *logrus.Logger
	// contains filtered or unexported fields
}

Interface for Projects handlers

func NewProjects

func NewProjects(db *db.PostgresDriver, p *data.ProjectData, logger *logrus.Logger) *Projects

NewProjects returns initialized Projects handler struct

func (*Projects) CreateProject

func (p *Projects) CreateProject(w http.ResponseWriter, r *http.Request)

CreateProject create project based on a select repo

func (*Projects) CreateTask

func (p *Projects) CreateTask(w http.ResponseWriter, r *http.Request)

CreateTask creates a task entry in the database.

func (*Projects) DeleteTask

func (p *Projects) DeleteTask(w http.ResponseWriter, r *http.Request)

DeleteTask delete a select task.

func (*Projects) EditTask

func (p *Projects) EditTask(w http.ResponseWriter, r *http.Request)

EditTask edit the details of select task.

func (*Projects) GetProject

func (p *Projects) GetProject(w http.ResponseWriter, r *http.Request)

func (*Projects) GetRepoInfo

func (p *Projects) GetRepoInfo(w http.ResponseWriter, r *http.Request)

GetRepoInfo retrieve information about a given repo such as name, description, contributers

func (*Projects) GetRepoIssues

func (p *Projects) GetRepoIssues(w http.ResponseWriter, r *http.Request)

GetRepoIssues retrieve list of issues inside of a repo

func (*Projects) GetSearchProjects

func (p *Projects) GetSearchProjects(w http.ResponseWriter, r *http.Request)

GetUserProjects retrieve list of projects

func (*Projects) GetTask

func (p *Projects) GetTask(w http.ResponseWriter, r *http.Request)

GetTask return a select task.

func (*Projects) GetTasks

func (p *Projects) GetTasks(w http.ResponseWriter, r *http.Request)

GetTasks sends all Tasks under a Project.

func (*Projects) GetUserProjects

func (p *Projects) GetUserProjects(w http.ResponseWriter, r *http.Request)

GetUserProjects retrieve list of github repos associated to a given user

func (*Projects) GetUserRepos

func (p *Projects) GetUserRepos(w http.ResponseWriter, r *http.Request)

GetUserRepos retrieve list of github repos associated to a select user

Jump to

Keyboard shortcuts

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