project

package
v0.0.0-...-418667d Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func ProvideHandler

func ProvideHandler(svc model.ProjectService, validate *validator.Validate) *Handler

func (*Handler) GetCloseProject

func (hdl *Handler) GetCloseProject() http.HandlerFunc

func (*Handler) GetCloseProjects

func (hdl *Handler) GetCloseProjects() http.HandlerFunc

func (*Handler) GetProject

func (hdl *Handler) GetProject() http.HandlerFunc

func (*Handler) GetProjects

func (hdl *Handler) GetProjects() http.HandlerFunc

func (*Handler) SaveCloseProject

func (hdl *Handler) SaveCloseProject() http.HandlerFunc

func (*Handler) SaveProject

func (hdl *Handler) SaveProject() http.HandlerFunc

func (*Handler) UpdateCloseProject

func (hdl *Handler) UpdateCloseProject() http.HandlerFunc

func (*Handler) UpdateProject

func (hdl *Handler) UpdateProject() http.HandlerFunc

type Repository

type Repository struct{}

func ProvideRepository

func ProvideRepository() *Repository

func (*Repository) DeleteCloseProjectDoc

func (rpo *Repository) DeleteCloseProjectDoc(ctx context.Context, tx *sql.Tx, IDProject string, id []int)

func (*Repository) GetCloseProject

func (rpo *Repository) GetCloseProject(ctx context.Context, tx *sql.Tx, id string) (*model.Project, error)

func (*Repository) GetCloseProjectDoc

func (rpo *Repository) GetCloseProjectDoc(ctx context.Context, tx *sql.Tx, id string) *[]model.ProjectDoc

func (*Repository) GetCloseProjects

func (rpo *Repository) GetCloseProjects(ctx context.Context, tx *sql.Tx) *[]model.Project

func (*Repository) GetProject

func (rpo *Repository) GetProject(ctx context.Context, tx *sql.Tx, id string) (*model.Project, error)

func (*Repository) GetProjects

func (rpo *Repository) GetProjects(ctx context.Context, tx *sql.Tx) *[]model.Project

func (*Repository) SaveCloseProject

func (rpo *Repository) SaveCloseProject(ctx context.Context, tx *sql.Tx, data *model.Project)

func (*Repository) SaveCloseProjectDoc

func (rpo *Repository) SaveCloseProjectDoc(ctx context.Context, tx *sql.Tx, data *[]model.ProjectDoc)

func (*Repository) SaveProject

func (rpo *Repository) SaveProject(ctx context.Context, tx *sql.Tx, data *model.Project)

func (*Repository) UpdateCloseProject

func (rpo *Repository) UpdateCloseProject(ctx context.Context, tx *sql.Tx, data *model.Project)

func (*Repository) UpdateCloseProjectDoc

func (rpo *Repository) UpdateCloseProjectDoc(ctx context.Context, tx *sql.Tx, data *[]model.ProjectDoc)

func (*Repository) UpdateProject

func (rpo *Repository) UpdateProject(ctx context.Context, tx *sql.Tx, data *model.Project)

type Router

type Router struct {
	// contains filtered or unexported fields
}

func ProvideRoute

func ProvideRoute(hdl model.ProjectHandler) *Router

func Wire

func Wire(validate *validator.Validate, db *sql.DB) *Router

func (*Router) InitializeRoutes

func (router *Router) InitializeRoutes(route chi.Router)

type Service

type Service struct {
	// contains filtered or unexported fields
}

func ProvideService

func ProvideService(rpo model.ProjectRepository, db *sql.DB) *Service

func (*Service) GetCloseProject

func (svc *Service) GetCloseProject(ctx context.Context)

func (*Service) GetCloseProjects

func (svc *Service) GetCloseProjects(ctx context.Context)

func (*Service) GetProject

func (svc *Service) GetProject(ctx context.Context, id string) model.ProjectResponse

func (*Service) GetProjects

func (svc *Service) GetProjects(ctx context.Context) []model.ProjectResponse

func (*Service) SaveCloseProject

func (svc *Service) SaveCloseProject(ctx context.Context)

func (*Service) SaveProject

func (svc *Service) SaveProject(ctx context.Context, request *model.SaveRequestProject) model.ProjectResponse

func (*Service) UpdateCloseProject

func (svc *Service) UpdateCloseProject(ctx context.Context)

func (*Service) UpdateProject

func (svc *Service) UpdateProject(ctx context.Context, request *model.UpdateRequestProject) model.ProjectResponse

Jump to

Keyboard shortcuts

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