fridgedb

package
v0.0.0-...-35deee7 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2014 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package fridgedb provides toplevel operations on database

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MoldyFridge

type MoldyFridge struct {
	DbName string
	Db     *sql.DB
}

func NewFridge

func NewFridge(dbname string) *MoldyFridge

func (*MoldyFridge) AddFood

func (f *MoldyFridge) AddFood(name string, amount int)

func (*MoldyFridge) CheckDb

func (f *MoldyFridge) CheckDb() bool

func (*MoldyFridge) Destroy

func (f *MoldyFridge) Destroy()

func (*MoldyFridge) GetFood

func (f *MoldyFridge) GetFood() []models.Food

func (*MoldyFridge) Init

func (f *MoldyFridge) Init()

func (*MoldyFridge) PromptFood

func (f *MoldyFridge) PromptFood()

func (*MoldyFridge) RemoveFood

func (f *MoldyFridge) RemoveFood(args ...interface{})

func (*MoldyFridge) SearchFood

func (f *MoldyFridge) SearchFood(query string) []models.Food

Jump to

Keyboard shortcuts

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