persistence

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2015 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessTokenPersistence

type AccessTokenPersistence struct {
	*sql.DB
}

func (AccessTokenPersistence) AddOrUpdate

func (p AccessTokenPersistence) AddOrUpdate(user_id int64, token string, secret string) error

func (AccessTokenPersistence) Delete

func (p AccessTokenPersistence) Delete(user_id int64) error

func (AccessTokenPersistence) Get

func (p AccessTokenPersistence) Get(user_id int64) *sql.Row

func (AccessTokenPersistence) Prepare

func (p AccessTokenPersistence) Prepare() error

type TweetDAO

type TweetDAO struct {
	*sql.DB
}

func (*TweetDAO) Add

func (p *TweetDAO) Add(tweet_id int64, screenName string) error

func (*TweetDAO) Get

func (p *TweetDAO) Get(tweet_id int64) *sql.Row

func (*TweetDAO) GetByLimit

func (p *TweetDAO) GetByLimit(limit int) (*sql.Rows, error)

func (*TweetDAO) GetByTweet

func (p *TweetDAO) GetByTweet(tweet_id int64, order bool, limit int) (*sql.Rows, error)

func (*TweetDAO) Prepare

func (p *TweetDAO) Prepare() error

type UserPersistence

type UserPersistence struct {
	*sql.DB
}

func (UserPersistence) Add

func (p UserPersistence) Add(user_id int64, screenName string) error

func (UserPersistence) Get

func (p UserPersistence) Get(user_id int64) *sql.Row

func (UserPersistence) GetAll

func (p UserPersistence) GetAll() (*sql.Rows, error)

func (UserPersistence) Prepare

func (p UserPersistence) Prepare() error

Jump to

Keyboard shortcuts

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