Documentation
¶
Index ¶
- Constants
- func ResponseBadRequest(c *gin.Context, msg string)
- func ResponseCreated(c *gin.Context, data interface{})
- func ResponseInternalServerError(c *gin.Context, msg string)
- func ResponseOK(c *gin.Context, data interface{})
- type APIErrorResponse
- type APIResponse
- type PostListParams
- type RSSChannel
- type RSSChannelFeeds
- type RSSContoroller
- type RSSItem
- type TweetController
Constants ¶
View Source
const ( CollectionRSSChannels = "RssChannels" CollectionRSSItems = "RssItems" )
View Source
const ( TwitterCollection = "twitter" TwitterListDoc = "lists" TwitterListItemsCollection = "items" )
Variables ¶
This section is empty.
Functions ¶
func ResponseBadRequest ¶
func ResponseCreated ¶
func ResponseOK ¶
Types ¶
type APIErrorResponse ¶
type APIErrorResponse struct {
Message string `json:"message"`
}
type APIResponse ¶
type APIResponse struct {
Data interface{} `json:"data"`
}
type PostListParams ¶
type PostListParams struct {
ListID int64 `json:"listId"`
}
type RSSChannel ¶
type RSSChannelFeeds ¶
type RSSChannelFeeds struct {
Channel *RSSChannel `json:"channel"`
Items []*RSSItem `json:"items"`
}
type RSSContoroller ¶
func (*RSSContoroller) CollectAndSaveFeeds ¶
func (ctrl *RSSContoroller) CollectAndSaveFeeds(c *gin.Context)
func (*RSSContoroller) GetChannelFeeds ¶
func (ctrl *RSSContoroller) GetChannelFeeds(c *gin.Context)
func (*RSSContoroller) GetChannels ¶
func (ctrl *RSSContoroller) GetChannels(c *gin.Context)
func (*RSSContoroller) PostChannel ¶
func (ctrl *RSSContoroller) PostChannel(c *gin.Context)
type RSSItem ¶
type RSSItem struct {
Title string `json:"title"`
Description string `json:"description"`
Link string `json:"link"`
Published *time.Time `json:"published"`
GUID string `json:"guid"`
Read bool `json:"read"`
ImageURL string `json:"imageURL"`
ImageWidth string `json:"imageWidth"`
ImageHeight string `json:"imageHeight"`
ImageAlt string `json:"imageAlt"`
DocID string
}
type TweetController ¶
func (*TweetController) GetHomeTimeline ¶
func (ctrl *TweetController) GetHomeTimeline(c *gin.Context)
func (*TweetController) GetListTimeline ¶
func (ctrl *TweetController) GetListTimeline(c *gin.Context)
func (*TweetController) GetLists ¶
func (ctrl *TweetController) GetLists(c *gin.Context)
func (*TweetController) PostList ¶
func (ctrl *TweetController) PostList(c *gin.Context)
Click to show internal directories.
Click to hide internal directories.