user

package
v0.0.0-...-2f60d0a Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2021 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 Client

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

Client for user API

func (*Client) GetPremium

func (a *Client) GetPremium(params *GetPremiumParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetPremiumOK, error)

GetPremium gets premium status details

func (*Client) GetSubscriptions

func (a *Client) GetSubscriptions(params *GetSubscriptionsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetSubscriptionsOK, error)

GetSubscriptions gets subscriptions

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 {
	GetPremium(params *GetPremiumParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetPremiumOK, error)

	GetSubscriptions(params *GetSubscriptionsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetSubscriptionsOK, 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 user API client.

type GetPremiumDefault

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

Unexpected error

func NewGetPremiumDefault

func NewGetPremiumDefault(code int) *GetPremiumDefault

NewGetPremiumDefault creates a GetPremiumDefault with default headers values

func (*GetPremiumDefault) Code

func (o *GetPremiumDefault) Code() int

Code gets the status code for the get premium default response

func (*GetPremiumDefault) Error

func (o *GetPremiumDefault) Error() string

func (*GetPremiumDefault) GetPayload

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

type GetPremiumOK

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

OK

func NewGetPremiumOK

func NewGetPremiumOK() *GetPremiumOK

NewGetPremiumOK creates a GetPremiumOK with default headers values

func (*GetPremiumOK) Error

func (o *GetPremiumOK) Error() string

func (*GetPremiumOK) GetPayload

func (o *GetPremiumOK) GetPayload() *models.Subscription

type GetPremiumParams

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

GetPremiumParams contains all the parameters to send to the API endpoint

for the get premium operation.

Typically these are written to a http.Request.

func NewGetPremiumParams

func NewGetPremiumParams() *GetPremiumParams

NewGetPremiumParams creates a new GetPremiumParams 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 NewGetPremiumParamsWithContext

func NewGetPremiumParamsWithContext(ctx context.Context) *GetPremiumParams

NewGetPremiumParamsWithContext creates a new GetPremiumParams object with the ability to set a context for a request.

func NewGetPremiumParamsWithHTTPClient

func NewGetPremiumParamsWithHTTPClient(client *http.Client) *GetPremiumParams

NewGetPremiumParamsWithHTTPClient creates a new GetPremiumParams object with the ability to set a custom HTTPClient for a request.

func NewGetPremiumParamsWithTimeout

func NewGetPremiumParamsWithTimeout(timeout time.Duration) *GetPremiumParams

NewGetPremiumParamsWithTimeout creates a new GetPremiumParams object with the ability to set a timeout on a request.

func (*GetPremiumParams) SetContext

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

SetContext adds the context to the get premium params

func (*GetPremiumParams) SetDefaults

func (o *GetPremiumParams) SetDefaults()

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

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

func (*GetPremiumParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get premium params

func (*GetPremiumParams) SetTimeout

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

SetTimeout adds the timeout to the get premium params

func (*GetPremiumParams) WithContext

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

WithContext adds the context to the get premium params

func (*GetPremiumParams) WithDefaults

func (o *GetPremiumParams) WithDefaults() *GetPremiumParams

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

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

func (*GetPremiumParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get premium params

func (*GetPremiumParams) WithTimeout

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

WithTimeout adds the timeout to the get premium params

func (*GetPremiumParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetPremiumReader

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

GetPremiumReader is a Reader for the GetPremium structure.

func (*GetPremiumReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetSubscriptionsDefault

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

Unexpected error

func NewGetSubscriptionsDefault

func NewGetSubscriptionsDefault(code int) *GetSubscriptionsDefault

NewGetSubscriptionsDefault creates a GetSubscriptionsDefault with default headers values

func (*GetSubscriptionsDefault) Code

func (o *GetSubscriptionsDefault) Code() int

Code gets the status code for the get subscriptions default response

func (*GetSubscriptionsDefault) Error

func (o *GetSubscriptionsDefault) Error() string

func (*GetSubscriptionsDefault) GetPayload

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

type GetSubscriptionsOK

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

OK

func NewGetSubscriptionsOK

func NewGetSubscriptionsOK() *GetSubscriptionsOK

NewGetSubscriptionsOK creates a GetSubscriptionsOK with default headers values

func (*GetSubscriptionsOK) Error

func (o *GetSubscriptionsOK) Error() string

func (*GetSubscriptionsOK) GetPayload

func (o *GetSubscriptionsOK) GetPayload() []*models.Subscription

type GetSubscriptionsParams

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

GetSubscriptionsParams contains all the parameters to send to the API endpoint

for the get subscriptions operation.

Typically these are written to a http.Request.

func NewGetSubscriptionsParams

func NewGetSubscriptionsParams() *GetSubscriptionsParams

NewGetSubscriptionsParams creates a new GetSubscriptionsParams 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 NewGetSubscriptionsParamsWithContext

func NewGetSubscriptionsParamsWithContext(ctx context.Context) *GetSubscriptionsParams

NewGetSubscriptionsParamsWithContext creates a new GetSubscriptionsParams object with the ability to set a context for a request.

func NewGetSubscriptionsParamsWithHTTPClient

func NewGetSubscriptionsParamsWithHTTPClient(client *http.Client) *GetSubscriptionsParams

NewGetSubscriptionsParamsWithHTTPClient creates a new GetSubscriptionsParams object with the ability to set a custom HTTPClient for a request.

func NewGetSubscriptionsParamsWithTimeout

func NewGetSubscriptionsParamsWithTimeout(timeout time.Duration) *GetSubscriptionsParams

NewGetSubscriptionsParamsWithTimeout creates a new GetSubscriptionsParams object with the ability to set a timeout on a request.

func (*GetSubscriptionsParams) SetContext

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

SetContext adds the context to the get subscriptions params

func (*GetSubscriptionsParams) SetDefaults

func (o *GetSubscriptionsParams) SetDefaults()

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

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

func (*GetSubscriptionsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get subscriptions params

func (*GetSubscriptionsParams) SetTimeout

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

SetTimeout adds the timeout to the get subscriptions params

func (*GetSubscriptionsParams) WithContext

WithContext adds the context to the get subscriptions params

func (*GetSubscriptionsParams) WithDefaults

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

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

func (*GetSubscriptionsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get subscriptions params

func (*GetSubscriptionsParams) WithTimeout

WithTimeout adds the timeout to the get subscriptions params

func (*GetSubscriptionsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetSubscriptionsReader

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

GetSubscriptionsReader is a Reader for the GetSubscriptions structure.

func (*GetSubscriptionsReader) ReadResponse

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