Documentation ¶
Index ¶
- type APIResponse
- type AddStoryRequest
- type AddStoryResponse
- type DeleteStoryRequest
- type DeleteStoryResponse
- type Error
- type GetStoryRequest
- type GetStoryResponse
- type MostViewedStoriesRequest
- type MostViewedStoriesResponse
- type Story
- type TopRatedStoriesRequest
- type TopRatedStoriesResponse
- type UpdateStoryRequest
- type UpdateStoryResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIResponse ¶
type APIResponse struct { Data interface{} `json:"data,omitempty"` Error *Error `json:"error,omitempty"` Success bool `json:"success"` }
func NewFailureResponse ¶
func NewFailureResponse(description string) APIResponse
func NewSuccessResponse ¶
func NewSuccessResponse(data interface{}) APIResponse
type AddStoryRequest ¶
type AddStoryResponse ¶
type AddStoryResponse struct {
Success bool `json:"success"`
}
type DeleteStoryRequest ¶
type DeleteStoryRequest struct {
StoryID string `json:"story_id"`
}
type DeleteStoryResponse ¶
type DeleteStoryResponse struct {
Success bool `json:"success"`
}
type GetStoryRequest ¶
type GetStoryRequest struct {
StoryID string `json:"story_id"`
}
type GetStoryResponse ¶
type GetStoryResponse struct {
Story Story `json:"story"`
}
type MostViewedStoriesResponse ¶
type MostViewedStoriesResponse struct {
Stories []Story `json:"stories"`
}
type TopRatedStoriesRequest ¶
type TopRatedStoriesResponse ¶
type TopRatedStoriesResponse struct {
Stories []Story `json:"stories"`
}
type UpdateStoryRequest ¶
type UpdateStoryRequest struct {
Story Story `json:"story"`
}
type UpdateStoryResponse ¶
type UpdateStoryResponse struct {
Success bool `json:"success"`
}
Click to show internal directories.
Click to hide internal directories.