Help us shape the future of Go! Take the 2026 Go Developer Survey

account

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2020 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 account API

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client

New creates a new account API client.

func (*Client) GetAccount

func (a *Client) GetAccount(params *GetAccountParams, authInfo runtime.ClientAuthInfoWriter) (*GetAccountOK, error)

GetAccount gets your account informations plans and credits details

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type GetAccountOK

type GetAccountOK struct {
	Payload *models.GetAccount
}

GetAccountOK handles this case with default header values.

account informations

func NewGetAccountOK

func NewGetAccountOK() *GetAccountOK

NewGetAccountOK creates a GetAccountOK with default headers values

func (*GetAccountOK) Error

func (o *GetAccountOK) Error() string

type GetAccountParams

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

GetAccountParams contains all the parameters to send to the API endpoint for the get account operation typically these are written to a http.Request

func NewGetAccountParams

func NewGetAccountParams() *GetAccountParams

NewGetAccountParams creates a new GetAccountParams object with the default values initialized.

func NewGetAccountParamsWithContext

func NewGetAccountParamsWithContext(ctx context.Context) *GetAccountParams

NewGetAccountParamsWithContext creates a new GetAccountParams object with the default values initialized, and the ability to set a context for a request

func NewGetAccountParamsWithHTTPClient

func NewGetAccountParamsWithHTTPClient(client *http.Client) *GetAccountParams

NewGetAccountParamsWithHTTPClient creates a new GetAccountParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetAccountParamsWithTimeout

func NewGetAccountParamsWithTimeout(timeout time.Duration) *GetAccountParams

NewGetAccountParamsWithTimeout creates a new GetAccountParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetAccountParams) SetContext

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

SetContext adds the context to the get account params

func (*GetAccountParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get account params

func (*GetAccountParams) SetTimeout

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

SetTimeout adds the timeout to the get account params

func (*GetAccountParams) WithContext

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

WithContext adds the context to the get account params

func (*GetAccountParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get account params

func (*GetAccountParams) WithTimeout

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

WithTimeout adds the timeout to the get account params

func (*GetAccountParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetAccountReader

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

GetAccountReader is a Reader for the GetAccount structure.

func (*GetAccountReader) ReadResponse

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