Documentation ¶
Overview ¶
Package twitter ...
Index ¶
Constants ¶
View Source
const DbName = "trm"
DbName is the database name
View Source
const Password = "trm"
Password is password of database
View Source
const UserName = "trm"
UserName is user name of database
Variables ¶
View Source
var Op = Operation{1, 2, 3, 4, 5}
Op is alternative Enum object for Operation
Functions ¶
func DB ¶
DB returns gorm.DB.
the reference of gorm.DB is there(https://github.com/jinzhu/gorm#query)
Types ¶
type Error ¶
type Error struct { Op int // the failing Operation (Query, Request, Authorization, Parse) ID string // the twitter id URL string // the definitive url Err error // the reason the get failed }
A Error records a failed get of tweet.
Click to show internal directories.
Click to hide internal directories.