to_process

package
v0.0.0-...-2439cfa Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2025 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithAcceptApplicationJSON

func WithAcceptApplicationJSON(r *runtime.ClientOperation)

WithAcceptApplicationJSON sets the Accept header to "application/json".

func WithAcceptApplicationXML

func WithAcceptApplicationXML(r *runtime.ClientOperation)

WithAcceptApplicationXML sets the Accept header to "application/xml".

func WithAcceptTextJSON

func WithAcceptTextJSON(r *runtime.ClientOperation)

WithAcceptTextJSON sets the Accept header to "text/json".

func WithAcceptTextXML

func WithAcceptTextXML(r *runtime.ClientOperation)

WithAcceptTextXML sets the Accept header to "text/xml".

func WithContentTypeApplicationJSON

func WithContentTypeApplicationJSON(r *runtime.ClientOperation)

WithContentTypeApplicationJSON sets the Content-Type header to "application/json".

func WithContentTypeApplicationXML

func WithContentTypeApplicationXML(r *runtime.ClientOperation)

WithContentTypeApplicationXML sets the Content-Type header to "application/xml".

func WithContentTypeApplicationxWwwFormUrlencoded

func WithContentTypeApplicationxWwwFormUrlencoded(r *runtime.ClientOperation)

WithContentTypeApplicationxWwwFormUrlencoded sets the Content-Type header to "application/x-www-form-urlencoded".

func WithContentTypeTextJSON

func WithContentTypeTextJSON(r *runtime.ClientOperation)

WithContentTypeTextJSON sets the Content-Type header to "text/json".

func WithContentTypeTextXML

func WithContentTypeTextXML(r *runtime.ClientOperation)

WithContentTypeTextXML sets the Content-Type header to "text/xml".

Types

type Client

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

Client for to process API

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) ToProcessDeleteToProcess

func (a *Client) ToProcessDeleteToProcess(params *ToProcessDeleteToProcessParams, opts ...ClientOption) (*ToProcessDeleteToProcessOK, error)

ToProcessDeleteToProcess to process delete to process API

func (*Client) ToProcessPostToProcess

func (a *Client) ToProcessPostToProcess(params *ToProcessPostToProcessParams, opts ...ClientOption) (*ToProcessPostToProcessOK, error)

ToProcessPostToProcess to process post to process API

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption may be used to customize the behavior of Client methods.

func WithAccept

func WithAccept(mime string) ClientOption

WithAccept allows the client to force the Accept header to negotiate a specific Producer from the server.

You may use this option to set arbitrary extensions to your MIME media type.

func WithContentType

func WithContentType(mime string) ClientOption

WithContentType allows the client to force the Content-Type header to negotiate a specific Consumer from the server.

You may use this option to set arbitrary extensions to your MIME media type.

type ClientService

