infrastructure

package
v0.0.0-...-f5a7ff8 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package infrastructure implements functions to retrieve items from a specific database. It also handles item deletion and updating.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ItemFinder

type ItemFinder interface {
	FindAll() ([]*domain.Item, error)
}

ItemFinder searches items in shopping list

type ItemFinderWithSpreadsheet

type ItemFinderWithSpreadsheet struct {
	// contains filtered or unexported fields
}

ItemFinderWithSpreadsheet searches items in shopping list spreadsheet.

func NewItemFinderWithSpreadsheet

func NewItemFinderWithSpreadsheet(spreadsheetID string) (*ItemFinderWithSpreadsheet, error)

NewItemFinderWithSpreadsheet creates ItemFinderWithSpreadsheet instance.

func (*ItemFinderWithSpreadsheet) FindAll

func (f *ItemFinderWithSpreadsheet) FindAll() ([]*domain.Item, error)

FindAll finds all items in shopping list from spreadsheet.

Jump to

Keyboard shortcuts

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