quotes

package
v0.0.0-...-7f5f89b Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2014 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetNewQuoteID

func GetNewQuoteID(p *redis.Pool) (int, error)

func GetQuoteCount

func GetQuoteCount(p *redis.Pool) (int, error)

func GetRandomQuoteID

func GetRandomQuoteID(p *redis.Pool) (int, error)

func Quote2Dis

func Quote2Dis(in Quote, p *redis.Pool) error

Todo: pipeline

func Register

func Register(b bot.Bot, p *redis.Pool)

Register registers the plugin with a bot.

Types

type Quote

type Quote struct {
	QuoteID int
	Creator string

	Qquote string
	// contains filtered or unexported fields
}

func GetAllQuotes

func GetAllQuotes(p *redis.Pool) ([]Quote, error)

func GetQuoteById

func GetQuoteById(id string, p *redis.Pool) (Quote, error)

func GetQuotesByAuthor

func GetQuotesByAuthor(author string, p *redis.Pool) ([]Quote, error)

func GetQuotesBySearch

func GetQuotesBySearch(in string, p *redis.Pool) ([]Quote, error)

func GetRandomQuote

func GetRandomQuote(p *redis.Pool) (Quote, error)

Jump to

Keyboard shortcuts

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