project

package
v0.4.7 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

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

func NewHttpController

func NewHttpController(repository projectRepository, assetRepository assetRepository) *Controller

func (*Controller) Create

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

func (*Controller) Delete

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

func (*Controller) List

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

func (*Controller) Read

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

type CreateRequest

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

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