campaigns

package
v0.0.0-...-cd4da8b Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for campaigns API

func (*Client) GetCampaignList

func (a *Client) GetCampaignList(params *GetCampaignListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetCampaignListOK, error)

GetCampaignList gets the list of campaigns

get the list of campaigns

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 {
	GetCampaignList(params *GetCampaignListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetCampaignListOK, 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 campaigns API client.

type GetCampaignListDefault

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

Unexpected error

func NewGetCampaignListDefault

func NewGetCampaignListDefault(code int) *GetCampaignListDefault

NewGetCampaignListDefault creates a GetCampaignListDefault with default headers values

func (*GetCampaignListDefault) Code

func (o *GetCampaignListDefault) Code() int

Code gets the status code for the get campaign list default response

func (*GetCampaignListDefault) Error

func (o *GetCampaignListDefault) Error() string

func (*GetCampaignListDefault) GetPayload

func (o *GetCampaignListDefault) GetPayload() *models.Error

type GetCampaignListOK

type GetCampaignListOK struct {
	Payload []*models.Campaign
}
GetCampaignListOK describes a response with status code 200, with default header values.

An array of campaigns

func NewGetCampaignListOK

func NewGetCampaignListOK() *GetCampaignListOK

NewGetCampaignListOK creates a GetCampaignListOK with default headers values

func (*GetCampaignListOK) Error

func (o *GetCampaignListOK) Error() string

func (*GetCampaignListOK) GetPayload

func (o *GetCampaignListOK) GetPayload() []*models.Campaign

type GetCampaignListParams

type GetCampaignListParams struct {

	/* ID.

	   Campaign ID
	*/
	ID []int32

	/* Status.

	   Campaign status
	*/
	Status *string

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

GetCampaignListParams contains all the parameters to send to the API endpoint

for the get campaign list operation.

Typically these are written to a http.Request.

func NewGetCampaignListParams

func NewGetCampaignListParams() *GetCampaignListParams

NewGetCampaignListParams creates a new GetCampaignListParams 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 NewGetCampaignListParamsWithContext

func NewGetCampaignListParamsWithContext(ctx context.Context) *GetCampaignListParams

NewGetCampaignListParamsWithContext creates a new GetCampaignListParams object with the ability to set a context for a request.

func NewGetCampaignListParamsWithHTTPClient

func NewGetCampaignListParamsWithHTTPClient(client *http.Client) *GetCampaignListParams

NewGetCampaignListParamsWithHTTPClient creates a new GetCampaignListParams object with the ability to set a custom HTTPClient for a request.

func NewGetCampaignListParamsWithTimeout

func NewGetCampaignListParamsWithTimeout(timeout time.Duration) *GetCampaignListParams

NewGetCampaignListParamsWithTimeout creates a new GetCampaignListParams object with the ability to set a timeout on a request.

func (*GetCampaignListParams) SetContext

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

SetContext adds the context to the get campaign list params

func (*GetCampaignListParams) SetDefaults

func (o *GetCampaignListParams) SetDefaults()

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

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

func (*GetCampaignListParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get campaign list params

func (*GetCampaignListParams) SetID

func (o *GetCampaignListParams) SetID(id []int32)

SetID adds the id to the get campaign list params

func (*GetCampaignListParams) SetStatus

func (o *GetCampaignListParams) SetStatus(status *string)

SetStatus adds the status to the get campaign list params

func (*GetCampaignListParams) SetTimeout

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

SetTimeout adds the timeout to the get campaign list params

func (*GetCampaignListParams) WithContext

WithContext adds the context to the get campaign list params

func (*GetCampaignListParams) WithDefaults

func (o *GetCampaignListParams) WithDefaults() *GetCampaignListParams

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

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

func (*GetCampaignListParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get campaign list params

func (*GetCampaignListParams) WithID

WithID adds the id to the get campaign list params

func (*GetCampaignListParams) WithStatus

func (o *GetCampaignListParams) WithStatus(status *string) *GetCampaignListParams

WithStatus adds the status to the get campaign list params

func (*GetCampaignListParams) WithTimeout

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

WithTimeout adds the timeout to the get campaign list params

func (*GetCampaignListParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetCampaignListReader

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

GetCampaignListReader is a Reader for the GetCampaignList structure.

func (*GetCampaignListReader) ReadResponse

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