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 SDKOption
- type SwaggerPetstore
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.2.0
type Pets struct {
// contains filtered or unexported fields
}
func (*Pets) CreatePets ΒΆ added in v0.2.0
func (s *Pets) CreatePets(ctx context.Context, request shared.Pet) (*operations.CreatePetsResponse, error)
CreatePets - Create a pet
func (*Pets) ListPets ΒΆ added in v0.2.0
func (s *Pets) ListPets(ctx context.Context, request operations.ListPetsRequest) (*operations.ListPetsResponse, error)
ListPets - List all pets
func (*Pets) ShowPetByID ΒΆ added in v0.2.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(*SwaggerPetstore)
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
type SwaggerPetstore ΒΆ
type SwaggerPetstore struct { Pets *Pets // contains filtered or unexported fields }
func New ΒΆ
func New(opts ...SDKOption) *SwaggerPetstore
New creates a new instance of the SDK with the provided options
Click to show internal directories.
Click to hide internal directories.