Documentation
¶
Index ¶
- type BinaryException
- type Client
- type FormException
- type JsonException
- type MultipartException
- type ProductTag
- func (client *ProductTag) Binary(payload []byte) (TestResponse, error)
- func (client *ProductTag) Create(payload TestRequest) (TestResponse, error)
- func (client *ProductTag) Delete(id int) (TestResponse, error)
- func (client *ProductTag) Form(payload url.Values) (TestResponse, error)
- func (client *ProductTag) GetAll(startIndex int, count int, search string) (TestResponse, error)
- func (client *ProductTag) Json(payload any) (TestResponse, error)
- func (client *ProductTag) Multipart(payload *sdkgen.Multipart) (TestResponse, error)
- func (client *ProductTag) Patch(id int, payload TestRequest) (TestResponse, error)
- func (client *ProductTag) Text(payload string) (TestResponse, error)
- func (client *ProductTag) Update(id int, payload TestRequest) (TestResponse, error)
- func (client *ProductTag) Xml(payload string) (TestResponse, error)
- type TestMapObject
- type TestMapScalar
- type TestObject
- type TestRequest
- type TestResponse
- type TestResponseException
- type TextException
- type XmlException
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BinaryException ¶
func (*BinaryException) Error ¶
func (e *BinaryException) Error() string
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func BuildAnonymous ¶
func NewClientWithVersion ¶ added in v2.0.3
func (*Client) Product ¶
func (client *Client) Product() *ProductTag
type FormException ¶
func (*FormException) Error ¶
func (e *FormException) Error() string
type JsonException ¶
func (*JsonException) Error ¶
func (e *JsonException) Error() string
type MultipartException ¶
type MultipartException struct { Payload *sdkgen.Multipart Previous error }
func (*MultipartException) Error ¶
func (e *MultipartException) Error() string
type ProductTag ¶
type ProductTag struct {
// contains filtered or unexported fields
}
func NewProductTag ¶
func NewProductTag(httpClient *http.Client, parser *sdkgen.Parser) *ProductTag
func (*ProductTag) Binary ¶
func (client *ProductTag) Binary(payload []byte) (TestResponse, error)
Binary Test binary content type
func (*ProductTag) Create ¶
func (client *ProductTag) Create(payload TestRequest) (TestResponse, error)
Create Creates a new product
func (*ProductTag) Delete ¶
func (client *ProductTag) Delete(id int) (TestResponse, error)
Delete Deletes an existing product
func (*ProductTag) Form ¶
func (client *ProductTag) Form(payload url.Values) (TestResponse, error)
Form Test form content type
func (*ProductTag) GetAll ¶
func (client *ProductTag) GetAll(startIndex int, count int, search string) (TestResponse, error)
GetAll Returns a collection
func (*ProductTag) Json ¶
func (client *ProductTag) Json(payload any) (TestResponse, error)
Json Test json content type
func (*ProductTag) Multipart ¶
func (client *ProductTag) Multipart(payload *sdkgen.Multipart) (TestResponse, error)
Multipart Test json content type
func (*ProductTag) Patch ¶
func (client *ProductTag) Patch(id int, payload TestRequest) (TestResponse, error)
Patch Patches an existing product
func (*ProductTag) Text ¶
func (client *ProductTag) Text(payload string) (TestResponse, error)
Text Test text content type
func (*ProductTag) Update ¶
func (client *ProductTag) Update(id int, payload TestRequest) (TestResponse, error)
Update Updates an existing product
func (*ProductTag) Xml ¶
func (client *ProductTag) Xml(payload string) (TestResponse, error)
Xml Test xml content type
type TestMapObject ¶
type TestMapObject = map[string]TestObject
type TestMapScalar ¶
type TestObject ¶
type TestRequest ¶
type TestRequest struct { Int int `json:"int"` Float float64 `json:"float"` String string `json:"string"` Bool bool `json:"bool"` DateString string `json:"dateString"` DateTimeString string `json:"dateTimeString"` TimeString string `json:"timeString"` ArrayScalar []string `json:"arrayScalar"` ArrayObject []TestObject `json:"arrayObject"` MapScalar *TestMapScalar `json:"mapScalar"` MapObject *TestMapObject `json:"mapObject"` Object *TestObject `json:"object"` }
type TestResponse ¶
type TestResponse struct { Args *TestMapScalar `json:"args"` Data string `json:"data"` Files *TestMapScalar `json:"files"` Form *TestMapScalar `json:"form"` Headers *TestMapScalar `json:"headers"` Json *TestRequest `json:"json"` Method string `json:"method"` }
type TestResponseException ¶
type TestResponseException struct { Payload TestResponse Previous error }
func (*TestResponseException) Error ¶
func (e *TestResponseException) Error() string
type TextException ¶
func (*TextException) Error ¶
func (e *TextException) Error() string
type XmlException ¶
func (*XmlException) Error ¶
func (e *XmlException) Error() string
Click to show internal directories.
Click to hide internal directories.