Help us shape the future of Go! Take the 2026 Go Developer Survey

project

package
v0.5.15 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2024 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewService added in v0.5.14

func NewService(projectRepository projectRepository) *service

Types

type Controller

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

func NewHttpController

func NewHttpController(repository projectRepository, assetRepository assetRepository, projectService projectService) *Controller

func (*Controller) ChangeRole added in v0.5.14

func (p *Controller) ChangeRole(c core.Context) error

func (*Controller) Create

func (p *Controller) Create(c core.Context) error

func (*Controller) Delete

func (p *Controller) Delete(c core.Context) error

func (*Controller) InviteMember added in v0.5.14

func (p *Controller) InviteMember(c core.Context) error

func (*Controller) List

func (p *Controller) List(c core.Context) error

func (*Controller) Members added in v0.5.14

func (p *Controller) Members(c core.Context) error

func (*Controller) Read

func (p *Controller) Read(c core.Context) error

func (*Controller) RemoveMember added in v0.5.14

func (p *Controller) RemoveMember(c core.Context) error

func (*Controller) Update added in v0.5.1

func (p *Controller) Update(c core.Context) error

type CreateRequest

type CreateRequest struct {
	Name        string `json:"name" validate:"required"`
	Description string `json:"description"`

	ParentID *uuid.UUID         `json:"parentId"` // if created as a child project
	Type     models.ProjectType `json:"type"`
}

func (*CreateRequest) ToModel

func (p *CreateRequest) ToModel() models.Project

Jump to

Keyboard shortcuts

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