Documentation ¶
Index ¶
- func FindExe(desktopfile string) string
- func GetAuthCode(authurl string) string
- func PrintErrorResponse(resp *http.Response, err error)
- func PrintResponse(resp *http.Response)
- func YtGetClient() *youtube.Service
- func YtGetVideos(ytclient *youtube.Service) *[]YtVideo
- type AuthTokenHandler
- type DcCategory
- type DcCategoryList
- type DcCategoryResp
- type DcClient
- func (self *DcClient) CheckId(id string) bool
- func (self *DcClient) Get(uri string) (*http.Response, error)
- func (self *DcClient) GetCategories() *[]DcCategory
- func (self *DcClient) GetCategoryId(slug string) int64
- func (self *DcClient) Post(uri string, body string) (*http.Response, error)
- func (self *DcClient) Upload(videos *[]YtVideo) bool
- type DcTopic
- type WpBasicAuth
- type WpBasicAuthClient
- type WpCategory
- type WpClient
- func (self *WpClient) GetCategory(website string, categoryname string) *WpCategory
- func (self *WpClient) GetMe(website string) *WpMe
- func (self *WpClient) GetPosts(website string, iparams map[string]string) *[]WpPostsRespPost
- func (self *WpClient) GetTag(website string, tagname string) *WpTag
- func (self *WpClient) NewCategory(website string, categoryname string) *WpCategory
- func (self *WpClient) NewTag(website string, tagname string) *WpTag
- func (self *WpClient) Post(website string, title string, content string, author string, tags string, ...) bool
- func (self *WpClient) Upload(website string, videos *[]YtVideo) bool
- type WpConfig
- type WpHttpClient
- type WpMe
- type WpPostsResp
- type WpPostsRespMeta
- type WpPostsRespPost
- type WpTag
- type WpUrls
- type YtVideo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAuthCode ¶
func PrintErrorResponse ¶
func PrintResponse ¶
func YtGetClient ¶
func YtGetClient() *youtube.Service
func YtGetVideos ¶
func YtGetVideos(ytclient *youtube.Service) *[]YtVideo
Types ¶
type AuthTokenHandler ¶
func (*AuthTokenHandler) ServeHTTP ¶
func (self *AuthTokenHandler) ServeHTTP(res http.ResponseWriter, req *http.Request)
type DcCategory ¶
type DcCategoryList ¶
type DcCategoryList struct {
Categories []DcCategory `json:"categories"`
}
type DcCategoryResp ¶
type DcCategoryResp struct {
CategoryList DcCategoryList `json:"category_list"`
}
type DcClient ¶
type DcClient struct { ApiKey string `json:"api_key"` ApiUsername string `json:"api_username"` WebSite string Categories *[]DcCategory Client *http.Client }
func DcGetClient ¶
func (*DcClient) GetCategories ¶
func (self *DcClient) GetCategories() *[]DcCategory
func (*DcClient) GetCategoryId ¶
type WpBasicAuth ¶
type WpBasicAuthClient ¶
type WpBasicAuthClient struct {
// contains filtered or unexported fields
}
type WpCategory ¶
type WpClient ¶
type WpClient struct { Client WpHttpClient Urls WpUrls Me *WpMe }
func WpGetClient ¶
func WpGetClient() *WpClient
func WpGetClientBasicAuth ¶
func WpGetClientBasicAuth() *WpClient
func WpGetClientOauth ¶
func WpGetClientOauth() *WpClient
func (*WpClient) GetCategory ¶
func (self *WpClient) GetCategory(website string, categoryname string) *WpCategory
func (*WpClient) GetPosts ¶
func (self *WpClient) GetPosts(website string, iparams map[string]string) *[]WpPostsRespPost
func (*WpClient) NewCategory ¶
func (self *WpClient) NewCategory(website string, categoryname string) *WpCategory
type WpHttpClient ¶
type WpPostsResp ¶
type WpPostsResp struct {
Posts []WpPostsRespPost `json:"posts"`
}
type WpPostsRespMeta ¶
type WpPostsRespMeta struct {
NextPage string `json:"next_page"`
}
type WpPostsRespPost ¶
type WpPostsRespPost struct { Id int64 `json:"ID"` Tags interface{} `json:"tags"` Categories interface{} `json:"categories"` }
func (*WpPostsRespPost) CheckCategory ¶
func (self *WpPostsRespPost) CheckCategory(icategory string) bool
func (*WpPostsRespPost) CheckTag ¶
func (self *WpPostsRespPost) CheckTag(itag string) bool
func (*WpPostsRespPost) GetCategories ¶
func (self *WpPostsRespPost) GetCategories() []string
func (*WpPostsRespPost) GetTags ¶
func (self *WpPostsRespPost) GetTags() []string
Source Files ¶
Click to show internal directories.
Click to hide internal directories.