Documentation ¶
Index ¶
- type AddContactCreated
- type AddContactDefault
- type AddContactParams
- func (o *AddContactParams) SetContact(contact *model.Contact)
- func (o *AddContactParams) SetContext(ctx context.Context)
- func (o *AddContactParams) SetHTTPClient(client *http.Client)
- func (o *AddContactParams) SetTimeout(timeout time.Duration)
- func (o *AddContactParams) WithContact(contact *model.Contact) *AddContactParams
- func (o *AddContactParams) WithContext(ctx context.Context) *AddContactParams
- func (o *AddContactParams) WithHTTPClient(client *http.Client) *AddContactParams
- func (o *AddContactParams) WithTimeout(timeout time.Duration) *AddContactParams
- func (o *AddContactParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type AddContactReader
- type Client
- func (a *Client) AddContact(params *AddContactParams, authInfo runtime.ClientAuthInfoWriter) (*AddContactCreated, error)
- func (a *Client) ListContacts(params *ListContactsParams, authInfo runtime.ClientAuthInfoWriter) (*ListContactsOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientService
- type ListContactsDefault
- type ListContactsOK
- type ListContactsParams
- func (o *ListContactsParams) SetContext(ctx context.Context)
- func (o *ListContactsParams) SetHTTPClient(client *http.Client)
- func (o *ListContactsParams) SetTimeout(timeout time.Duration)
- func (o *ListContactsParams) WithContext(ctx context.Context) *ListContactsParams
- func (o *ListContactsParams) WithHTTPClient(client *http.Client) *ListContactsParams
- func (o *ListContactsParams) WithTimeout(timeout time.Duration) *ListContactsParams
- func (o *ListContactsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListContactsReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddContactCreated ¶
AddContactCreated handles this case with default header values.
Contact added.
func NewAddContactCreated ¶
func NewAddContactCreated() *AddContactCreated
NewAddContactCreated creates a AddContactCreated with default headers values
func (*AddContactCreated) Error ¶
func (o *AddContactCreated) Error() string
func (*AddContactCreated) GetPayload ¶
func (o *AddContactCreated) GetPayload() *model.Contact
type AddContactDefault ¶
AddContactDefault handles this case with default header values.
- 409.1000: contact already exists
func NewAddContactDefault ¶
func NewAddContactDefault(code int) *AddContactDefault
NewAddContactDefault creates a AddContactDefault with default headers values
func (*AddContactDefault) Code ¶
func (o *AddContactDefault) Code() int
Code gets the status code for the add contact default response
func (*AddContactDefault) Error ¶
func (o *AddContactDefault) Error() string
func (*AddContactDefault) GetPayload ¶
func (o *AddContactDefault) GetPayload() *model.Error
type AddContactParams ¶
type AddContactParams struct { /*Contact*/ Contact *model.Contact Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
AddContactParams contains all the parameters to send to the API endpoint for the add contact operation typically these are written to a http.Request
func NewAddContactParams ¶
func NewAddContactParams() *AddContactParams
NewAddContactParams creates a new AddContactParams object with the default values initialized.
func NewAddContactParamsWithContext ¶
func NewAddContactParamsWithContext(ctx context.Context) *AddContactParams
NewAddContactParamsWithContext creates a new AddContactParams object with the default values initialized, and the ability to set a context for a request
func NewAddContactParamsWithHTTPClient ¶
func NewAddContactParamsWithHTTPClient(client *http.Client) *AddContactParams
NewAddContactParamsWithHTTPClient creates a new AddContactParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewAddContactParamsWithTimeout ¶
func NewAddContactParamsWithTimeout(timeout time.Duration) *AddContactParams
NewAddContactParamsWithTimeout creates a new AddContactParams object with the default values initialized, and the ability to set a timeout on a request
func (*AddContactParams) SetContact ¶
func (o *AddContactParams) SetContact(contact *model.Contact)
SetContact adds the contact to the add contact params
func (*AddContactParams) SetContext ¶
func (o *AddContactParams) SetContext(ctx context.Context)
SetContext adds the context to the add contact params
func (*AddContactParams) SetHTTPClient ¶
func (o *AddContactParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the add contact params
func (*AddContactParams) SetTimeout ¶
func (o *AddContactParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the add contact params
func (*AddContactParams) WithContact ¶
func (o *AddContactParams) WithContact(contact *model.Contact) *AddContactParams
WithContact adds the contact to the add contact params
func (*AddContactParams) WithContext ¶
func (o *AddContactParams) WithContext(ctx context.Context) *AddContactParams
WithContext adds the context to the add contact params
func (*AddContactParams) WithHTTPClient ¶
func (o *AddContactParams) WithHTTPClient(client *http.Client) *AddContactParams
WithHTTPClient adds the HTTPClient to the add contact params
func (*AddContactParams) WithTimeout ¶
func (o *AddContactParams) WithTimeout(timeout time.Duration) *AddContactParams
WithTimeout adds the timeout to the add contact params
func (*AddContactParams) WriteToRequest ¶
func (o *AddContactParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type AddContactReader ¶
type AddContactReader struct {
// contains filtered or unexported fields
}
AddContactReader is a Reader for the AddContact structure.
func (*AddContactReader) ReadResponse ¶
func (o *AddContactReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for op API
func (*Client) AddContact ¶
func (a *Client) AddContact(params *AddContactParams, authInfo runtime.ClientAuthInfoWriter) (*AddContactCreated, error)
AddContact Add new contact.
func (*Client) ListContacts ¶
func (a *Client) ListContacts(params *ListContactsParams, authInfo runtime.ClientAuthInfoWriter) (*ListContactsOK, error)
ListContacts Return all contacts ordered by ID.
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientService ¶
type ClientService interface { AddContact(params *AddContactParams, authInfo runtime.ClientAuthInfoWriter) (*AddContactCreated, error) ListContacts(params *ListContactsParams, authInfo runtime.ClientAuthInfoWriter) (*ListContactsOK, 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 op API client.
type ListContactsDefault ¶
ListContactsDefault handles this case with default header values.
Generic error response.
func NewListContactsDefault ¶
func NewListContactsDefault(code int) *ListContactsDefault
NewListContactsDefault creates a ListContactsDefault with default headers values
func (*ListContactsDefault) Code ¶
func (o *ListContactsDefault) Code() int
Code gets the status code for the list contacts default response
func (*ListContactsDefault) Error ¶
func (o *ListContactsDefault) Error() string
func (*ListContactsDefault) GetPayload ¶
func (o *ListContactsDefault) GetPayload() *model.Error
type ListContactsOK ¶
ListContactsOK handles this case with default header values.
OK
func NewListContactsOK ¶
func NewListContactsOK() *ListContactsOK
NewListContactsOK creates a ListContactsOK with default headers values
func (*ListContactsOK) Error ¶
func (o *ListContactsOK) Error() string
func (*ListContactsOK) GetPayload ¶
func (o *ListContactsOK) GetPayload() []*model.Contact
type ListContactsParams ¶
type ListContactsParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ListContactsParams contains all the parameters to send to the API endpoint for the list contacts operation typically these are written to a http.Request
func NewListContactsParams ¶
func NewListContactsParams() *ListContactsParams
NewListContactsParams creates a new ListContactsParams object with the default values initialized.
func NewListContactsParamsWithContext ¶
func NewListContactsParamsWithContext(ctx context.Context) *ListContactsParams
NewListContactsParamsWithContext creates a new ListContactsParams object with the default values initialized, and the ability to set a context for a request
func NewListContactsParamsWithHTTPClient ¶
func NewListContactsParamsWithHTTPClient(client *http.Client) *ListContactsParams
NewListContactsParamsWithHTTPClient creates a new ListContactsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewListContactsParamsWithTimeout ¶
func NewListContactsParamsWithTimeout(timeout time.Duration) *ListContactsParams
NewListContactsParamsWithTimeout creates a new ListContactsParams object with the default values initialized, and the ability to set a timeout on a request
func (*ListContactsParams) SetContext ¶
func (o *ListContactsParams) SetContext(ctx context.Context)
SetContext adds the context to the list contacts params
func (*ListContactsParams) SetHTTPClient ¶
func (o *ListContactsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the list contacts params
func (*ListContactsParams) SetTimeout ¶
func (o *ListContactsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the list contacts params
func (*ListContactsParams) WithContext ¶
func (o *ListContactsParams) WithContext(ctx context.Context) *ListContactsParams
WithContext adds the context to the list contacts params
func (*ListContactsParams) WithHTTPClient ¶
func (o *ListContactsParams) WithHTTPClient(client *http.Client) *ListContactsParams
WithHTTPClient adds the HTTPClient to the list contacts params
func (*ListContactsParams) WithTimeout ¶
func (o *ListContactsParams) WithTimeout(timeout time.Duration) *ListContactsParams
WithTimeout adds the timeout to the list contacts params
func (*ListContactsParams) WriteToRequest ¶
func (o *ListContactsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ListContactsReader ¶
type ListContactsReader struct {
// contains filtered or unexported fields
}
ListContactsReader is a Reader for the ListContacts structure.
func (*ListContactsReader) ReadResponse ¶
func (o *ListContactsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.