type ClientService interface {
	ToProcessDeleteToProcess(params *ToProcessDeleteToProcessParams, opts ...ClientOption) (*ToProcessDeleteToProcessOK, error)

	ToProcessPostToProcess(params *ToProcessPostToProcessParams, opts ...ClientOption) (*ToProcessPostToProcessOK, 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 to process API client.

func NewClientWithBasicAuth

func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService

New creates a new to process API client with basic auth credentials. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - user: user for basic authentication header. - password: password for basic authentication header.

func NewClientWithBearerToken

func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) ClientService

New creates a new to process API client with a bearer token for authentication. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - bearerToken: bearer token for Bearer authentication header.

type ToProcessDeleteToProcessOK

type ToProcessDeleteToProcessOK struct {
}

ToProcessDeleteToProcessOK describes a response with status code 200, with default header values.

Delete a document to process, based on the upload

func NewToProcessDeleteToProcessOK

func NewToProcessDeleteToProcessOK() *ToProcessDeleteToProcessOK

NewToProcessDeleteToProcessOK creates a ToProcessDeleteToProcessOK with default headers values

func (*ToProcessDeleteToProcessOK) Code

func (o *ToProcessDeleteToProcessOK) Code() int

Code gets the status code for the to process delete to process o k response

func (*ToProcessDeleteToProcessOK) Error

func (*ToProcessDeleteToProcessOK) IsClientError

func (o *ToProcessDeleteToProcessOK) IsClientError() bool

IsClientError returns true when this to process delete to process o k response has a 4xx status code

func (*ToProcessDeleteToProcessOK) IsCode

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

IsCode returns true when this to process delete to process o k response a status code equal to that given

func (*ToProcessDeleteToProcessOK) IsRedirect

func (o *ToProcessDeleteToProcessOK) IsRedirect() bool

IsRedirect returns true when this to process delete to process o k response has a 3xx status code

func (*ToProcessDeleteToProcessOK) IsServerError

func (o *ToProcessDeleteToProcessOK) IsServerError() bool

IsServerError returns true when this to process delete to process o k response has a 5xx status code

func (*ToProcessDeleteToProcessOK) IsSuccess

func (o *ToProcessDeleteToProcessOK) IsSuccess() bool

IsSuccess returns true when this to process delete to process o k response has a 2xx status code

func (*ToProcessDeleteToProcessOK) String

func (o *ToProcessDeleteToProcessOK) String() string

type ToProcessDeleteToProcessParams

type ToProcessDeleteToProcessParams struct {

	// UploadID.
	//
	// Format: int32
	UploadID int32

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

ToProcessDeleteToProcessParams contains all the parameters to send to the API endpoint

for the to process delete to process operation.

Typically these are written to a http.Request.

func NewToProcessDeleteToProcessParams

func NewToProcessDeleteToProcessParams() *ToProcessDeleteToProcessParams

NewToProcessDeleteToProcessParams creates a new ToProcessDeleteToProcessParams 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 NewToProcessDeleteToProcessParamsWithContext

func NewToProcessDeleteToProcessParamsWithContext(ctx context.Context) *ToProcessDeleteToProcessParams

NewToProcessDeleteToProcessParamsWithContext creates a new ToProcessDeleteToProcessParams object with the ability to set a context for a request.

func NewToProcessDeleteToProcessParamsWithHTTPClient

func NewToProcessDeleteToProcessParamsWithHTTPClient(client *http.Client) *ToProcessDeleteToProcessParams

NewToProcessDeleteToProcessParamsWithHTTPClient creates a new ToProcessDeleteToProcessParams object with the ability to set a custom HTTPClient for a request.

func NewToProcessDeleteToProcessParamsWithTimeout

func NewToProcessDeleteToProcessParamsWithTimeout(timeout time.Duration) *ToProcessDeleteToProcessParams

NewToProcessDeleteToProcessParamsWithTimeout creates a new ToProcessDeleteToProcessParams object with the ability to set a timeout on a request.

func (*ToProcessDeleteToProcessParams) SetContext

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

SetContext adds the context to the to process delete to process params

func (*ToProcessDeleteToProcessParams) SetDefaults

func (o *ToProcessDeleteToProcessParams) SetDefaults()

SetDefaults hydrates default values in the to process delete to process params (not the query body).

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

func (*ToProcessDeleteToProcessParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the to process delete to process params

func (*ToProcessDeleteToProcessParams) SetTimeout

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

SetTimeout adds the timeout to the to process delete to process params

func (*ToProcessDeleteToProcessParams) SetUploadID

func (o *ToProcessDeleteToProcessParams) SetUploadID(uploadID int32)

SetUploadID adds the uploadId to the to process delete to process params

func (*ToProcessDeleteToProcessParams) WithContext

WithContext adds the context to the to process delete to process params

func (*ToProcessDeleteToProcessParams) WithDefaults

WithDefaults hydrates default values in the to process delete to process params (not the query body).

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

func (*ToProcessDeleteToProcessParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the to process delete to process params

func (*ToProcessDeleteToProcessParams) WithTimeout

WithTimeout adds the timeout to the to process delete to process params

func (*ToProcessDeleteToProcessParams) WithUploadID

WithUploadID adds the uploadID to the to process delete to process params

func (*ToProcessDeleteToProcessParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ToProcessDeleteToProcessReader

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

ToProcessDeleteToProcessReader is a Reader for the ToProcessDeleteToProcess structure.

func (*ToProcessDeleteToProcessReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ToProcessPostToProcessOK

type ToProcessPostToProcessOK struct {
	Payload int32
}

ToProcessPostToProcessOK describes a response with status code 200, with default header values.

Save a new document to process. Rerturns an upload ID

func NewToProcessPostToProcessOK

func NewToProcessPostToProcessOK() *ToProcessPostToProcessOK

NewToProcessPostToProcessOK creates a ToProcessPostToProcessOK with default headers values

func (*ToProcessPostToProcessOK) Code

func (o *ToProcessPostToProcessOK) Code() int

Code gets the status code for the to process post to process o k response

func (*ToProcessPostToProcessOK) Error

func (o *ToProcessPostToProcessOK) Error() string

func (*ToProcessPostToProcessOK) GetPayload

func (o *ToProcessPostToProcessOK) GetPayload() int32

func (*ToProcessPostToProcessOK) IsClientError

func (o *ToProcessPostToProcessOK) IsClientError() bool

IsClientError returns true when this to process post to process o k response has a 4xx status code

func (*ToProcessPostToProcessOK) IsCode

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

IsCode returns true when this to process post to process o k response a status code equal to that given

func (*ToProcessPostToProcessOK) IsRedirect

func (o *ToProcessPostToProcessOK) IsRedirect() bool

IsRedirect returns true when this to process post to process o k response has a 3xx status code

func (*ToProcessPostToProcessOK) IsServerError

func (o *ToProcessPostToProcessOK) IsServerError() bool

IsServerError returns true when this to process post to process o k response has a 5xx status code

func (*ToProcessPostToProcessOK) IsSuccess

func (o *ToProcessPostToProcessOK) IsSuccess() bool

IsSuccess returns true when this to process post to process o k response has a 2xx status code

func (*ToProcessPostToProcessOK) String

func (o *ToProcessPostToProcessOK) String() string

type ToProcessPostToProcessParams

type ToProcessPostToProcessParams struct {

	// ToProcess.
	ToProcess *model.ToProcessSaveRequest

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

ToProcessPostToProcessParams contains all the parameters to send to the API endpoint

for the to process post to process operation.

Typically these are written to a http.Request.

func NewToProcessPostToProcessParams

func NewToProcessPostToProcessParams() *ToProcessPostToProcessParams

NewToProcessPostToProcessParams creates a new ToProcessPostToProcessParams 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 NewToProcessPostToProcessParamsWithContext

func NewToProcessPostToProcessParamsWithContext(ctx context.Context) *ToProcessPostToProcessParams

NewToProcessPostToProcessParamsWithContext creates a new ToProcessPostToProcessParams object with the ability to set a context for a request.

func NewToProcessPostToProcessParamsWithHTTPClient

func NewToProcessPostToProcessParamsWithHTTPClient(client *http.Client) *ToProcessPostToProcessParams

NewToProcessPostToProcessParamsWithHTTPClient creates a new ToProcessPostToProcessParams object with the ability to set a custom HTTPClient for a request.

func NewToProcessPostToProcessParamsWithTimeout

func NewToProcessPostToProcessParamsWithTimeout(timeout time.Duration) *ToProcessPostToProcessParams

NewToProcessPostToProcessParamsWithTimeout creates a new ToProcessPostToProcessParams object with the ability to set a timeout on a request.

func (*ToProcessPostToProcessParams) SetContext

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

SetContext adds the context to the to process post to process params

func (*ToProcessPostToProcessParams) SetDefaults

func (o *ToProcessPostToProcessParams) SetDefaults()

SetDefaults hydrates default values in the to process post to process params (not the query body).

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

func (*ToProcessPostToProcessParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the to process post to process params

func (*ToProcessPostToProcessParams) SetTimeout

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

SetTimeout adds the timeout to the to process post to process params

func (*ToProcessPostToProcessParams) SetToProcess

func (o *ToProcessPostToProcessParams) SetToProcess(toProcess *model.ToProcessSaveRequest)

SetToProcess adds the toProcess to the to process post to process params

func (*ToProcessPostToProcessParams) WithContext

WithContext adds the context to the to process post to process params

func (*ToProcessPostToProcessParams) WithDefaults

WithDefaults hydrates default values in the to process post to process params (not the query body).

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

func (*ToProcessPostToProcessParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the to process post to process params

func (*ToProcessPostToProcessParams) WithTimeout

WithTimeout adds the timeout to the to process post to process params

func (*ToProcessPostToProcessParams) WithToProcess

WithToProcess adds the toProcess to the to process post to process params

func (*ToProcessPostToProcessParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ToProcessPostToProcessReader

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

ToProcessPostToProcessReader is a Reader for the ToProcessPostToProcess structure.

func (*ToProcessPostToProcessReader) ReadResponse

func (o *ToProcessPostToProcessReader) 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