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

project

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2024 License: AGPL-3.0 Imports: 9 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

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"`
}

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