Documentation ¶
Index ¶
- type Client
- func (a *Client) DisableParticipation(params *DisableParticipationParams, opts ...ClientOption) (*DisableParticipationOK, error)
- func (a *Client) EnableParticipation(params *EnableParticipationParams, opts ...ClientOption) (*EnableParticipationOK, error)
- func (a *Client) GetParticipatingStores(params *GetParticipatingStoresParams, opts ...ClientOption) (*GetParticipatingStoresOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type DisableParticipationDefault
- type DisableParticipationOK
- type DisableParticipationParams
- func NewDisableParticipationParams() *DisableParticipationParams
- func NewDisableParticipationParamsWithContext(ctx context.Context) *DisableParticipationParams
- func NewDisableParticipationParamsWithHTTPClient(client *http.Client) *DisableParticipationParams
- func NewDisableParticipationParamsWithTimeout(timeout time.Duration) *DisableParticipationParams
- func (o *DisableParticipationParams) SetContext(ctx context.Context)
- func (o *DisableParticipationParams) SetDefaults()
- func (o *DisableParticipationParams) SetHTTPClient(client *http.Client)
- func (o *DisableParticipationParams) SetID(id string)
- func (o *DisableParticipationParams) SetTimeout(timeout time.Duration)
- func (o *DisableParticipationParams) WithContext(ctx context.Context) *DisableParticipationParams
- func (o *DisableParticipationParams) WithDefaults() *DisableParticipationParams
- func (o *DisableParticipationParams) WithHTTPClient(client *http.Client) *DisableParticipationParams
- func (o *DisableParticipationParams) WithID(id string) *DisableParticipationParams
- func (o *DisableParticipationParams) WithTimeout(timeout time.Duration) *DisableParticipationParams
- func (o *DisableParticipationParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DisableParticipationReader
- type EnableParticipationDefault
- type EnableParticipationOK
- type EnableParticipationParams
- func NewEnableParticipationParams() *EnableParticipationParams
- func NewEnableParticipationParamsWithContext(ctx context.Context) *EnableParticipationParams
- func NewEnableParticipationParamsWithHTTPClient(client *http.Client) *EnableParticipationParams
- func NewEnableParticipationParamsWithTimeout(timeout time.Duration) *EnableParticipationParams
- func (o *EnableParticipationParams) SetBody(body interface{})
- func (o *EnableParticipationParams) SetContext(ctx context.Context)
- func (o *EnableParticipationParams) SetDefaults()
- func (o *EnableParticipationParams) SetHTTPClient(client *http.Client)
- func (o *EnableParticipationParams) SetID(id string)
- func (o *EnableParticipationParams) SetTimeout(timeout time.Duration)
- func (o *EnableParticipationParams) WithBody(body interface{}) *EnableParticipationParams
- func (o *EnableParticipationParams) WithContext(ctx context.Context) *EnableParticipationParams
- func (o *EnableParticipationParams) WithDefaults() *EnableParticipationParams
- func (o *EnableParticipationParams) WithHTTPClient(client *http.Client) *EnableParticipationParams
- func (o *EnableParticipationParams) WithID(id string) *EnableParticipationParams
- func (o *EnableParticipationParams) WithTimeout(timeout time.Duration) *EnableParticipationParams
- func (o *EnableParticipationParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type EnableParticipationReader
- type GetParticipatingStoresDefault
- type GetParticipatingStoresOK
- type GetParticipatingStoresParams
- func NewGetParticipatingStoresParams() *GetParticipatingStoresParams
- func NewGetParticipatingStoresParamsWithContext(ctx context.Context) *GetParticipatingStoresParams
- func NewGetParticipatingStoresParamsWithHTTPClient(client *http.Client) *GetParticipatingStoresParams
- func NewGetParticipatingStoresParamsWithTimeout(timeout time.Duration) *GetParticipatingStoresParams
- func (o *GetParticipatingStoresParams) SetContext(ctx context.Context)
- func (o *GetParticipatingStoresParams) SetDefaults()
- func (o *GetParticipatingStoresParams) SetHTTPClient(client *http.Client)
- func (o *GetParticipatingStoresParams) SetTimeout(timeout time.Duration)
- func (o *GetParticipatingStoresParams) WithContext(ctx context.Context) *GetParticipatingStoresParams
- func (o *GetParticipatingStoresParams) WithDefaults() *GetParticipatingStoresParams
- func (o *GetParticipatingStoresParams) WithHTTPClient(client *http.Client) *GetParticipatingStoresParams
- func (o *GetParticipatingStoresParams) WithTimeout(timeout time.Duration) *GetParticipatingStoresParams
- func (o *GetParticipatingStoresParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetParticipatingStoresReader
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 (o *DisableParticipationDefault) Error() string
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 ¶
func (o *DisableParticipationOK) GetPayload() models.StorespbDisableParticipationResponse
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 ¶
func (o *DisableParticipationParams) WithContext(ctx context.Context) *DisableParticipationParams
WithContext adds the context to the disable participation params
func (*DisableParticipationParams) WithDefaults ¶
func (o *DisableParticipationParams) WithDefaults() *DisableParticipationParams
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 ¶
func (o *DisableParticipationParams) WithHTTPClient(client *http.Client) *DisableParticipationParams
WithHTTPClient adds the HTTPClient to the disable participation params
func (*DisableParticipationParams) WithID ¶
func (o *DisableParticipationParams) WithID(id string) *DisableParticipationParams
WithID adds the id to the disable participation params
func (*DisableParticipationParams) WithTimeout ¶
func (o *DisableParticipationParams) WithTimeout(timeout time.Duration) *DisableParticipationParams
WithTimeout adds the timeout to the disable participation params
func (*DisableParticipationParams) WriteToRequest ¶
func (o *DisableParticipationParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 (o *EnableParticipationDefault) Error() string
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 ¶
func (o *EnableParticipationOK) GetPayload() models.StorespbEnableParticipationResponse
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 ¶
func (o *EnableParticipationParams) WithContext(ctx context.Context) *EnableParticipationParams
WithContext adds the context to the enable participation params
func (*EnableParticipationParams) WithDefaults ¶
func (o *EnableParticipationParams) WithDefaults() *EnableParticipationParams
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 ¶
func (o *EnableParticipationParams) WithID(id string) *EnableParticipationParams
WithID adds the id to the enable participation params
func (*EnableParticipationParams) WithTimeout ¶
func (o *EnableParticipationParams) WithTimeout(timeout time.Duration) *EnableParticipationParams
WithTimeout adds the timeout to the enable participation params
func (*EnableParticipationParams) WriteToRequest ¶
func (o *EnableParticipationParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *GetParticipatingStoresDefault) Code() int
Code gets the status code for the get participating stores default response
func (*GetParticipatingStoresDefault) Error ¶
func (o *GetParticipatingStoresDefault) Error() string
func (*GetParticipatingStoresDefault) GetPayload ¶
func (o *GetParticipatingStoresDefault) GetPayload() *models.RPCStatus
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 ¶
func (o *GetParticipatingStoresOK) GetPayload() *models.StorespbGetParticipatingStoresResponse
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 ¶
func (o *GetParticipatingStoresParams) WithContext(ctx context.Context) *GetParticipatingStoresParams
WithContext adds the context to the get participating stores params
func (*GetParticipatingStoresParams) WithDefaults ¶
func (o *GetParticipatingStoresParams) WithDefaults() *GetParticipatingStoresParams
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 ¶
func (o *GetParticipatingStoresParams) WithHTTPClient(client *http.Client) *GetParticipatingStoresParams
WithHTTPClient adds the HTTPClient to the get participating stores params
func (*GetParticipatingStoresParams) WithTimeout ¶
func (o *GetParticipatingStoresParams) WithTimeout(timeout time.Duration) *GetParticipatingStoresParams
WithTimeout adds the timeout to the get participating stores params
func (*GetParticipatingStoresParams) WriteToRequest ¶
func (o *GetParticipatingStoresParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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.