Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClient ¶ added in v0.1.0
NewClient returns a http.Client
This client has a customized Transport that is a instance of [retryableRoundTripper] struct.
By default - base is http.DefaultTransport - attempts is 3 - waitTime is 2 seconds
Types ¶
type Api ¶
type Api struct {
// contains filtered or unexported fields
}
Api is a struct that implements ApiCaller
func (*Api) ListGroups ¶ added in v0.0.2
Lists of all groups. Fetch data from {BASE_URL}/groups with api_key as a query parameter.
type ListGroupsResponse ¶ added in v0.0.2
type ListGroupsResponse struct { // Top layer of json struct in the response body. Groups []Group `json:"groups"` }
Structure reflecting API response results.
type ListMembersResponse ¶
type ListMembersResponse struct { // Top layer of json struct in the response body. Members []Member `json:"members"` }
Structure reflecting API response results.
type Member ¶
type Member struct { ID int `json:"user_id"` Name string `json:"user_name"` Birthday string `json:"birthday"` Height string `json:"height"` Blood string `json:"blood_type"` Generation string `json:"generation"` BlogURL string `json:"blog_url"` ImgURL string `json:"img_url"` }
Group represents member information.
Click to show internal directories.
Click to hide internal directories.