Documentation
¶
Index ¶
- Variables
- func Bool(b bool) *bool
- func Float32(f float32) *float32
- func Float64(f float64) *float64
- func Int(i int) *int
- func Int64(i int64) *int64
- func String(s string) *string
- type HTTPClient
- type Pets
- func (s *Pets) CreatePets(ctx context.Context, request shared.Pet) (*operations.CreatePetsResponse, error)
- func (s *Pets) ListPets(ctx context.Context, request operations.ListPetsRequest) (*operations.ListPetsResponse, error)
- func (s *Pets) ShowPetByID(ctx context.Context, request operations.ShowPetByIDRequest) (*operations.ShowPetByIDResponse, error)
- type Petstore
- type SDKOption
Constants ¶
This section is empty.
Variables ¶
View Source
var ServerList = []string{
"http://petstore.swagger.io/v1",
}
ServerList contains the list of servers available to the SDK
Functions ¶
Types ¶
type HTTPClient ¶
HTTPClient provides an interface for suplying the SDK with a custom HTTP client
type Pets ¶ added in v0.3.0
type Pets struct {
// contains filtered or unexported fields
}
func (*Pets) CreatePets ¶ added in v0.3.0
func (s *Pets) CreatePets(ctx context.Context, request shared.Pet) (*operations.CreatePetsResponse, error)
CreatePets - Create a pet
func (*Pets) ListPets ¶ added in v0.3.0
func (s *Pets) ListPets(ctx context.Context, request operations.ListPetsRequest) (*operations.ListPetsResponse, error)
ListPets - List all pets
func (*Pets) ShowPetByID ¶ added in v0.3.0
func (s *Pets) ShowPetByID(ctx context.Context, request operations.ShowPetByIDRequest) (*operations.ShowPetByIDResponse, error)
ShowPetByID - Info for a specific pet
type SDKOption ¶
type SDKOption func(*Petstore)
func WithClient ¶
func WithClient(client HTTPClient) SDKOption
WithClient allows the overriding of the default HTTP client used by the SDK
func WithRetryConfig ¶
func WithRetryConfig(retryConfig utils.RetryConfig) SDKOption
func WithServerIndex ¶
WithServerIndex allows the overriding of the default server by index
func WithServerURL ¶
WithServerURL allows the overriding of the default server URL
Click to show internal directories.
Click to hide internal directories.