projects

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2026 License: Apache-2.0 Imports: 6 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

Overview

Package projects is the HTTP adapter of the project use cases.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

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

Handler serves the project routes.

func New

func New(svc Service) *Handler

New returns a Handler on the service.

func (*Handler) Register

func (h *Handler) Register(api gin.IRoutes)

Register adds the routes to the api group.

type Service

type Service interface {
	List(ctx context.Context) ([]models.Project, error)
	Create(ctx context.Context, name string) (*models.Project, error)
	Rename(ctx context.Context, identifier string, change project.Change) (*models.Project, error)
	Delete(ctx context.Context, id uint) error
}

Service is what the handlers need from the project use cases.

Jump to

Keyboard shortcuts

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