Documentation
ΒΆ
Index ΒΆ
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 ΒΆ
type Pets struct {
// contains filtered or unexported fields
}
func (*Pets) CreatePets ΒΆ
func (s *Pets) CreatePets(ctx context.Context) (*operations.CreatePetsResponse, error)
CreatePets - Create a pet
func (*Pets) ListPets ΒΆ
func (s *Pets) ListPets(ctx context.Context, limit *int) (*operations.ListPetsResponse, error)
ListPets - List all pets
func (*Pets) ShowPetByID ΒΆ
func (s *Pets) ShowPetByID(ctx context.Context, petID string) (*operations.ShowPetByIDResponse, error)
ShowPetByID - Info for a specific pet
type PrivateTest ΒΆ
type PrivateTest struct { Pets *Pets // contains filtered or unexported fields }
func New ΒΆ
func New(opts ...SDKOption) *PrivateTest
New creates a new instance of the SDK with the provided options
type SDKOption ΒΆ
type SDKOption func(*PrivateTest)
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.