ui

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewProjectsRouter

func NewProjectsRouter(e *echo.Echo, projectUsecase domain.ProjectUsecase) *projectRouterCtx

Types

type GetProjectParam

type GetProjectParam struct {
	ID string `param:"id" validate:"required"`
}

type HTTPError

type HTTPError struct {
	Message string `json:"message"`
}

func (HTTPError) BadRequest

func (e HTTPError) BadRequest() error

func (HTTPError) Conflict

func (e HTTPError) Conflict() error

func (HTTPError) ErrUnprocessableEntity

func (e HTTPError) ErrUnprocessableEntity() error

func (HTTPError) Forbidden

func (e HTTPError) Forbidden() error

func (HTTPError) InternalServerError

func (e HTTPError) InternalServerError() error

func (HTTPError) NotFound

func (e HTTPError) NotFound() error

func (HTTPError) Unauthorized

func (e HTTPError) Unauthorized() error

type ProjectIn

type ProjectIn struct {
	Name         string   `json:"name"`
	Description  string   `json:"description"`
	Tags         []string `json:"tags"`
	ThumbnailURL string   `json:"thumbnail_url"`
	WebsiteURL   string   `json:"website_url"`
	Live         bool     `json:"live"`
	PostId       int32    `json:"post_id"`
}

type ProjectOut

type ProjectOut struct {
	ID           string    `json:"id"`
	Name         string    `json:"name"`
	Description  string    `json:"description"`
	Tags         []string  `json:"tags"`
	ThumbnailURL string    `json:"thumbnail_url"`
	WebsiteURL   string    `json:"website_url"`
	Live         bool      `json:"live"`
	CreatedAt    time.Time `json:"created_at"`
	UpdatedAt    time.Time `json:"updated_at"`
}

type ProjectsOut

type ProjectsOut struct {
	Data []*ProjectOut `json:"data"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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