Documentation ¶
Index ¶
- func WithContentTypeApplicationJSON(r *runtime.ClientOperation)
- func WithContentTypeMultipartFormData(r *runtime.ClientOperation)
- type Client
- func (a *Client) MarkersGet(params *MarkersGetParams, authInfo runtime.ClientAuthInfoWriter, ...) (*MarkersGetOK, error)
- func (a *Client) MarkersPost(params *MarkersPostParams, authInfo runtime.ClientAuthInfoWriter, ...) (*MarkersPostOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type MarkersGetBadRequest
- func (o *MarkersGetBadRequest) Code() int
- func (o *MarkersGetBadRequest) Error() string
- func (o *MarkersGetBadRequest) IsClientError() bool
- func (o *MarkersGetBadRequest) IsCode(code int) bool
- func (o *MarkersGetBadRequest) IsRedirect() bool
- func (o *MarkersGetBadRequest) IsServerError() bool
- func (o *MarkersGetBadRequest) IsSuccess() bool
- func (o *MarkersGetBadRequest) String() string
- type MarkersGetInternalServerError
- func (o *MarkersGetInternalServerError) Code() int
- func (o *MarkersGetInternalServerError) Error() string
- func (o *MarkersGetInternalServerError) IsClientError() bool
- func (o *MarkersGetInternalServerError) IsCode(code int) bool
- func (o *MarkersGetInternalServerError) IsRedirect() bool
- func (o *MarkersGetInternalServerError) IsServerError() bool
- func (o *MarkersGetInternalServerError) IsSuccess() bool
- func (o *MarkersGetInternalServerError) String() string
- type MarkersGetOK
- func (o *MarkersGetOK) Code() int
- func (o *MarkersGetOK) Error() string
- func (o *MarkersGetOK) GetPayload() *models.Marker
- func (o *MarkersGetOK) IsClientError() bool
- func (o *MarkersGetOK) IsCode(code int) bool
- func (o *MarkersGetOK) IsRedirect() bool
- func (o *MarkersGetOK) IsServerError() bool
- func (o *MarkersGetOK) IsSuccess() bool
- func (o *MarkersGetOK) String() string
- type MarkersGetParams
- func (o *MarkersGetParams) SetContext(ctx context.Context)
- func (o *MarkersGetParams) SetDefaults()
- func (o *MarkersGetParams) SetHTTPClient(client *http.Client)
- func (o *MarkersGetParams) SetTimeline(timeline []string)
- func (o *MarkersGetParams) SetTimeout(timeout time.Duration)
- func (o *MarkersGetParams) WithContext(ctx context.Context) *MarkersGetParams
- func (o *MarkersGetParams) WithDefaults() *MarkersGetParams
- func (o *MarkersGetParams) WithHTTPClient(client *http.Client) *MarkersGetParams
- func (o *MarkersGetParams) WithTimeline(timeline []string) *MarkersGetParams
- func (o *MarkersGetParams) WithTimeout(timeout time.Duration) *MarkersGetParams
- func (o *MarkersGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type MarkersGetReader
- type MarkersGetUnauthorized
- func (o *MarkersGetUnauthorized) Code() int
- func (o *MarkersGetUnauthorized) Error() string
- func (o *MarkersGetUnauthorized) IsClientError() bool
- func (o *MarkersGetUnauthorized) IsCode(code int) bool
- func (o *MarkersGetUnauthorized) IsRedirect() bool
- func (o *MarkersGetUnauthorized) IsServerError() bool
- func (o *MarkersGetUnauthorized) IsSuccess() bool
- func (o *MarkersGetUnauthorized) String() string
- type MarkersPostBadRequest
- func (o *MarkersPostBadRequest) Code() int
- func (o *MarkersPostBadRequest) Error() string
- func (o *MarkersPostBadRequest) IsClientError() bool
- func (o *MarkersPostBadRequest) IsCode(code int) bool
- func (o *MarkersPostBadRequest) IsRedirect() bool
- func (o *MarkersPostBadRequest) IsServerError() bool
- func (o *MarkersPostBadRequest) IsSuccess() bool
- func (o *MarkersPostBadRequest) String() string
- type MarkersPostConflict
- func (o *MarkersPostConflict) Code() int
- func (o *MarkersPostConflict) Error() string
- func (o *MarkersPostConflict) IsClientError() bool
- func (o *MarkersPostConflict) IsCode(code int) bool
- func (o *MarkersPostConflict) IsRedirect() bool
- func (o *MarkersPostConflict) IsServerError() bool
- func (o *MarkersPostConflict) IsSuccess() bool
- func (o *MarkersPostConflict) String() string
- type MarkersPostInternalServerError
- func (o *MarkersPostInternalServerError) Code() int
- func (o *MarkersPostInternalServerError) Error() string
- func (o *MarkersPostInternalServerError) IsClientError() bool
- func (o *MarkersPostInternalServerError) IsCode(code int) bool
- func (o *MarkersPostInternalServerError) IsRedirect() bool
- func (o *MarkersPostInternalServerError) IsServerError() bool
- func (o *MarkersPostInternalServerError) IsSuccess() bool
- func (o *MarkersPostInternalServerError) String() string
- type MarkersPostOK
- func (o *MarkersPostOK) Code() int
- func (o *MarkersPostOK) Error() string
- func (o *MarkersPostOK) GetPayload() *models.Marker
- func (o *MarkersPostOK) IsClientError() bool
- func (o *MarkersPostOK) IsCode(code int) bool
- func (o *MarkersPostOK) IsRedirect() bool
- func (o *MarkersPostOK) IsServerError() bool
- func (o *MarkersPostOK) IsSuccess() bool
- func (o *MarkersPostOK) String() string
- type MarkersPostParams
- func (o *MarkersPostParams) SetContext(ctx context.Context)
- func (o *MarkersPostParams) SetDefaults()
- func (o *MarkersPostParams) SetHTTPClient(client *http.Client)
- func (o *MarkersPostParams) SetHomeLastReadID(homeLastReadID *string)
- func (o *MarkersPostParams) SetNotificationsLastReadID(notificationsLastReadID *string)
- func (o *MarkersPostParams) SetTimeout(timeout time.Duration)
- func (o *MarkersPostParams) WithContext(ctx context.Context) *MarkersPostParams
- func (o *MarkersPostParams) WithDefaults() *MarkersPostParams
- func (o *MarkersPostParams) WithHTTPClient(client *http.Client) *MarkersPostParams
- func (o *MarkersPostParams) WithHomeLastReadID(homeLastReadID *string) *MarkersPostParams
- func (o *MarkersPostParams) WithNotificationsLastReadID(notificationsLastReadID *string) *MarkersPostParams
- func (o *MarkersPostParams) WithTimeout(timeout time.Duration) *MarkersPostParams
- func (o *MarkersPostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type MarkersPostReader
- type MarkersPostUnauthorized
- func (o *MarkersPostUnauthorized) Code() int
- func (o *MarkersPostUnauthorized) Error() string
- func (o *MarkersPostUnauthorized) IsClientError() bool
- func (o *MarkersPostUnauthorized) IsCode(code int) bool
- func (o *MarkersPostUnauthorized) IsRedirect() bool
- func (o *MarkersPostUnauthorized) IsServerError() bool
- func (o *MarkersPostUnauthorized) IsSuccess() bool
- func (o *MarkersPostUnauthorized) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithContentTypeApplicationJSON ¶
func WithContentTypeApplicationJSON(r *runtime.ClientOperation)
WithContentTypeApplicationJSON sets the Content-Type header to "application/json".
func WithContentTypeMultipartFormData ¶
func WithContentTypeMultipartFormData(r *runtime.ClientOperation)
WithContentTypeMultipartFormData sets the Content-Type header to "multipart/form-data".
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for markers API
func (*Client) MarkersGet ¶
func (a *Client) MarkersGet(params *MarkersGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*MarkersGetOK, error)
MarkersGet Get timeline markers by name
func (*Client) MarkersPost ¶
func (a *Client) MarkersPost(params *MarkersPostParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*MarkersPostOK, error)
MarkersPost Update timeline markers by name
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 may be used to customize the behavior of Client methods.
func WithContentType ¶
func WithContentType(mime string) ClientOption
WithContentType allows the client to force the Content-Type header to negotiate a specific Consumer from the server.
You may use this option to set arbitrary extensions to your MIME media type.
type ClientService ¶
type ClientService interface { MarkersGet(params *MarkersGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*MarkersGetOK, error) MarkersPost(params *MarkersPostParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*MarkersPostOK, 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 markers API client.
func NewClientWithBasicAuth ¶
func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService
New creates a new markers API client with basic auth credentials. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - user: user for basic authentication header. - password: password for basic authentication header.
func NewClientWithBearerToken ¶
func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) ClientService
New creates a new markers API client with a bearer token for authentication. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - bearerToken: bearer token for Bearer authentication header.
type MarkersGetBadRequest ¶
type MarkersGetBadRequest struct { }
MarkersGetBadRequest describes a response with status code 400, with default header values.
bad request
func NewMarkersGetBadRequest ¶
func NewMarkersGetBadRequest() *MarkersGetBadRequest
NewMarkersGetBadRequest creates a MarkersGetBadRequest with default headers values
func (*MarkersGetBadRequest) Code ¶
func (o *MarkersGetBadRequest) Code() int
Code gets the status code for the markers get bad request response
func (*MarkersGetBadRequest) Error ¶
func (o *MarkersGetBadRequest) Error() string
func (*MarkersGetBadRequest) IsClientError ¶
func (o *MarkersGetBadRequest) IsClientError() bool
IsClientError returns true when this markers get bad request response has a 4xx status code
func (*MarkersGetBadRequest) IsCode ¶
func (o *MarkersGetBadRequest) IsCode(code int) bool
IsCode returns true when this markers get bad request response a status code equal to that given
func (*MarkersGetBadRequest) IsRedirect ¶
func (o *MarkersGetBadRequest) IsRedirect() bool
IsRedirect returns true when this markers get bad request response has a 3xx status code
func (*MarkersGetBadRequest) IsServerError ¶
func (o *MarkersGetBadRequest) IsServerError() bool
IsServerError returns true when this markers get bad request response has a 5xx status code
func (*MarkersGetBadRequest) IsSuccess ¶
func (o *MarkersGetBadRequest) IsSuccess() bool
IsSuccess returns true when this markers get bad request response has a 2xx status code
func (*MarkersGetBadRequest) String ¶
func (o *MarkersGetBadRequest) String() string
type MarkersGetInternalServerError ¶
type MarkersGetInternalServerError struct { }
MarkersGetInternalServerError describes a response with status code 500, with default header values.
internal server error
func NewMarkersGetInternalServerError ¶
func NewMarkersGetInternalServerError() *MarkersGetInternalServerError
NewMarkersGetInternalServerError creates a MarkersGetInternalServerError with default headers values
func (*MarkersGetInternalServerError) Code ¶
func (o *MarkersGetInternalServerError) Code() int
Code gets the status code for the markers get internal server error response
func (*MarkersGetInternalServerError) Error ¶
func (o *MarkersGetInternalServerError) Error() string
func (*MarkersGetInternalServerError) IsClientError ¶
func (o *MarkersGetInternalServerError) IsClientError() bool
IsClientError returns true when this markers get internal server error response has a 4xx status code
func (*MarkersGetInternalServerError) IsCode ¶
func (o *MarkersGetInternalServerError) IsCode(code int) bool
IsCode returns true when this markers get internal server error response a status code equal to that given
func (*MarkersGetInternalServerError) IsRedirect ¶
func (o *MarkersGetInternalServerError) IsRedirect() bool
IsRedirect returns true when this markers get internal server error response has a 3xx status code
func (*MarkersGetInternalServerError) IsServerError ¶
func (o *MarkersGetInternalServerError) IsServerError() bool
IsServerError returns true when this markers get internal server error response has a 5xx status code
func (*MarkersGetInternalServerError) IsSuccess ¶
func (o *MarkersGetInternalServerError) IsSuccess() bool
IsSuccess returns true when this markers get internal server error response has a 2xx status code
func (*MarkersGetInternalServerError) String ¶
func (o *MarkersGetInternalServerError) String() string
type MarkersGetOK ¶
MarkersGetOK describes a response with status code 200, with default header values.
Requested markers
func NewMarkersGetOK ¶
func NewMarkersGetOK() *MarkersGetOK
NewMarkersGetOK creates a MarkersGetOK with default headers values
func (*MarkersGetOK) Code ¶
func (o *MarkersGetOK) Code() int
Code gets the status code for the markers get o k response
func (*MarkersGetOK) Error ¶
func (o *MarkersGetOK) Error() string
func (*MarkersGetOK) GetPayload ¶
func (o *MarkersGetOK) GetPayload() *models.Marker
func (*MarkersGetOK) IsClientError ¶
func (o *MarkersGetOK) IsClientError() bool
IsClientError returns true when this markers get o k response has a 4xx status code
func (*MarkersGetOK) IsCode ¶
func (o *MarkersGetOK) IsCode(code int) bool
IsCode returns true when this markers get o k response a status code equal to that given
func (*MarkersGetOK) IsRedirect ¶
func (o *MarkersGetOK) IsRedirect() bool
IsRedirect returns true when this markers get o k response has a 3xx status code
func (*MarkersGetOK) IsServerError ¶
func (o *MarkersGetOK) IsServerError() bool
IsServerError returns true when this markers get o k response has a 5xx status code
func (*MarkersGetOK) IsSuccess ¶
func (o *MarkersGetOK) IsSuccess() bool
IsSuccess returns true when this markers get o k response has a 2xx status code
func (*MarkersGetOK) String ¶
func (o *MarkersGetOK) String() string
type MarkersGetParams ¶
type MarkersGetParams struct { /* Timeline. Timelines to retrieve. */ Timeline []string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
MarkersGetParams contains all the parameters to send to the API endpoint
for the markers get operation. Typically these are written to a http.Request.
func NewMarkersGetParams ¶
func NewMarkersGetParams() *MarkersGetParams
NewMarkersGetParams creates a new MarkersGetParams 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 NewMarkersGetParamsWithContext ¶
func NewMarkersGetParamsWithContext(ctx context.Context) *MarkersGetParams
NewMarkersGetParamsWithContext creates a new MarkersGetParams object with the ability to set a context for a request.
func NewMarkersGetParamsWithHTTPClient ¶
func NewMarkersGetParamsWithHTTPClient(client *http.Client) *MarkersGetParams
NewMarkersGetParamsWithHTTPClient creates a new MarkersGetParams object with the ability to set a custom HTTPClient for a request.
func NewMarkersGetParamsWithTimeout ¶
func NewMarkersGetParamsWithTimeout(timeout time.Duration) *MarkersGetParams
NewMarkersGetParamsWithTimeout creates a new MarkersGetParams object with the ability to set a timeout on a request.
func (*MarkersGetParams) SetContext ¶
func (o *MarkersGetParams) SetContext(ctx context.Context)
SetContext adds the context to the markers get params
func (*MarkersGetParams) SetDefaults ¶
func (o *MarkersGetParams) SetDefaults()
SetDefaults hydrates default values in the markers get params (not the query body).
All values with no default are reset to their zero value.
func (*MarkersGetParams) SetHTTPClient ¶
func (o *MarkersGetParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the markers get params
func (*MarkersGetParams) SetTimeline ¶
func (o *MarkersGetParams) SetTimeline(timeline []string)
SetTimeline adds the timeline to the markers get params
func (*MarkersGetParams) SetTimeout ¶
func (o *MarkersGetParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the markers get params
func (*MarkersGetParams) WithContext ¶
func (o *MarkersGetParams) WithContext(ctx context.Context) *MarkersGetParams
WithContext adds the context to the markers get params
func (*MarkersGetParams) WithDefaults ¶
func (o *MarkersGetParams) WithDefaults() *MarkersGetParams
WithDefaults hydrates default values in the markers get params (not the query body).
All values with no default are reset to their zero value.
func (*MarkersGetParams) WithHTTPClient ¶
func (o *MarkersGetParams) WithHTTPClient(client *http.Client) *MarkersGetParams
WithHTTPClient adds the HTTPClient to the markers get params
func (*MarkersGetParams) WithTimeline ¶
func (o *MarkersGetParams) WithTimeline(timeline []string) *MarkersGetParams
WithTimeline adds the timeline to the markers get params
func (*MarkersGetParams) WithTimeout ¶
func (o *MarkersGetParams) WithTimeout(timeout time.Duration) *MarkersGetParams
WithTimeout adds the timeout to the markers get params
func (*MarkersGetParams) WriteToRequest ¶
func (o *MarkersGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type MarkersGetReader ¶
type MarkersGetReader struct {
// contains filtered or unexported fields
}
MarkersGetReader is a Reader for the MarkersGet structure.
func (*MarkersGetReader) ReadResponse ¶
func (o *MarkersGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type MarkersGetUnauthorized ¶
type MarkersGetUnauthorized struct { }
MarkersGetUnauthorized describes a response with status code 401, with default header values.
unauthorized
func NewMarkersGetUnauthorized ¶
func NewMarkersGetUnauthorized() *MarkersGetUnauthorized
NewMarkersGetUnauthorized creates a MarkersGetUnauthorized with default headers values
func (*MarkersGetUnauthorized) Code ¶
func (o *MarkersGetUnauthorized) Code() int
Code gets the status code for the markers get unauthorized response
func (*MarkersGetUnauthorized) Error ¶
func (o *MarkersGetUnauthorized) Error() string
func (*MarkersGetUnauthorized) IsClientError ¶
func (o *MarkersGetUnauthorized) IsClientError() bool
IsClientError returns true when this markers get unauthorized response has a 4xx status code
func (*MarkersGetUnauthorized) IsCode ¶
func (o *MarkersGetUnauthorized) IsCode(code int) bool
IsCode returns true when this markers get unauthorized response a status code equal to that given
func (*MarkersGetUnauthorized) IsRedirect ¶
func (o *MarkersGetUnauthorized) IsRedirect() bool
IsRedirect returns true when this markers get unauthorized response has a 3xx status code
func (*MarkersGetUnauthorized) IsServerError ¶
func (o *MarkersGetUnauthorized) IsServerError() bool
IsServerError returns true when this markers get unauthorized response has a 5xx status code
func (*MarkersGetUnauthorized) IsSuccess ¶
func (o *MarkersGetUnauthorized) IsSuccess() bool
IsSuccess returns true when this markers get unauthorized response has a 2xx status code
func (*MarkersGetUnauthorized) String ¶
func (o *MarkersGetUnauthorized) String() string
type MarkersPostBadRequest ¶
type MarkersPostBadRequest struct { }
MarkersPostBadRequest describes a response with status code 400, with default header values.
bad request
func NewMarkersPostBadRequest ¶
func NewMarkersPostBadRequest() *MarkersPostBadRequest
NewMarkersPostBadRequest creates a MarkersPostBadRequest with default headers values
func (*MarkersPostBadRequest) Code ¶
func (o *MarkersPostBadRequest) Code() int
Code gets the status code for the markers post bad request response
func (*MarkersPostBadRequest) Error ¶
func (o *MarkersPostBadRequest) Error() string
func (*MarkersPostBadRequest) IsClientError ¶
func (o *MarkersPostBadRequest) IsClientError() bool
IsClientError returns true when this markers post bad request response has a 4xx status code
func (*MarkersPostBadRequest) IsCode ¶
func (o *MarkersPostBadRequest) IsCode(code int) bool
IsCode returns true when this markers post bad request response a status code equal to that given
func (*MarkersPostBadRequest) IsRedirect ¶
func (o *MarkersPostBadRequest) IsRedirect() bool
IsRedirect returns true when this markers post bad request response has a 3xx status code
func (*MarkersPostBadRequest) IsServerError ¶
func (o *MarkersPostBadRequest) IsServerError() bool
IsServerError returns true when this markers post bad request response has a 5xx status code
func (*MarkersPostBadRequest) IsSuccess ¶
func (o *MarkersPostBadRequest) IsSuccess() bool
IsSuccess returns true when this markers post bad request response has a 2xx status code
func (*MarkersPostBadRequest) String ¶
func (o *MarkersPostBadRequest) String() string
type MarkersPostConflict ¶
type MarkersPostConflict struct { }
MarkersPostConflict describes a response with status code 409, with default header values.
conflict (when two clients try to update the same timeline at the same time)
func NewMarkersPostConflict ¶
func NewMarkersPostConflict() *MarkersPostConflict
NewMarkersPostConflict creates a MarkersPostConflict with default headers values
func (*MarkersPostConflict) Code ¶
func (o *MarkersPostConflict) Code() int
Code gets the status code for the markers post conflict response
func (*MarkersPostConflict) Error ¶
func (o *MarkersPostConflict) Error() string
func (*MarkersPostConflict) IsClientError ¶
func (o *MarkersPostConflict) IsClientError() bool
IsClientError returns true when this markers post conflict response has a 4xx status code
func (*MarkersPostConflict) IsCode ¶
func (o *MarkersPostConflict) IsCode(code int) bool
IsCode returns true when this markers post conflict response a status code equal to that given
func (*MarkersPostConflict) IsRedirect ¶
func (o *MarkersPostConflict) IsRedirect() bool
IsRedirect returns true when this markers post conflict response has a 3xx status code
func (*MarkersPostConflict) IsServerError ¶
func (o *MarkersPostConflict) IsServerError() bool
IsServerError returns true when this markers post conflict response has a 5xx status code
func (*MarkersPostConflict) IsSuccess ¶
func (o *MarkersPostConflict) IsSuccess() bool
IsSuccess returns true when this markers post conflict response has a 2xx status code
func (*MarkersPostConflict) String ¶
func (o *MarkersPostConflict) String() string
type MarkersPostInternalServerError ¶
type MarkersPostInternalServerError struct { }
MarkersPostInternalServerError describes a response with status code 500, with default header values.
internal server error
func NewMarkersPostInternalServerError ¶
func NewMarkersPostInternalServerError() *MarkersPostInternalServerError
NewMarkersPostInternalServerError creates a MarkersPostInternalServerError with default headers values
func (*MarkersPostInternalServerError) Code ¶
func (o *MarkersPostInternalServerError) Code() int
Code gets the status code for the markers post internal server error response
func (*MarkersPostInternalServerError) Error ¶
func (o *MarkersPostInternalServerError) Error() string
func (*MarkersPostInternalServerError) IsClientError ¶
func (o *MarkersPostInternalServerError) IsClientError() bool
IsClientError returns true when this markers post internal server error response has a 4xx status code
func (*MarkersPostInternalServerError) IsCode ¶
func (o *MarkersPostInternalServerError) IsCode(code int) bool
IsCode returns true when this markers post internal server error response a status code equal to that given
func (*MarkersPostInternalServerError) IsRedirect ¶
func (o *MarkersPostInternalServerError) IsRedirect() bool
IsRedirect returns true when this markers post internal server error response has a 3xx status code
func (*MarkersPostInternalServerError) IsServerError ¶
func (o *MarkersPostInternalServerError) IsServerError() bool
IsServerError returns true when this markers post internal server error response has a 5xx status code
func (*MarkersPostInternalServerError) IsSuccess ¶
func (o *MarkersPostInternalServerError) IsSuccess() bool
IsSuccess returns true when this markers post internal server error response has a 2xx status code
func (*MarkersPostInternalServerError) String ¶
func (o *MarkersPostInternalServerError) String() string
type MarkersPostOK ¶
MarkersPostOK describes a response with status code 200, with default header values.
Requested markers
func NewMarkersPostOK ¶
func NewMarkersPostOK() *MarkersPostOK
NewMarkersPostOK creates a MarkersPostOK with default headers values
func (*MarkersPostOK) Code ¶
func (o *MarkersPostOK) Code() int
Code gets the status code for the markers post o k response
func (*MarkersPostOK) Error ¶
func (o *MarkersPostOK) Error() string
func (*MarkersPostOK) GetPayload ¶
func (o *MarkersPostOK) GetPayload() *models.Marker
func (*MarkersPostOK) IsClientError ¶
func (o *MarkersPostOK) IsClientError() bool
IsClientError returns true when this markers post o k response has a 4xx status code
func (*MarkersPostOK) IsCode ¶
func (o *MarkersPostOK) IsCode(code int) bool
IsCode returns true when this markers post o k response a status code equal to that given
func (*MarkersPostOK) IsRedirect ¶
func (o *MarkersPostOK) IsRedirect() bool
IsRedirect returns true when this markers post o k response has a 3xx status code
func (*MarkersPostOK) IsServerError ¶
func (o *MarkersPostOK) IsServerError() bool
IsServerError returns true when this markers post o k response has a 5xx status code
func (*MarkersPostOK) IsSuccess ¶
func (o *MarkersPostOK) IsSuccess() bool
IsSuccess returns true when this markers post o k response has a 2xx status code
func (*MarkersPostOK) String ¶
func (o *MarkersPostOK) String() string
type MarkersPostParams ¶
type MarkersPostParams struct { /* HomeLastReadID. Last status ID read on the home timeline. */ HomeLastReadID *string /* NotificationsLastReadID. Last notification ID read on the notifications timeline. */ NotificationsLastReadID *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
MarkersPostParams contains all the parameters to send to the API endpoint
for the markers post operation. Typically these are written to a http.Request.
func NewMarkersPostParams ¶
func NewMarkersPostParams() *MarkersPostParams
NewMarkersPostParams creates a new MarkersPostParams 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 NewMarkersPostParamsWithContext ¶
func NewMarkersPostParamsWithContext(ctx context.Context) *MarkersPostParams
NewMarkersPostParamsWithContext creates a new MarkersPostParams object with the ability to set a context for a request.
func NewMarkersPostParamsWithHTTPClient ¶
func NewMarkersPostParamsWithHTTPClient(client *http.Client) *MarkersPostParams
NewMarkersPostParamsWithHTTPClient creates a new MarkersPostParams object with the ability to set a custom HTTPClient for a request.
func NewMarkersPostParamsWithTimeout ¶
func NewMarkersPostParamsWithTimeout(timeout time.Duration) *MarkersPostParams
NewMarkersPostParamsWithTimeout creates a new MarkersPostParams object with the ability to set a timeout on a request.
func (*MarkersPostParams) SetContext ¶
func (o *MarkersPostParams) SetContext(ctx context.Context)
SetContext adds the context to the markers post params
func (*MarkersPostParams) SetDefaults ¶
func (o *MarkersPostParams) SetDefaults()
SetDefaults hydrates default values in the markers post params (not the query body).
All values with no default are reset to their zero value.
func (*MarkersPostParams) SetHTTPClient ¶
func (o *MarkersPostParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the markers post params
func (*MarkersPostParams) SetHomeLastReadID ¶
func (o *MarkersPostParams) SetHomeLastReadID(homeLastReadID *string)
SetHomeLastReadID adds the homeLastReadId to the markers post params
func (*MarkersPostParams) SetNotificationsLastReadID ¶
func (o *MarkersPostParams) SetNotificationsLastReadID(notificationsLastReadID *string)
SetNotificationsLastReadID adds the notificationsLastReadId to the markers post params
func (*MarkersPostParams) SetTimeout ¶
func (o *MarkersPostParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the markers post params
func (*MarkersPostParams) WithContext ¶
func (o *MarkersPostParams) WithContext(ctx context.Context) *MarkersPostParams
WithContext adds the context to the markers post params
func (*MarkersPostParams) WithDefaults ¶
func (o *MarkersPostParams) WithDefaults() *MarkersPostParams
WithDefaults hydrates default values in the markers post params (not the query body).
All values with no default are reset to their zero value.
func (*MarkersPostParams) WithHTTPClient ¶
func (o *MarkersPostParams) WithHTTPClient(client *http.Client) *MarkersPostParams
WithHTTPClient adds the HTTPClient to the markers post params
func (*MarkersPostParams) WithHomeLastReadID ¶
func (o *MarkersPostParams) WithHomeLastReadID(homeLastReadID *string) *MarkersPostParams
WithHomeLastReadID adds the homeLastReadID to the markers post params
func (*MarkersPostParams) WithNotificationsLastReadID ¶
func (o *MarkersPostParams) WithNotificationsLastReadID(notificationsLastReadID *string) *MarkersPostParams
WithNotificationsLastReadID adds the notificationsLastReadID to the markers post params
func (*MarkersPostParams) WithTimeout ¶
func (o *MarkersPostParams) WithTimeout(timeout time.Duration) *MarkersPostParams
WithTimeout adds the timeout to the markers post params
func (*MarkersPostParams) WriteToRequest ¶
func (o *MarkersPostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type MarkersPostReader ¶
type MarkersPostReader struct {
// contains filtered or unexported fields
}
MarkersPostReader is a Reader for the MarkersPost structure.
func (*MarkersPostReader) ReadResponse ¶
func (o *MarkersPostReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type MarkersPostUnauthorized ¶
type MarkersPostUnauthorized struct { }
MarkersPostUnauthorized describes a response with status code 401, with default header values.
unauthorized
func NewMarkersPostUnauthorized ¶
func NewMarkersPostUnauthorized() *MarkersPostUnauthorized
NewMarkersPostUnauthorized creates a MarkersPostUnauthorized with default headers values
func (*MarkersPostUnauthorized) Code ¶
func (o *MarkersPostUnauthorized) Code() int
Code gets the status code for the markers post unauthorized response
func (*MarkersPostUnauthorized) Error ¶
func (o *MarkersPostUnauthorized) Error() string
func (*MarkersPostUnauthorized) IsClientError ¶
func (o *MarkersPostUnauthorized) IsClientError() bool
IsClientError returns true when this markers post unauthorized response has a 4xx status code
func (*MarkersPostUnauthorized) IsCode ¶
func (o *MarkersPostUnauthorized) IsCode(code int) bool
IsCode returns true when this markers post unauthorized response a status code equal to that given
func (*MarkersPostUnauthorized) IsRedirect ¶
func (o *MarkersPostUnauthorized) IsRedirect() bool
IsRedirect returns true when this markers post unauthorized response has a 3xx status code
func (*MarkersPostUnauthorized) IsServerError ¶
func (o *MarkersPostUnauthorized) IsServerError() bool
IsServerError returns true when this markers post unauthorized response has a 5xx status code
func (*MarkersPostUnauthorized) IsSuccess ¶
func (o *MarkersPostUnauthorized) IsSuccess() bool
IsSuccess returns true when this markers post unauthorized response has a 2xx status code
func (*MarkersPostUnauthorized) String ¶
func (o *MarkersPostUnauthorized) String() string