participation

package
v0.0.0-...-0ebfa01 Latest Latest
Warning

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

Go to latest
Published: May 20, 2024 License: MIT Imports: 10 Imported by: 1

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 participation API

func (*Client) DisableParticipation

func (a *Client) DisableParticipation(params *DisableParticipationParams, opts ...ClientOption) (*DisableParticipationOK, error)

DisableParticipation disables store service participation

func (*Client) EnableParticipation

func (a *Client) EnableParticipation(params *EnableParticipationParams, opts ...ClientOption) (*EnableParticipationOK, error)

EnableParticipation enables store service participation

func (*Client) GetParticipatingStores

func (a *Client) GetParticipatingStores(params *GetParticipatingStoresParams, opts ...ClientOption) (*GetParticipatingStoresOK, error)

GetParticipatingStores gets a list of participating stores

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 {
	DisableParticipation(params *DisableParticipationParams, opts ...ClientOption) (*DisableParticipationOK, error)

	EnableParticipation(params *EnableParticipationParams, opts ...ClientOption) (*EnableParticipationOK, error)

	GetParticipatingStores(params *GetParticipatingStoresParams, opts ...ClientOption) (*GetParticipatingStoresOK, 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 participation API client.

type DisableParticipationDefault

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

An unexpected error response.

func NewDisableParticipationDefault

func NewDisableParticipationDefault(code int) *DisableParticipationDefault

NewDisableParticipationDefault creates a DisableParticipationDefault with default headers values

func (*DisableParticipationDefault) Code

func (o *DisableParticipationDefault) Code() int

Code gets the status code for the disable participation default response

func (*DisableParticipationDefault) Error

func (*DisableParticipationDefault) GetPayload

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

type DisableParticipationOK

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

A successful response.

func NewDisableParticipationOK

func NewDisableParticipationOK() *DisableParticipationOK

NewDisableParticipationOK creates a DisableParticipationOK with default headers values

func (*DisableParticipationOK) Error

func (o *DisableParticipationOK) Error() string

func (*DisableParticipationOK) GetPayload

type DisableParticipationParams

type DisableParticipationParams struct {

	// ID.
	ID string

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

DisableParticipationParams contains all the parameters to send to the API endpoint

for the disable participation operation.

Typically these are written to a http.Request.

func NewDisableParticipationParams

func NewDisableParticipationParams() *DisableParticipationParams

NewDisableParticipationParams creates a new DisableParticipationParams 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 NewDisableParticipationParamsWithContext

func NewDisableParticipationParamsWithContext(ctx context.Context) *DisableParticipationParams

NewDisableParticipationParamsWithContext creates a new DisableParticipationParams object with the ability to set a context for a request.

func NewDisableParticipationParamsWithHTTPClient

func NewDisableParticipationParamsWithHTTPClient(client *http.Client) *DisableParticipationParams

NewDisableParticipationParamsWithHTTPClient creates a new DisableParticipationParams object with the ability to set a custom HTTPClient for a request.

func NewDisableParticipationParamsWithTimeout

func NewDisableParticipationParamsWithTimeout(timeout time.Duration) *DisableParticipationParams

NewDisableParticipationParamsWithTimeout creates a new DisableParticipationParams object with the ability to set a timeout on a request.

func (*DisableParticipationParams) SetContext

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

SetContext adds the context to the disable participation params

func (*DisableParticipationParams) SetDefaults

func (o *DisableParticipationParams) SetDefaults()

SetDefaults hydrates default values in the disable participation params (not the query body).

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

func (*DisableParticipationParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the disable participation params

func (*DisableParticipationParams) SetID

func (o *DisableParticipationParams) SetID(id string)

SetID adds the id to the disable participation params

func (*DisableParticipationParams) SetTimeout

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

SetTimeout adds the timeout to the disable participation params

func (*DisableParticipationParams) WithContext

WithContext adds the context to the disable participation params

func (*DisableParticipationParams) WithDefaults

WithDefaults hydrates default values in the disable participation params (not the query body).

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

func (*DisableParticipationParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the disable participation params

func (*DisableParticipationParams) WithID

WithID adds the id to the disable participation params

func (*DisableParticipationParams) WithTimeout

WithTimeout adds the timeout to the disable participation params

func (*DisableParticipationParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DisableParticipationReader

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

DisableParticipationReader is a Reader for the DisableParticipation structure.

func (*DisableParticipationReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type EnableParticipationDefault

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

An unexpected error response.

func NewEnableParticipationDefault

func NewEnableParticipationDefault(code int) *EnableParticipationDefault

NewEnableParticipationDefault creates a EnableParticipationDefault with default headers values

func (*EnableParticipationDefault) Code

func (o *EnableParticipationDefault) Code() int

Code gets the status code for the enable participation default response

func (*EnableParticipationDefault) Error

func (*EnableParticipationDefault) GetPayload

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

type EnableParticipationOK

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

A successful response.

func NewEnableParticipationOK

func NewEnableParticipationOK() *EnableParticipationOK

NewEnableParticipationOK creates a EnableParticipationOK with default headers values

func (*EnableParticipationOK) Error

func (o *EnableParticipationOK) Error() string

func (*EnableParticipationOK) GetPayload

type EnableParticipationParams

type EnableParticipationParams struct {

	// Body.
	Body interface{}

	// ID.
	ID string

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

EnableParticipationParams contains all the parameters to send to the API endpoint

for the enable participation operation.

Typically these are written to a http.Request.

func NewEnableParticipationParams

func NewEnableParticipationParams() *EnableParticipationParams

NewEnableParticipationParams creates a new EnableParticipationParams 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 NewEnableParticipationParamsWithContext

func NewEnableParticipationParamsWithContext(ctx context.Context) *EnableParticipationParams

NewEnableParticipationParamsWithContext creates a new EnableParticipationParams object with the ability to set a context for a request.

func NewEnableParticipationParamsWithHTTPClient

func NewEnableParticipationParamsWithHTTPClient(client *http.Client) *EnableParticipationParams

NewEnableParticipationParamsWithHTTPClient creates a new EnableParticipationParams object with the ability to set a custom HTTPClient for a request.

func NewEnableParticipationParamsWithTimeout

func NewEnableParticipationParamsWithTimeout(timeout time.Duration) *EnableParticipationParams

NewEnableParticipationParamsWithTimeout creates a new EnableParticipationParams object with the ability to set a timeout on a request.

func (*EnableParticipationParams) SetBody

func (o *EnableParticipationParams) SetBody(body interface{})

SetBody adds the body to the enable participation params

func (*EnableParticipationParams) SetContext

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

SetContext adds the context to the enable participation params

func (*EnableParticipationParams) SetDefaults

func (o *EnableParticipationParams) SetDefaults()

SetDefaults hydrates default values in the enable participation params (not the query body).

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

func (*EnableParticipationParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the enable participation params

func (*EnableParticipationParams) SetID

func (o *EnableParticipationParams) SetID(id string)

SetID adds the id to the enable participation params

func (*EnableParticipationParams) SetTimeout

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

SetTimeout adds the timeout to the enable participation params

func (*EnableParticipationParams) WithBody

func (o *EnableParticipationParams) WithBody(body interface{}) *EnableParticipationParams

WithBody adds the body to the enable participation params

func (*EnableParticipationParams) WithContext

WithContext adds the context to the enable participation params

func (*EnableParticipationParams) WithDefaults

WithDefaults hydrates default values in the enable participation params (not the query body).

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

func (*EnableParticipationParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the enable participation params

func (*EnableParticipationParams) WithID

WithID adds the id to the enable participation params

func (*EnableParticipationParams) WithTimeout

WithTimeout adds the timeout to the enable participation params

func (*EnableParticipationParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type EnableParticipationReader

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

EnableParticipationReader is a Reader for the EnableParticipation structure.

func (*EnableParticipationReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetParticipatingStoresDefault

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

An unexpected error response.

func NewGetParticipatingStoresDefault

func NewGetParticipatingStoresDefault(code int) *GetParticipatingStoresDefault

NewGetParticipatingStoresDefault creates a GetParticipatingStoresDefault with default headers values

func (*GetParticipatingStoresDefault) Code

Code gets the status code for the get participating stores default response

func (*GetParticipatingStoresDefault) Error

func (*GetParticipatingStoresDefault) GetPayload

type GetParticipatingStoresOK

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

A successful response.

func NewGetParticipatingStoresOK

func NewGetParticipatingStoresOK() *GetParticipatingStoresOK

NewGetParticipatingStoresOK creates a GetParticipatingStoresOK with default headers values

func (*GetParticipatingStoresOK) Error

func (o *GetParticipatingStoresOK) Error() string

func (*GetParticipatingStoresOK) GetPayload

type GetParticipatingStoresParams

type GetParticipatingStoresParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetParticipatingStoresParams contains all the parameters to send to the API endpoint

for the get participating stores operation.

Typically these are written to a http.Request.

func NewGetParticipatingStoresParams

func NewGetParticipatingStoresParams() *GetParticipatingStoresParams

NewGetParticipatingStoresParams creates a new GetParticipatingStoresParams 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 NewGetParticipatingStoresParamsWithContext

func NewGetParticipatingStoresParamsWithContext(ctx context.Context) *GetParticipatingStoresParams

NewGetParticipatingStoresParamsWithContext creates a new GetParticipatingStoresParams object with the ability to set a context for a request.

func NewGetParticipatingStoresParamsWithHTTPClient

func NewGetParticipatingStoresParamsWithHTTPClient(client *http.Client) *GetParticipatingStoresParams

NewGetParticipatingStoresParamsWithHTTPClient creates a new GetParticipatingStoresParams object with the ability to set a custom HTTPClient for a request.

func NewGetParticipatingStoresParamsWithTimeout

func NewGetParticipatingStoresParamsWithTimeout(timeout time.Duration) *GetParticipatingStoresParams

NewGetParticipatingStoresParamsWithTimeout creates a new GetParticipatingStoresParams object with the ability to set a timeout on a request.

func (*GetParticipatingStoresParams) SetContext

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

SetContext adds the context to the get participating stores params

func (*GetParticipatingStoresParams) SetDefaults

func (o *GetParticipatingStoresParams) SetDefaults()

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

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

func (*GetParticipatingStoresParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get participating stores params

func (*GetParticipatingStoresParams) SetTimeout

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

SetTimeout adds the timeout to the get participating stores params

func (*GetParticipatingStoresParams) WithContext

WithContext adds the context to the get participating stores params

func (*GetParticipatingStoresParams) WithDefaults

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

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

func (*GetParticipatingStoresParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get participating stores params

func (*GetParticipatingStoresParams) WithTimeout

WithTimeout adds the timeout to the get participating stores params

func (*GetParticipatingStoresParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetParticipatingStoresReader

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

GetParticipatingStoresReader is a Reader for the GetParticipatingStores structure.

func (*GetParticipatingStoresReader) ReadResponse

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