me

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2020 License: Apache-2.0 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 me API

func (*Client) GetMe

func (a *Client) GetMe(params *GetMeParams, authInfo runtime.ClientAuthInfoWriter) (*GetMeOK, error)

GetMe get me API

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	GetMe(params *GetMeParams, authInfo runtime.ClientAuthInfoWriter) (*GetMeOK, 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 me API client.

type GetMeOK

type GetMeOK struct {
	Payload *models.Me
}

GetMeOK handles this case with default header values.

Success

func NewGetMeOK

func NewGetMeOK() *GetMeOK

NewGetMeOK creates a GetMeOK with default headers values

func (*GetMeOK) Error

func (o *GetMeOK) Error() string

func (*GetMeOK) GetPayload

func (o *GetMeOK) GetPayload() *models.Me

type GetMeParams

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

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

func NewGetMeParams

func NewGetMeParams() *GetMeParams

NewGetMeParams creates a new GetMeParams object with the default values initialized.

func NewGetMeParamsWithContext

func NewGetMeParamsWithContext(ctx context.Context) *GetMeParams

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

func NewGetMeParamsWithHTTPClient

func NewGetMeParamsWithHTTPClient(client *http.Client) *GetMeParams

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

func NewGetMeParamsWithTimeout

func NewGetMeParamsWithTimeout(timeout time.Duration) *GetMeParams

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

func (*GetMeParams) SetContext

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

SetContext adds the context to the get me params

func (*GetMeParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get me params

func (*GetMeParams) SetTimeout

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

SetTimeout adds the timeout to the get me params

func (*GetMeParams) WithContext

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

WithContext adds the context to the get me params

func (*GetMeParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get me params

func (*GetMeParams) WithTimeout

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

WithTimeout adds the timeout to the get me params

func (*GetMeParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetMeReader

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

GetMeReader is a Reader for the GetMe structure.

func (*GetMeReader) ReadResponse

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