Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FizzbuzzTweetService ¶
type FizzbuzzTweetService struct {
// contains filtered or unexported fields
}
FizzbuzzTweetService is mysql database service.
func NewFizzbuzzTweetService ¶
func NewFizzbuzzTweetService(db *sql.DB) FizzbuzzTweetService
NewFizzbuzzTweetService is create service.
func (FizzbuzzTweetService) AddTwitterTweetID ¶
func (s FizzbuzzTweetService) AddTwitterTweetID(twitterTweetID, number uint64) error
AddTwitterTweetID is update fizzbuzz_tweets table row of id.
func (FizzbuzzTweetService) Insert ¶
func (s FizzbuzzTweetService) Insert(ft *model.FizzbuzzTweet) error
Insert is insert fizzbuzz_tweets table.
func (FizzbuzzTweetService) LatestTweet ¶
func (s FizzbuzzTweetService) LatestTweet() (*model.FizzbuzzTweet, error)
LatestTweet return latest fizz buzz tweet.
type PostErrorService ¶
type PostErrorService struct {
// contains filtered or unexported fields
}
PostErrorService is mysql database service.
func NewPostErrorService ¶
func NewPostErrorService(db *sql.DB) PostErrorService
NewPostErrorService is create service.
Click to show internal directories.
Click to hide internal directories.