Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BeerAPI ¶
type BeerAPI struct {
// contains filtered or unexported fields
}
func (BeerAPI) GetBeer ¶
func (c BeerAPI) GetBeer(ctx context.Context, request GetBeerRequest) (GetBeerRespond, error)
GetBeer directly initialize the request and response function.
func (BeerAPI) GetRandomBeer ¶
func (c BeerAPI) GetRandomBeer(ctx context.Context) ([]RandomRequestResponse, error)
type GetBeerRequest ¶
type GetBeerRequest struct {
ID string
}
type GetBeerRespond ¶
type GetBeerRespond struct {
Name string `json:"name"`
}
type RandomRequestResponse ¶
type RandomRequestResponse struct {
Name string `json:"name"`
}
Click to show internal directories.
Click to hide internal directories.