generated

package
v2.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 23, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BinaryException

type BinaryException struct {
	Payload  []byte
	Previous error
}

func (*BinaryException) Error

func (e *BinaryException) Error() string

type Client

type Client struct {
	// contains filtered or unexported fields
}

func Build

func Build(token string) (*Client, error)

func BuildAnonymous

func BuildAnonymous() (*Client, error)

func NewClient

func NewClient(baseUrl string, credentials sdkgen.CredentialsInterface) (*Client, error)

func NewClientWithVersion added in v2.0.3

func NewClientWithVersion(baseUrl string, credentials sdkgen.CredentialsInterface, version string) (*Client, error)

func (*Client) Product

func (client *Client) Product() *ProductTag

type FormException

type FormException struct {
	Payload  url.Values
	Previous error
}

func (*FormException) Error

func (e *FormException) Error() string

type JsonException

type JsonException struct {
	Payload  any
	Previous error
}

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 TestMapScalar = map[string]string

type TestObject

type TestObject struct {
	Id   int    `json:"id"`
	Name string `json:"name"`
}

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

type TextException struct {
	Payload  string
	Previous error
}

func (*TextException) Error

func (e *TextException) Error() string

type XmlException

type XmlException struct {
	Payload  string
	Previous error
}

func (*XmlException) Error

func (e *XmlException) Error() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL