order

package
v0.0.0-...-76fafce Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CancelOrderDefault

type CancelOrderDefault struct {
	Payload *models.RPCStatus
	// contains filtered or unexported fields
}
CancelOrderDefault describes a response with status code -1, with default header values.

An unexpected error response.

func NewCancelOrderDefault

func NewCancelOrderDefault(code int) *CancelOrderDefault

NewCancelOrderDefault creates a CancelOrderDefault with default headers values

func (*CancelOrderDefault) Code

func (o *CancelOrderDefault) Code() int

Code gets the status code for the cancel order default response

func (*CancelOrderDefault) Error

func (o *CancelOrderDefault) Error() string

func (*CancelOrderDefault) GetPayload

func (o *CancelOrderDefault) GetPayload() *models.RPCStatus

func (*CancelOrderDefault) IsClientError

func (o *CancelOrderDefault) IsClientError() bool

IsClientError returns true when this cancel order default response has a 4xx status code

func (*CancelOrderDefault) IsCode

func (o *CancelOrderDefault) IsCode(code int) bool

IsCode returns true when this cancel order default response a status code equal to that given

func (*CancelOrderDefault) IsRedirect

func (o *CancelOrderDefault) IsRedirect() bool

IsRedirect returns true when this cancel order default response has a 3xx status code

func (*CancelOrderDefault) IsServerError

func (o *CancelOrderDefault) IsServerError() bool

IsServerError returns true when this cancel order default response has a 5xx status code

func (*CancelOrderDefault) IsSuccess

func (o *CancelOrderDefault) IsSuccess() bool

IsSuccess returns true when this cancel order default response has a 2xx status code

func (*CancelOrderDefault) String

func (o *CancelOrderDefault) String() string

type CancelOrderOK

type CancelOrderOK struct {
	Payload models.OrderingpbCancelOrderResponse
}
CancelOrderOK describes a response with status code 200, with default header values.

A successful response.

func NewCancelOrderOK

func NewCancelOrderOK() *CancelOrderOK

NewCancelOrderOK creates a CancelOrderOK with default headers values

func (*CancelOrderOK) Error

func (o *CancelOrderOK) Error() string

func (*CancelOrderOK) GetPayload

func (*CancelOrderOK) IsClientError

func (o *CancelOrderOK) IsClientError() bool

IsClientError returns true when this cancel order o k response has a 4xx status code

func (*CancelOrderOK) IsCode

func (o *CancelOrderOK) IsCode(code int) bool

IsCode returns true when this cancel order o k response a status code equal to that given

func (*CancelOrderOK) IsRedirect

func (o *CancelOrderOK) IsRedirect() bool

IsRedirect returns true when this cancel order o k response has a 3xx status code

func (*CancelOrderOK) IsServerError

func (o *CancelOrderOK) IsServerError() bool

IsServerError returns true when this cancel order o k response has a 5xx status code

func (*CancelOrderOK) IsSuccess

func (o *CancelOrderOK) IsSuccess() bool

IsSuccess returns true when this cancel order o k response has a 2xx status code

func (*CancelOrderOK) String

func (o *CancelOrderOK) String() string

type CancelOrderParams

type CancelOrderParams struct {

	// ID.
	ID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

CancelOrderParams contains all the parameters to send to the API endpoint

for the cancel order operation.

Typically these are written to a http.Request.

func NewCancelOrderParams

func NewCancelOrderParams() *CancelOrderParams

NewCancelOrderParams creates a new CancelOrderParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewCancelOrderParamsWithContext

func NewCancelOrderParamsWithContext(ctx context.Context) *CancelOrderParams

NewCancelOrderParamsWithContext creates a new CancelOrderParams object with the ability to set a context for a request.

func NewCancelOrderParamsWithHTTPClient

func NewCancelOrderParamsWithHTTPClient(client *http.Client) *CancelOrderParams

NewCancelOrderParamsWithHTTPClient creates a new CancelOrderParams object with the ability to set a custom HTTPClient for a request.

func NewCancelOrderParamsWithTimeout

func NewCancelOrderParamsWithTimeout(timeout time.Duration) *CancelOrderParams

NewCancelOrderParamsWithTimeout creates a new CancelOrderParams object with the ability to set a timeout on a request.

func (*CancelOrderParams) SetContext

func (o *CancelOrderParams) SetContext(ctx context.Context)

SetContext adds the context to the cancel order params

func (*CancelOrderParams) SetDefaults

func (o *CancelOrderParams) SetDefaults()

SetDefaults hydrates default values in the cancel order params (not the query body).

All values with no default are reset to their zero value.

func (*CancelOrderParams) SetHTTPClient

func (o *CancelOrderParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the cancel order params

func (*CancelOrderParams) SetID

func (o *CancelOrderParams) SetID(id string)

SetID adds the id to the cancel order params

func (*CancelOrderParams) SetTimeout

func (o *CancelOrderParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the cancel order params

func (*CancelOrderParams) WithContext

func (o *CancelOrderParams) WithContext(ctx context.Context) *CancelOrderParams

WithContext adds the context to the cancel order params

func (*CancelOrderParams) WithDefaults

func (o *CancelOrderParams) WithDefaults() *CancelOrderParams

WithDefaults hydrates default values in the cancel order params (not the query body).

All values with no default are reset to their zero value.

func (*CancelOrderParams) WithHTTPClient

func (o *CancelOrderParams) WithHTTPClient(client *http.Client) *CancelOrderParams

WithHTTPClient adds the HTTPClient to the cancel order params

func (*CancelOrderParams) WithID

WithID adds the id to the cancel order params

func (*CancelOrderParams) WithTimeout

func (o *CancelOrderParams) WithTimeout(timeout time.Duration) *CancelOrderParams

WithTimeout adds the timeout to the cancel order params

func (*CancelOrderParams) WriteToRequest

func (o *CancelOrderParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type CancelOrderReader

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

CancelOrderReader is a Reader for the CancelOrder structure.

func (*CancelOrderReader) ReadResponse

func (o *CancelOrderReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type Client

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

Client for order API

func (*Client) CancelOrder

func (a *Client) CancelOrder(params *CancelOrderParams, opts ...ClientOption) (*CancelOrderOK, error)

CancelOrder cancels an order

func (*Client) CreateOrder

func (a *Client) CreateOrder(params *CreateOrderParams, opts ...ClientOption) (*CreateOrderOK, error)

CreateOrder starts a new order

func (*Client) GetOrder

func (a *Client) GetOrder(params *GetOrderParams, opts ...ClientOption) (*GetOrderOK, error)

GetOrder gets an order

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	CancelOrder(params *CancelOrderParams, opts ...ClientOption) (*CancelOrderOK, error)

	CreateOrder(params *CreateOrderParams, opts ...ClientOption) (*CreateOrderOK, error)

	GetOrder(params *GetOrderParams, opts ...ClientOption) (*GetOrderOK, error)

	SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService

New creates a new order API client.

type CreateOrderDefault

type CreateOrderDefault struct {
	Payload *models.RPCStatus
	// contains filtered or unexported fields
}
CreateOrderDefault describes a response with status code -1, with default header values.

An unexpected error response.

func NewCreateOrderDefault

func NewCreateOrderDefault(code int) *CreateOrderDefault

NewCreateOrderDefault creates a CreateOrderDefault with default headers values

func (*CreateOrderDefault) Code

func (o *CreateOrderDefault) Code() int

Code gets the status code for the create order default response

func (*CreateOrderDefault) Error

func (o *CreateOrderDefault) Error() string

func (*CreateOrderDefault) GetPayload

func (o *CreateOrderDefault) GetPayload() *models.RPCStatus

func (*CreateOrderDefault) IsClientError

func (o *CreateOrderDefault) IsClientError() bool

IsClientError returns true when this create order default response has a 4xx status code

func (*CreateOrderDefault) IsCode

func (o *CreateOrderDefault) IsCode(code int) bool

IsCode returns true when this create order default response a status code equal to that given

func (*CreateOrderDefault) IsRedirect

func (o *CreateOrderDefault) IsRedirect() bool

IsRedirect returns true when this create order default response has a 3xx status code

func (*CreateOrderDefault) IsServerError

func (o *CreateOrderDefault) IsServerError() bool

IsServerError returns true when this create order default response has a 5xx status code

func (*CreateOrderDefault) IsSuccess

func (o *CreateOrderDefault) IsSuccess() bool

IsSuccess returns true when this create order default response has a 2xx status code

func (*CreateOrderDefault) String

func (o *CreateOrderDefault) String() string

type CreateOrderOK

type CreateOrderOK struct {
	Payload *models.OrderingpbCreateOrderResponse
}
CreateOrderOK describes a response with status code 200, with default header values.

A successful response.

func NewCreateOrderOK

func NewCreateOrderOK() *CreateOrderOK

NewCreateOrderOK creates a CreateOrderOK with default headers values

func (*CreateOrderOK) Error

func (o *CreateOrderOK) Error() string

func (*CreateOrderOK) GetPayload

func (*CreateOrderOK) IsClientError

func (o *CreateOrderOK) IsClientError() bool

IsClientError returns true when this create order o k response has a 4xx status code

func (*CreateOrderOK) IsCode

func (o *CreateOrderOK) IsCode(code int) bool

IsCode returns true when this create order o k response a status code equal to that given

func (*CreateOrderOK) IsRedirect

func (o *CreateOrderOK) IsRedirect() bool

IsRedirect returns true when this create order o k response has a 3xx status code

func (*CreateOrderOK) IsServerError

func (o *CreateOrderOK) IsServerError() bool

IsServerError returns true when this create order o k response has a 5xx status code

func (*CreateOrderOK) IsSuccess

func (o *CreateOrderOK) IsSuccess() bool

IsSuccess returns true when this create order o k response has a 2xx status code

func (*CreateOrderOK) String

func (o *CreateOrderOK) String() string

type CreateOrderParams

type CreateOrderParams struct {

	// Body.
	Body *models.OrderingpbCreateOrderRequest

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

CreateOrderParams contains all the parameters to send to the API endpoint

for the create order operation.

Typically these are written to a http.Request.

func NewCreateOrderParams

func NewCreateOrderParams() *CreateOrderParams

NewCreateOrderParams creates a new CreateOrderParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewCreateOrderParamsWithContext

func NewCreateOrderParamsWithContext(ctx context.Context) *CreateOrderParams

NewCreateOrderParamsWithContext creates a new CreateOrderParams object with the ability to set a context for a request.

func NewCreateOrderParamsWithHTTPClient

func NewCreateOrderParamsWithHTTPClient(client *http.Client) *CreateOrderParams

NewCreateOrderParamsWithHTTPClient creates a new CreateOrderParams object with the ability to set a custom HTTPClient for a request.

func NewCreateOrderParamsWithTimeout

func NewCreateOrderParamsWithTimeout(timeout time.Duration) *CreateOrderParams

NewCreateOrderParamsWithTimeout creates a new CreateOrderParams object with the ability to set a timeout on a request.

func (*CreateOrderParams) SetBody

SetBody adds the body to the create order params

func (*CreateOrderParams) SetContext

func (o *CreateOrderParams) SetContext(ctx context.Context)

SetContext adds the context to the create order params

func (*CreateOrderParams) SetDefaults

func (o *CreateOrderParams) SetDefaults()

SetDefaults hydrates default values in the create order params (not the query body).

All values with no default are reset to their zero value.

func (*CreateOrderParams) SetHTTPClient

func (o *CreateOrderParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the create order params

func (*CreateOrderParams) SetTimeout

func (o *CreateOrderParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the create order params

func (*CreateOrderParams) WithBody

WithBody adds the body to the create order params

func (*CreateOrderParams) WithContext

func (o *CreateOrderParams) WithContext(ctx context.Context) *CreateOrderParams

WithContext adds the context to the create order params

func (*CreateOrderParams) WithDefaults

func (o *CreateOrderParams) WithDefaults() *CreateOrderParams

WithDefaults hydrates default values in the create order params (not the query body).

All values with no default are reset to their zero value.

func (*CreateOrderParams) WithHTTPClient

func (o *CreateOrderParams) WithHTTPClient(client *http.Client) *CreateOrderParams

WithHTTPClient adds the HTTPClient to the create order params

func (*CreateOrderParams) WithTimeout

func (o *CreateOrderParams) WithTimeout(timeout time.Duration) *CreateOrderParams

WithTimeout adds the timeout to the create order params

func (*CreateOrderParams) WriteToRequest

func (o *CreateOrderParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type CreateOrderReader

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

CreateOrderReader is a Reader for the CreateOrder structure.

func (*CreateOrderReader) ReadResponse

func (o *CreateOrderReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetOrderDefault

type GetOrderDefault struct {
	Payload *models.RPCStatus
	// contains filtered or unexported fields
}
GetOrderDefault describes a response with status code -1, with default header values.

An unexpected error response.

func NewGetOrderDefault

func NewGetOrderDefault(code int) *GetOrderDefault

NewGetOrderDefault creates a GetOrderDefault with default headers values

func (*GetOrderDefault) Code

func (o *GetOrderDefault) Code() int

Code gets the status code for the get order default response

func (*GetOrderDefault) Error

func (o *GetOrderDefault) Error() string

func (*GetOrderDefault) GetPayload

func (o *GetOrderDefault) GetPayload() *models.RPCStatus

func (*GetOrderDefault) IsClientError

func (o *GetOrderDefault) IsClientError() bool

IsClientError returns true when this get order default response has a 4xx status code

func (*GetOrderDefault) IsCode

func (o *GetOrderDefault) IsCode(code int) bool

IsCode returns true when this get order default response a status code equal to that given

func (*GetOrderDefault) IsRedirect

func (o *GetOrderDefault) IsRedirect() bool

IsRedirect returns true when this get order default response has a 3xx status code

func (*GetOrderDefault) IsServerError

func (o *GetOrderDefault) IsServerError() bool

IsServerError returns true when this get order default response has a 5xx status code

func (*GetOrderDefault) IsSuccess

func (o *GetOrderDefault) IsSuccess() bool

IsSuccess returns true when this get order default response has a 2xx status code

func (*GetOrderDefault) String

func (o *GetOrderDefault) String() string

type GetOrderOK

type GetOrderOK struct {
	Payload *models.OrderingpbGetOrderResponse
}
GetOrderOK describes a response with status code 200, with default header values.

A successful response.

func NewGetOrderOK

func NewGetOrderOK() *GetOrderOK

NewGetOrderOK creates a GetOrderOK with default headers values

func (*GetOrderOK) Error

func (o *GetOrderOK) Error() string

func (*GetOrderOK) GetPayload

func (o *GetOrderOK) GetPayload() *models.OrderingpbGetOrderResponse

func (*GetOrderOK) IsClientError

func (o *GetOrderOK) IsClientError() bool

IsClientError returns true when this get order o k response has a 4xx status code

func (*GetOrderOK) IsCode

func (o *GetOrderOK) IsCode(code int) bool

IsCode returns true when this get order o k response a status code equal to that given

func (*GetOrderOK) IsRedirect

func (o *GetOrderOK) IsRedirect() bool

IsRedirect returns true when this get order o k response has a 3xx status code

func (*GetOrderOK) IsServerError

func (o *GetOrderOK) IsServerError() bool

IsServerError returns true when this get order o k response has a 5xx status code

func (*GetOrderOK) IsSuccess

func (o *GetOrderOK) IsSuccess() bool

IsSuccess returns true when this get order o k response has a 2xx status code

func (*GetOrderOK) String

func (o *GetOrderOK) String() string

type GetOrderParams

type GetOrderParams struct {

	// ID.
	ID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetOrderParams contains all the parameters to send to the API endpoint

for the get order operation.

Typically these are written to a http.Request.

func NewGetOrderParams

func NewGetOrderParams() *GetOrderParams

NewGetOrderParams creates a new GetOrderParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetOrderParamsWithContext

func NewGetOrderParamsWithContext(ctx context.Context) *GetOrderParams

NewGetOrderParamsWithContext creates a new GetOrderParams object with the ability to set a context for a request.

func NewGetOrderParamsWithHTTPClient

func NewGetOrderParamsWithHTTPClient(client *http.Client) *GetOrderParams

NewGetOrderParamsWithHTTPClient creates a new GetOrderParams object with the ability to set a custom HTTPClient for a request.

func NewGetOrderParamsWithTimeout

func NewGetOrderParamsWithTimeout(timeout time.Duration) *GetOrderParams

NewGetOrderParamsWithTimeout creates a new GetOrderParams object with the ability to set a timeout on a request.

func (*GetOrderParams) SetContext

func (o *GetOrderParams) SetContext(ctx context.Context)

SetContext adds the context to the get order params

func (*GetOrderParams) SetDefaults

func (o *GetOrderParams) SetDefaults()

SetDefaults hydrates default values in the get order params (not the query body).

All values with no default are reset to their zero value.

func (*GetOrderParams) SetHTTPClient

func (o *GetOrderParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get order params

func (*GetOrderParams) SetID

func (o *GetOrderParams) SetID(id string)

SetID adds the id to the get order params

func (*GetOrderParams) SetTimeout

func (o *GetOrderParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get order params

func (*GetOrderParams) WithContext

func (o *GetOrderParams) WithContext(ctx context.Context) *GetOrderParams

WithContext adds the context to the get order params

func (*GetOrderParams) WithDefaults

func (o *GetOrderParams) WithDefaults() *GetOrderParams

WithDefaults hydrates default values in the get order params (not the query body).

All values with no default are reset to their zero value.

func (*GetOrderParams) WithHTTPClient

func (o *GetOrderParams) WithHTTPClient(client *http.Client) *GetOrderParams

WithHTTPClient adds the HTTPClient to the get order params

func (*GetOrderParams) WithID

func (o *GetOrderParams) WithID(id string) *GetOrderParams

WithID adds the id to the get order params

func (*GetOrderParams) WithTimeout

func (o *GetOrderParams) WithTimeout(timeout time.Duration) *GetOrderParams

WithTimeout adds the timeout to the get order params

func (*GetOrderParams) WriteToRequest

func (o *GetOrderParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetOrderReader

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

GetOrderReader is a Reader for the GetOrder structure.

func (*GetOrderReader) ReadResponse

func (o *GetOrderReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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