Documentation ¶
Index ¶
- func StructToQuery(s interface{}) (query *url.Values, err error)
- func ZipQuery(args ...interface{}) (query *url.Values, err error)
- type API
- func (api *API) GetStreams(sr StreamsRequest) (streams []Stream, data DataResponse, err error)
- func (api *API) GetUsers(ur UsersRequest) (users []User, data DataResponse, err error)
- func (api *API) GetUsersFollows(ufr UsersFollowsRequest) (follows []UsersFollows, data DataResponse, err error)
- func (api *API) NewRequest(path string, method string, body io.Reader) (req *http.Request, err error)
- type Config
- type DataResponse
- type Pagination
- type Stream
- type StreamsRequest
- type User
- type UsersFollows
- type UsersFollowsRequest
- type UsersRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StructToQuery ¶
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
func (*API) GetStreams ¶
func (api *API) GetStreams(sr StreamsRequest) (streams []Stream, data DataResponse, err error)
func (*API) GetUsers ¶
func (api *API) GetUsers(ur UsersRequest) (users []User, data DataResponse, err error)
func (*API) GetUsersFollows ¶
func (api *API) GetUsersFollows(ufr UsersFollowsRequest) (follows []UsersFollows, data DataResponse, err error)
type DataResponse ¶
type DataResponse struct { Data interface{} `json:"data"` Pagination Pagination `json:"pagination"` Total int `json:"total"` }
type Pagination ¶
type Pagination struct {
Cursor string `json:"cursor"`
}
type Stream ¶
type Stream struct { ID string `json:"id"` UserID string `json:"user_id"` UserName string `json:"user_name"` GameID string `json:"game_id"` Type string `json:"type"` Title string `json:"title"` ViewerCount int `json:"viewer_count"` StartedAt time.Time `json:"started_at"` Language string `json:"language"` ThumbnailURL string `json:"thumbnail_url"` }
type StreamsRequest ¶
type User ¶
type User struct { ID string `json:"id"` Login string `json:"login"` DisplayName string `json:"display_name"` Type string `json:"type"` BroadcasterType string `json:"broadcaster_type"` Description string `json:"description"` ProfileImageURL string `json:"profile_image_url"` OfflineImageURL string `json:"offline_image_url"` ViewCount int `json:"view_count"` Email string `json:"email"` }
type UsersFollows ¶
type UsersFollowsRequest ¶
type UsersRequest ¶
Click to show internal directories.
Click to hide internal directories.