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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewChikitosRouter

func NewChikitosRouter(e *echo.Echo, usecase domain.ChikitoUsecase) *chikitoRouterCtx

Types

type CreateIn

type CreateIn struct {
	URL         string `json:"url" validate:"required,url"`
	Description string `json:"description" validate:"required"`
}

type CreateOut

type CreateOut struct {
	ID          string    `json:"id"`
	URL         string    `json:"url"`
	Description string    `json:"description"`
	CreatedAt   time.Time `json:"created_at"`
	UpdatedAt   time.Time `json:"updated_at"`
}

type GetChikitoParams

type GetChikitoParams 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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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