Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddPetRequest ¶
type GetPetRequest ¶
type Pets ¶
type Pets struct { Id string `json:"_id"` Type string `json:"type"` Breed string `json:"breed"` Risk int32 `json:"risk"` }
Pets holds the pet attributes used in a GetPetResponse.
type Service ¶
Service holds the RESTAPIProvider Service attributes.
type Servicer ¶
type Servicer interface { GetPet(GetPetRequest) (*Pets, error) GetPets() ([]*Pets, error) AddPet(AddPetRequest) error }
Servicer provides the transport-agnostic API for RESTAPIProvider.
Click to show internal directories.
Click to hide internal directories.