quotes

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2014 License: BSD-2-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CmdAddQuote added in v0.2.0

func CmdAddQuote(ctx *cli.Context)

func CmdGetQuote added in v0.2.0

func CmdGetQuote(ctx *cli.Context)

func CmdGetRandomQuote added in v0.2.0

func CmdGetRandomQuote(ctx *cli.Context)

func CmdSearch added in v0.2.0

func CmdSearch(ctx *cli.Context)

Types

type Quote

type Quote struct {
	Id     int    `json:"id"`
	Author string `json:"author"`
	Quote  string `json:"quote"`
	Karma  int    `json:"karma"`
}

func (*Quote) Type

func (q *Quote) Type() string

type QuotesDB

type QuotesDB struct {
	DbFile   string
	IndexDir string
	// contains filtered or unexported fields
}

func OpenQuotesDB

func OpenQuotesDB(ctx *cli.Context) *QuotesDB

func (*QuotesDB) Close

func (q *QuotesDB) Close()

func (*QuotesDB) IndexAll

func (q *QuotesDB) IndexAll() error

func (*QuotesDB) Open

func (q *QuotesDB) Open() error

func (*QuotesDB) SetupDBSchema

func (q *QuotesDB) SetupDBSchema() error

Jump to

Keyboard shortcuts

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