members

package
v0.0.0-...-92dc8bc Latest Latest
Warning

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

Go to latest
Published: Jun 23, 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 members API

func (*Client) GetMember

func (a *Client) GetMember(params *GetMemberParams, opts ...ClientOption) (*GetMemberOK, error)

GetMember List members.

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 {
	GetMember(params *GetMemberParams, opts ...ClientOption) (*GetMemberOK, 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 members API client.

type GetMemberOK

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

Successful response

func NewGetMemberOK

func NewGetMemberOK() *GetMemberOK

NewGetMemberOK creates a GetMemberOK with default headers values

func (*GetMemberOK) Error

func (o *GetMemberOK) Error() string

func (*GetMemberOK) GetPayload

func (o *GetMemberOK) GetPayload() []*models.Member

type GetMemberParams

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

GetMemberParams contains all the parameters to send to the API endpoint

for the get member operation.

Typically these are written to a http.Request.

func NewGetMemberParams

func NewGetMemberParams() *GetMemberParams

NewGetMemberParams creates a new GetMemberParams 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 NewGetMemberParamsWithContext

func NewGetMemberParamsWithContext(ctx context.Context) *GetMemberParams

NewGetMemberParamsWithContext creates a new GetMemberParams object with the ability to set a context for a request.

func NewGetMemberParamsWithHTTPClient

func NewGetMemberParamsWithHTTPClient(client *http.Client) *GetMemberParams

NewGetMemberParamsWithHTTPClient creates a new GetMemberParams object with the ability to set a custom HTTPClient for a request.

func NewGetMemberParamsWithTimeout

func NewGetMemberParamsWithTimeout(timeout time.Duration) *GetMemberParams

NewGetMemberParamsWithTimeout creates a new GetMemberParams object with the ability to set a timeout on a request.

func (*GetMemberParams) SetContext

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

SetContext adds the context to the get member params

func (*GetMemberParams) SetDefaults

func (o *GetMemberParams) SetDefaults()

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

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

func (*GetMemberParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get member params

func (*GetMemberParams) SetTimeout

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

SetTimeout adds the timeout to the get member params

func (*GetMemberParams) WithContext

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

WithContext adds the context to the get member params

func (*GetMemberParams) WithDefaults

func (o *GetMemberParams) WithDefaults() *GetMemberParams

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

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

func (*GetMemberParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get member params

func (*GetMemberParams) WithTimeout

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

WithTimeout adds the timeout to the get member params

func (*GetMemberParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetMemberReader

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

GetMemberReader is a Reader for the GetMember structure.

func (*GetMemberReader) ReadResponse

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