Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateKeyword ¶
CreateKeyword inserts a new Keyword into database and returns last inserted Id on success.
func CreateUser ¶
CreateUser insert a new User into database and returns last inserted Id on success.
func GetKeywordsCount ¶
GetKeywordsCount returns the number of current user's uploaded keywords
func UpdateKeyword ¶
UpdateKeyword updates a Keyword and returns the error if any
Types ¶
type Keyword ¶
type Keyword struct {
Base
Keyword string
Status KeywordStatus `orm:"type(KeywordStatus);default(pending)"`
LinksCount int
NonAdwordLinks string `orm:"type(json);null"`
NonAdwordLinksCount int
AdwordLinks string `orm:"type(json);null"`
AdwordLinksCount int
ShopAdwordLinks string `orm:"type(json);null"`
ShopAdwordLinksCount int
HtmlCode string
User *User `orm:"rel(fk)"`
}
func GetKeywordByID ¶
GetKeywordByID returns the Keyword by passing keywordID
func GetKeywordByQuery ¶
GetKeyword gets a Keyword by query
func GetKeywords ¶
GetKeywords returns keywords by query
type KeywordStatus ¶
type KeywordStatus string
KeywordStatus is an implementation of a string for the SQL type
const ( Failed KeywordStatus = "failed" Pending KeywordStatus = "pending" Processed KeywordStatus = "processed" Processing KeywordStatus = "processing" InvalidKeywordStatusErr = "invalid keyword status" )
type OAuthError ¶
type OAuthToken ¶
Click to show internal directories.
Click to hide internal directories.