Documentation ¶
Index ¶
- Variables
- type Handler
- func (hdl *Handler) GetCloseProject() http.HandlerFunc
- func (hdl *Handler) GetCloseProjects() http.HandlerFunc
- func (hdl *Handler) GetProject() http.HandlerFunc
- func (hdl *Handler) GetProjects() http.HandlerFunc
- func (hdl *Handler) SaveCloseProject() http.HandlerFunc
- func (hdl *Handler) SaveProject() http.HandlerFunc
- func (hdl *Handler) UpdateCloseProject() http.HandlerFunc
- func (hdl *Handler) UpdateProject() http.HandlerFunc
- type Repository
- func (rpo *Repository) DeleteCloseProjectDoc(ctx context.Context, tx *sql.Tx, IDProject string, id []int)
- func (rpo *Repository) GetCloseProject(ctx context.Context, tx *sql.Tx, id string) (*model.Project, error)
- func (rpo *Repository) GetCloseProjectDoc(ctx context.Context, tx *sql.Tx, id string) *[]model.ProjectDoc
- func (rpo *Repository) GetCloseProjects(ctx context.Context, tx *sql.Tx) *[]model.Project
- func (rpo *Repository) GetProject(ctx context.Context, tx *sql.Tx, id string) (*model.Project, error)
- func (rpo *Repository) GetProjects(ctx context.Context, tx *sql.Tx) *[]model.Project
- func (rpo *Repository) SaveCloseProject(ctx context.Context, tx *sql.Tx, data *model.Project)
- func (rpo *Repository) SaveCloseProjectDoc(ctx context.Context, tx *sql.Tx, data *[]model.ProjectDoc)
- func (rpo *Repository) SaveProject(ctx context.Context, tx *sql.Tx, data *model.Project)
- func (rpo *Repository) UpdateCloseProject(ctx context.Context, tx *sql.Tx, data *model.Project)
- func (rpo *Repository) UpdateCloseProjectDoc(ctx context.Context, tx *sql.Tx, data *[]model.ProjectDoc)
- func (rpo *Repository) UpdateProject(ctx context.Context, tx *sql.Tx, data *model.Project)
- type Router
- type Service
- func (svc *Service) GetCloseProject(ctx context.Context)
- func (svc *Service) GetCloseProjects(ctx context.Context)
- func (svc *Service) GetProject(ctx context.Context, id string) model.ProjectResponse
- func (svc *Service) GetProjects(ctx context.Context) []model.ProjectResponse
- func (svc *Service) SaveCloseProject(ctx context.Context)
- func (svc *Service) SaveProject(ctx context.Context, request *model.SaveRequestProject) model.ProjectResponse
- func (svc *Service) UpdateCloseProject(ctx context.Context)
- func (svc *Service) UpdateProject(ctx context.Context, request *model.UpdateRequestProject) model.ProjectResponse
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ProviderSet = wire.NewSet( ProvideRoute, ProvideHandler, ProvideService, ProvideRepository, wire.Bind(new(model.ProjectHandler), new(*Handler)), wire.Bind(new(model.ProjectService), new(*Service)), wire.Bind(new(model.ProjectRepository), new(*Repository)), ) )
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 (*Repository) GetCloseProject ¶
func (*Repository) GetCloseProjectDoc ¶
func (rpo *Repository) GetCloseProjectDoc(ctx context.Context, tx *sql.Tx, id string) *[]model.ProjectDoc
func (*Repository) GetCloseProjects ¶
func (*Repository) GetProject ¶
func (*Repository) GetProjects ¶
func (*Repository) SaveCloseProject ¶
func (*Repository) SaveCloseProjectDoc ¶
func (rpo *Repository) SaveCloseProjectDoc(ctx context.Context, tx *sql.Tx, data *[]model.ProjectDoc)
func (*Repository) SaveProject ¶
func (*Repository) UpdateCloseProject ¶
func (*Repository) UpdateCloseProjectDoc ¶
func (rpo *Repository) UpdateCloseProjectDoc(ctx context.Context, tx *sql.Tx, data *[]model.ProjectDoc)
func (*Repository) UpdateProject ¶
type Router ¶
type Router struct {
// contains filtered or unexported fields
}
func ProvideRoute ¶
func ProvideRoute(hdl model.ProjectHandler) *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 (*Service) GetCloseProjects ¶
func (*Service) GetProject ¶
func (*Service) GetProjects ¶
func (svc *Service) GetProjects(ctx context.Context) []model.ProjectResponse
func (*Service) SaveCloseProject ¶
func (*Service) SaveProject ¶
func (svc *Service) SaveProject(ctx context.Context, request *model.SaveRequestProject) model.ProjectResponse
func (*Service) UpdateCloseProject ¶
func (*Service) UpdateProject ¶
func (svc *Service) UpdateProject(ctx context.Context, request *model.UpdateRequestProject) model.ProjectResponse
Click to show internal directories.
Click to hide internal directories.