datamapper

package
v0.0.0-...-e3c5015 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2017 License: MIT Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrSearchNotFound = errors.New("search not found")

ErrSearchNotFound is returned by Get when no search with the given ID is found

Functions

This section is empty.

Types

type Searches

type Searches struct {
	DB *sql.DB
}

Searches is the repository for Searches

func (*Searches) Get

func (s *Searches) Get(ID string) (*domain.Search, error)

func (*Searches) GetAll

func (s *Searches) GetAll() ([]domain.Search, error)

GetAll returns all stored Searches

func (*Searches) Init

func (s *Searches) Init() error

func (*Searches) Save

func (s *Searches) Save(search *domain.Search) (*domain.Search, error)

Save stores Searches to the database

Jump to

Keyboard shortcuts

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