Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessToken ¶
type AnacondaTweet ¶
type SlackShare ¶
type SlackShare struct {
}type TweetRepository ¶
type TweetRepository struct {
// contains filtered or unexported fields
}
func GetTweetRepository ¶
func GetTweetRepository(db *sql.DB) TweetRepository
func (*TweetRepository) Add ¶
func (r *TweetRepository) Add(tweet Tweet) error
func (*TweetRepository) FindByOrder ¶
type User ¶
type User struct { Id int64 ScreenName string AccessToken AccessToken Created time.Time }
type UserRepository ¶
type UserRepository struct {
// contains filtered or unexported fields
}
func GetUserRepository ¶
func GetUserRepository(db *sql.DB) UserRepository
func (UserRepository) Add ¶
func (r UserRepository) Add(user User) error
func (UserRepository) Exists ¶
func (r UserRepository) Exists(Id int64) bool
func (UserRepository) GetAll ¶
func (r UserRepository) GetAll() (*[]User, error)
func (UserRepository) SaveToken ¶
func (r UserRepository) SaveToken(user User) error
Click to show internal directories.
Click to hide internal directories.