image

package
v0.0.0-...-39a8028 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2023 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrData = custerror.NewValidationField("image", "invalid")

ErrData la imagen no parece valida

View Source
var ErrSize = custerror.NewValidationField("size", "invalid")

ErrSize el tamaño es incorrecto

Functions

func Insert

func Insert(image *Image) (string, error)

Insert agrega una imagen a la db

Types

type Image

type Image struct {
	ID    string `json:"id"  validate:"required"`
	Image string `json:"image"  validate:"required"`
}

Image estructura de la imagen

func Find

func Find(imageID string, size int) (*Image, error)

Find busca una imagen para un tamaño en particular

func New

func New(img string) *Image

New crea una nueva imagen

Jump to

Keyboard shortcuts

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