databaseinterface

package
v0.0.0-...-be14f60 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNothingFound = errors.New("nothing found")

ErrNothingFound nothing found error.

View Source
var ErrSomthingWentWrong = errors.New("somthings went wrong")

ErrSomthingWentWrong somthings went wrong error.

Functions

This section is empty.

Types

type Database

type Database interface {
	AddNewCard(models.Card) error
	GetCards() ([]models.Card, error)
	FindByID(string) (*models.Card, error)
	UpdateCard(models.Card) error
	DeleteCard(string) error
}

Database use in service.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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