Documentation
¶
Index ¶
- Constants
- type PostFriendsCommonList
- type PostFriendsCommonListHandler
- type PostFriendsCommonListHandlerFunc
- type PostFriendsCommonListNotFound
- func (o *PostFriendsCommonListNotFound) SetPayload(payload *models.ErrorResponse)
- func (o *PostFriendsCommonListNotFound) WithPayload(payload *models.ErrorResponse) *PostFriendsCommonListNotFound
- func (o *PostFriendsCommonListNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type PostFriendsCommonListOK
- type PostFriendsCommonListParams
- type PostFriendsCommonListURL
- func (o *PostFriendsCommonListURL) Build() (*url.URL, error)
- func (o *PostFriendsCommonListURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *PostFriendsCommonListURL) Must(u *url.URL, err error) *url.URL
- func (o *PostFriendsCommonListURL) SetBasePath(bp string)
- func (o *PostFriendsCommonListURL) String() string
- func (o *PostFriendsCommonListURL) StringFull(scheme, host string) string
- func (o *PostFriendsCommonListURL) WithBasePath(bp string) *PostFriendsCommonListURL
- type PostFriendsCommonListUnauthorized
- func (o *PostFriendsCommonListUnauthorized) SetPayload(payload *models.ErrorResponse)
- func (o *PostFriendsCommonListUnauthorized) WithPayload(payload *models.ErrorResponse) *PostFriendsCommonListUnauthorized
- func (o *PostFriendsCommonListUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type PostFriendsConnections
- type PostFriendsConnectionsBadRequest
- func (o *PostFriendsConnectionsBadRequest) SetPayload(payload *models.ErrorResponse)
- func (o *PostFriendsConnectionsBadRequest) WithPayload(payload *models.ErrorResponse) *PostFriendsConnectionsBadRequest
- func (o *PostFriendsConnectionsBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type PostFriendsConnectionsHandler
- type PostFriendsConnectionsHandlerFunc
- type PostFriendsConnectionsList
- type PostFriendsConnectionsListHandler
- type PostFriendsConnectionsListHandlerFunc
- type PostFriendsConnectionsListNotFound
- func (o *PostFriendsConnectionsListNotFound) SetPayload(payload *models.ErrorResponse)
- func (o *PostFriendsConnectionsListNotFound) WithPayload(payload *models.ErrorResponse) *PostFriendsConnectionsListNotFound
- func (o *PostFriendsConnectionsListNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type PostFriendsConnectionsListOK
- func (o *PostFriendsConnectionsListOK) SetPayload(payload *models.FriendsListResponse)
- func (o *PostFriendsConnectionsListOK) WithPayload(payload *models.FriendsListResponse) *PostFriendsConnectionsListOK
- func (o *PostFriendsConnectionsListOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type PostFriendsConnectionsListParams
- type PostFriendsConnectionsListURL
- func (o *PostFriendsConnectionsListURL) Build() (*url.URL, error)
- func (o *PostFriendsConnectionsListURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *PostFriendsConnectionsListURL) Must(u *url.URL, err error) *url.URL
- func (o *PostFriendsConnectionsListURL) SetBasePath(bp string)
- func (o *PostFriendsConnectionsListURL) String() string
- func (o *PostFriendsConnectionsListURL) StringFull(scheme, host string) string
- func (o *PostFriendsConnectionsListURL) WithBasePath(bp string) *PostFriendsConnectionsListURL
- type PostFriendsConnectionsListUnauthorized
- func (o *PostFriendsConnectionsListUnauthorized) SetPayload(payload *models.ErrorResponse)
- func (o *PostFriendsConnectionsListUnauthorized) WithPayload(payload *models.ErrorResponse) *PostFriendsConnectionsListUnauthorized
- func (o *PostFriendsConnectionsListUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type PostFriendsConnectionsNotFound
- func (o *PostFriendsConnectionsNotFound) SetPayload(payload *models.ErrorResponse)
- func (o *PostFriendsConnectionsNotFound) WithPayload(payload *models.ErrorResponse) *PostFriendsConnectionsNotFound
- func (o *PostFriendsConnectionsNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type PostFriendsConnectionsOK
- type PostFriendsConnectionsParams
- type PostFriendsConnectionsURL
- func (o *PostFriendsConnectionsURL) Build() (*url.URL, error)
- func (o *PostFriendsConnectionsURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *PostFriendsConnectionsURL) Must(u *url.URL, err error) *url.URL
- func (o *PostFriendsConnectionsURL) SetBasePath(bp string)
- func (o *PostFriendsConnectionsURL) String() string
- func (o *PostFriendsConnectionsURL) StringFull(scheme, host string) string
- func (o *PostFriendsConnectionsURL) WithBasePath(bp string) *PostFriendsConnectionsURL
- type PostFriendsConnectionsUnauthorized
- func (o *PostFriendsConnectionsUnauthorized) SetPayload(payload *models.ErrorResponse)
- func (o *PostFriendsConnectionsUnauthorized) WithPayload(payload *models.ErrorResponse) *PostFriendsConnectionsUnauthorized
- func (o *PostFriendsConnectionsUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type PostFriendsUpdatesBlock
- type PostFriendsUpdatesBlockHandler
- type PostFriendsUpdatesBlockHandlerFunc
- type PostFriendsUpdatesBlockNotFound
- func (o *PostFriendsUpdatesBlockNotFound) SetPayload(payload *models.ErrorResponse)
- func (o *PostFriendsUpdatesBlockNotFound) WithPayload(payload *models.ErrorResponse) *PostFriendsUpdatesBlockNotFound
- func (o *PostFriendsUpdatesBlockNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type PostFriendsUpdatesBlockOK
- type PostFriendsUpdatesBlockParams
- type PostFriendsUpdatesBlockURL
- func (o *PostFriendsUpdatesBlockURL) Build() (*url.URL, error)
- func (o *PostFriendsUpdatesBlockURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *PostFriendsUpdatesBlockURL) Must(u *url.URL, err error) *url.URL
- func (o *PostFriendsUpdatesBlockURL) SetBasePath(bp string)
- func (o *PostFriendsUpdatesBlockURL) String() string
- func (o *PostFriendsUpdatesBlockURL) StringFull(scheme, host string) string
- func (o *PostFriendsUpdatesBlockURL) WithBasePath(bp string) *PostFriendsUpdatesBlockURL
- type PostFriendsUpdatesBlockUnauthorized
- func (o *PostFriendsUpdatesBlockUnauthorized) SetPayload(payload *models.ErrorResponse)
- func (o *PostFriendsUpdatesBlockUnauthorized) WithPayload(payload *models.ErrorResponse) *PostFriendsUpdatesBlockUnauthorized
- func (o *PostFriendsUpdatesBlockUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type PostFriendsUpdatesList
- type PostFriendsUpdatesListHandler
- type PostFriendsUpdatesListHandlerFunc
- type PostFriendsUpdatesListNotFound
- func (o *PostFriendsUpdatesListNotFound) SetPayload(payload *models.ErrorResponse)
- func (o *PostFriendsUpdatesListNotFound) WithPayload(payload *models.ErrorResponse) *PostFriendsUpdatesListNotFound
- func (o *PostFriendsUpdatesListNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type PostFriendsUpdatesListOK
- func (o *PostFriendsUpdatesListOK) SetPayload(payload *models.ReceiveUpdatesFriendsResponse)
- func (o *PostFriendsUpdatesListOK) WithPayload(payload *models.ReceiveUpdatesFriendsResponse) *PostFriendsUpdatesListOK
- func (o *PostFriendsUpdatesListOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type PostFriendsUpdatesListParams
- type PostFriendsUpdatesListURL
- func (o *PostFriendsUpdatesListURL) Build() (*url.URL, error)
- func (o *PostFriendsUpdatesListURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *PostFriendsUpdatesListURL) Must(u *url.URL, err error) *url.URL
- func (o *PostFriendsUpdatesListURL) SetBasePath(bp string)
- func (o *PostFriendsUpdatesListURL) String() string
- func (o *PostFriendsUpdatesListURL) StringFull(scheme, host string) string
- func (o *PostFriendsUpdatesListURL) WithBasePath(bp string) *PostFriendsUpdatesListURL
- type PostFriendsUpdatesListUnauthorized
- func (o *PostFriendsUpdatesListUnauthorized) SetPayload(payload *models.ErrorResponse)
- func (o *PostFriendsUpdatesListUnauthorized) WithPayload(payload *models.ErrorResponse) *PostFriendsUpdatesListUnauthorized
- func (o *PostFriendsUpdatesListUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type PostFriendsUpdatesSubscribe
- type PostFriendsUpdatesSubscribeHandler
- type PostFriendsUpdatesSubscribeHandlerFunc
- type PostFriendsUpdatesSubscribeNotFound
- func (o *PostFriendsUpdatesSubscribeNotFound) SetPayload(payload *models.ErrorResponse)
- func (o *PostFriendsUpdatesSubscribeNotFound) WithPayload(payload *models.ErrorResponse) *PostFriendsUpdatesSubscribeNotFound
- func (o *PostFriendsUpdatesSubscribeNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type PostFriendsUpdatesSubscribeOK
- func (o *PostFriendsUpdatesSubscribeOK) SetPayload(payload *models.SuccessResponse)
- func (o *PostFriendsUpdatesSubscribeOK) WithPayload(payload *models.SuccessResponse) *PostFriendsUpdatesSubscribeOK
- func (o *PostFriendsUpdatesSubscribeOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type PostFriendsUpdatesSubscribeParams
- type PostFriendsUpdatesSubscribeURL
- func (o *PostFriendsUpdatesSubscribeURL) Build() (*url.URL, error)
- func (o *PostFriendsUpdatesSubscribeURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *PostFriendsUpdatesSubscribeURL) Must(u *url.URL, err error) *url.URL
- func (o *PostFriendsUpdatesSubscribeURL) SetBasePath(bp string)
- func (o *PostFriendsUpdatesSubscribeURL) String() string
- func (o *PostFriendsUpdatesSubscribeURL) StringFull(scheme, host string) string
- func (o *PostFriendsUpdatesSubscribeURL) WithBasePath(bp string) *PostFriendsUpdatesSubscribeURL
- type PostFriendsUpdatesSubscribeUnauthorized
- func (o *PostFriendsUpdatesSubscribeUnauthorized) SetPayload(payload *models.ErrorResponse)
- func (o *PostFriendsUpdatesSubscribeUnauthorized) WithPayload(payload *models.ErrorResponse) *PostFriendsUpdatesSubscribeUnauthorized
- func (o *PostFriendsUpdatesSubscribeUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
Constants ¶
const PostFriendsCommonListNotFoundCode int = 404
PostFriendsCommonListNotFoundCode is the HTTP code returned for type PostFriendsCommonListNotFound
const PostFriendsCommonListOKCode int = 200
PostFriendsCommonListOKCode is the HTTP code returned for type PostFriendsCommonListOK
PostFriendsCommonListUnauthorizedCode is the HTTP code returned for type PostFriendsCommonListUnauthorized
const PostFriendsConnectionsBadRequestCode int = 400
PostFriendsConnectionsBadRequestCode is the HTTP code returned for type PostFriendsConnectionsBadRequest
const PostFriendsConnectionsListNotFoundCode int = 404
PostFriendsConnectionsListNotFoundCode is the HTTP code returned for type PostFriendsConnectionsListNotFound
const PostFriendsConnectionsListOKCode int = 200
PostFriendsConnectionsListOKCode is the HTTP code returned for type PostFriendsConnectionsListOK
PostFriendsConnectionsListUnauthorizedCode is the HTTP code returned for type PostFriendsConnectionsListUnauthorized
const PostFriendsConnectionsNotFoundCode int = 404
PostFriendsConnectionsNotFoundCode is the HTTP code returned for type PostFriendsConnectionsNotFound
const PostFriendsConnectionsOKCode int = 200
PostFriendsConnectionsOKCode is the HTTP code returned for type PostFriendsConnectionsOK
PostFriendsConnectionsUnauthorizedCode is the HTTP code returned for type PostFriendsConnectionsUnauthorized
const PostFriendsUpdatesBlockNotFoundCode int = 404
PostFriendsUpdatesBlockNotFoundCode is the HTTP code returned for type PostFriendsUpdatesBlockNotFound
const PostFriendsUpdatesBlockOKCode int = 200
PostFriendsUpdatesBlockOKCode is the HTTP code returned for type PostFriendsUpdatesBlockOK
PostFriendsUpdatesBlockUnauthorizedCode is the HTTP code returned for type PostFriendsUpdatesBlockUnauthorized
const PostFriendsUpdatesListNotFoundCode int = 404
PostFriendsUpdatesListNotFoundCode is the HTTP code returned for type PostFriendsUpdatesListNotFound
const PostFriendsUpdatesListOKCode int = 200
PostFriendsUpdatesListOKCode is the HTTP code returned for type PostFriendsUpdatesListOK
PostFriendsUpdatesListUnauthorizedCode is the HTTP code returned for type PostFriendsUpdatesListUnauthorized
const PostFriendsUpdatesSubscribeNotFoundCode int = 404
PostFriendsUpdatesSubscribeNotFoundCode is the HTTP code returned for type PostFriendsUpdatesSubscribeNotFound
const PostFriendsUpdatesSubscribeOKCode int = 200
PostFriendsUpdatesSubscribeOKCode is the HTTP code returned for type PostFriendsUpdatesSubscribeOK
PostFriendsUpdatesSubscribeUnauthorizedCode is the HTTP code returned for type PostFriendsUpdatesSubscribeUnauthorized
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PostFriendsCommonList ¶
type PostFriendsCommonList struct { Context *middleware.Context Handler PostFriendsCommonListHandler }
PostFriendsCommonList swagger:route POST /friends/common/list friends postFriendsCommonList
3. Retrieve the common friends list for two given user.
3. As a user, I need an API to retrieve the common friends list between two email addresses.
func NewPostFriendsCommonList ¶
func NewPostFriendsCommonList(ctx *middleware.Context, handler PostFriendsCommonListHandler) *PostFriendsCommonList
NewPostFriendsCommonList creates a new http.Handler for the post friends common list operation
func (*PostFriendsCommonList) ServeHTTP ¶
func (o *PostFriendsCommonList) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type PostFriendsCommonListHandler ¶
type PostFriendsCommonListHandler interface {
Handle(PostFriendsCommonListParams) middleware.Responder
}
PostFriendsCommonListHandler interface for that can handle valid post friends common list params
type PostFriendsCommonListHandlerFunc ¶
type PostFriendsCommonListHandlerFunc func(PostFriendsCommonListParams) middleware.Responder
PostFriendsCommonListHandlerFunc turns a function with the right signature into a post friends common list handler
func (PostFriendsCommonListHandlerFunc) Handle ¶
func (fn PostFriendsCommonListHandlerFunc) Handle(params PostFriendsCommonListParams) middleware.Responder
Handle executing the request and returning a response
type PostFriendsCommonListNotFound ¶
type PostFriendsCommonListNotFound struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
PostFriendsCommonListNotFound Not Found.
swagger:response postFriendsCommonListNotFound
func NewPostFriendsCommonListNotFound ¶
func NewPostFriendsCommonListNotFound() *PostFriendsCommonListNotFound
NewPostFriendsCommonListNotFound creates PostFriendsCommonListNotFound with default headers values
func (*PostFriendsCommonListNotFound) SetPayload ¶
func (o *PostFriendsCommonListNotFound) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the post friends common list not found response
func (*PostFriendsCommonListNotFound) WithPayload ¶
func (o *PostFriendsCommonListNotFound) WithPayload(payload *models.ErrorResponse) *PostFriendsCommonListNotFound
WithPayload adds the payload to the post friends common list not found response
func (*PostFriendsCommonListNotFound) WriteResponse ¶
func (o *PostFriendsCommonListNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PostFriendsCommonListOK ¶
type PostFriendsCommonListOK struct { /* In: Body */ Payload *models.FriendsListResponse `json:"body,omitempty"` }
PostFriendsCommonListOK successful operation
swagger:response postFriendsCommonListOK
func NewPostFriendsCommonListOK ¶
func NewPostFriendsCommonListOK() *PostFriendsCommonListOK
NewPostFriendsCommonListOK creates PostFriendsCommonListOK with default headers values
func (*PostFriendsCommonListOK) SetPayload ¶
func (o *PostFriendsCommonListOK) SetPayload(payload *models.FriendsListResponse)
SetPayload sets the payload to the post friends common list o k response
func (*PostFriendsCommonListOK) WithPayload ¶
func (o *PostFriendsCommonListOK) WithPayload(payload *models.FriendsListResponse) *PostFriendsCommonListOK
WithPayload adds the payload to the post friends common list o k response
func (*PostFriendsCommonListOK) WriteResponse ¶
func (o *PostFriendsCommonListOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PostFriendsCommonListParams ¶
type PostFriendsCommonListParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*The languages the client is able to understand, and which locale variant is preferred. In: header */ AcceptLanguage *string /*Authorization In: header */ Authorization *string /*Body Required: true In: body */ Body *models.Friends }
PostFriendsCommonListParams contains all the bound params for the post friends common list operation typically these are obtained from a http.Request
swagger:parameters postFriendsCommonList
func NewPostFriendsCommonListParams ¶
func NewPostFriendsCommonListParams() PostFriendsCommonListParams
NewPostFriendsCommonListParams creates a new PostFriendsCommonListParams object no default values defined in spec.
func (*PostFriendsCommonListParams) BindRequest ¶
func (o *PostFriendsCommonListParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewPostFriendsCommonListParams() beforehand.
type PostFriendsCommonListURL ¶
type PostFriendsCommonListURL struct {
// contains filtered or unexported fields
}
PostFriendsCommonListURL generates an URL for the post friends common list operation
func (*PostFriendsCommonListURL) Build ¶
func (o *PostFriendsCommonListURL) Build() (*url.URL, error)
Build a url path and query string
func (*PostFriendsCommonListURL) BuildFull ¶
func (o *PostFriendsCommonListURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*PostFriendsCommonListURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*PostFriendsCommonListURL) SetBasePath ¶
func (o *PostFriendsCommonListURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*PostFriendsCommonListURL) String ¶
func (o *PostFriendsCommonListURL) String() string
String returns the string representation of the path with query string
func (*PostFriendsCommonListURL) StringFull ¶
func (o *PostFriendsCommonListURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*PostFriendsCommonListURL) WithBasePath ¶
func (o *PostFriendsCommonListURL) WithBasePath(bp string) *PostFriendsCommonListURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type PostFriendsCommonListUnauthorized ¶
type PostFriendsCommonListUnauthorized struct { models.ErrorResponse `json:"body,omitempty"` }Payload *
PostFriendsCommonListUnauthorized Unauthorized
swagger:response postFriendsCommonListUnauthorized
func NewPostFriendsCommonListUnauthorized ¶
func NewPostFriendsCommonListUnauthorized() *PostFriendsCommonListUnauthorized
NewPostFriendsCommonListUnauthorized creates PostFriendsCommonListUnauthorized with default headers values
func (*PostFriendsCommonListUnauthorized) SetPayload ¶
func (o *PostFriendsCommonListUnauthorized) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the post friends common list unauthorized response
func (*PostFriendsCommonListUnauthorized) WithPayload ¶
func (o *PostFriendsCommonListUnauthorized) WithPayload(payload *models.ErrorResponse) *PostFriendsCommonListUnauthorized
WithPayload adds the payload to the post friends common list unauthorized response
func (*PostFriendsCommonListUnauthorized) WriteResponse ¶
func (o *PostFriendsCommonListUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PostFriendsConnections ¶
type PostFriendsConnections struct { Context *middleware.Context Handler PostFriendsConnectionsHandler }
PostFriendsConnections swagger:route POST /friends/connections friends postFriendsConnections
1. Create connections between two given users.
1. As a user, I need an API to create a friend connection between two email addresses.
func NewPostFriendsConnections ¶
func NewPostFriendsConnections(ctx *middleware.Context, handler PostFriendsConnectionsHandler) *PostFriendsConnections
NewPostFriendsConnections creates a new http.Handler for the post friends connections operation
func (*PostFriendsConnections) ServeHTTP ¶
func (o *PostFriendsConnections) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type PostFriendsConnectionsBadRequest ¶
type PostFriendsConnectionsBadRequest struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
PostFriendsConnectionsBadRequest Bad request
swagger:response postFriendsConnectionsBadRequest
func NewPostFriendsConnectionsBadRequest ¶
func NewPostFriendsConnectionsBadRequest() *PostFriendsConnectionsBadRequest
NewPostFriendsConnectionsBadRequest creates PostFriendsConnectionsBadRequest with default headers values
func (*PostFriendsConnectionsBadRequest) SetPayload ¶
func (o *PostFriendsConnectionsBadRequest) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the post friends connections bad request response
func (*PostFriendsConnectionsBadRequest) WithPayload ¶
func (o *PostFriendsConnectionsBadRequest) WithPayload(payload *models.ErrorResponse) *PostFriendsConnectionsBadRequest
WithPayload adds the payload to the post friends connections bad request response
func (*PostFriendsConnectionsBadRequest) WriteResponse ¶
func (o *PostFriendsConnectionsBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PostFriendsConnectionsHandler ¶
type PostFriendsConnectionsHandler interface {
Handle(PostFriendsConnectionsParams) middleware.Responder
}
PostFriendsConnectionsHandler interface for that can handle valid post friends connections params
type PostFriendsConnectionsHandlerFunc ¶
type PostFriendsConnectionsHandlerFunc func(PostFriendsConnectionsParams) middleware.Responder
PostFriendsConnectionsHandlerFunc turns a function with the right signature into a post friends connections handler
func (PostFriendsConnectionsHandlerFunc) Handle ¶
func (fn PostFriendsConnectionsHandlerFunc) Handle(params PostFriendsConnectionsParams) middleware.Responder
Handle executing the request and returning a response
type PostFriendsConnectionsList ¶
type PostFriendsConnectionsList struct { Context *middleware.Context Handler PostFriendsConnectionsListHandler }
PostFriendsConnectionsList swagger:route POST /friends/connections/list friends postFriendsConnectionsList
2. Retrieve the friends list for a given user.
2. As a user, I need an API to retrieve the friends list for an email address.
func NewPostFriendsConnectionsList ¶
func NewPostFriendsConnectionsList(ctx *middleware.Context, handler PostFriendsConnectionsListHandler) *PostFriendsConnectionsList
NewPostFriendsConnectionsList creates a new http.Handler for the post friends connections list operation
func (*PostFriendsConnectionsList) ServeHTTP ¶
func (o *PostFriendsConnectionsList) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type PostFriendsConnectionsListHandler ¶
type PostFriendsConnectionsListHandler interface {
Handle(PostFriendsConnectionsListParams) middleware.Responder
}
PostFriendsConnectionsListHandler interface for that can handle valid post friends connections list params
type PostFriendsConnectionsListHandlerFunc ¶
type PostFriendsConnectionsListHandlerFunc func(PostFriendsConnectionsListParams) middleware.Responder
PostFriendsConnectionsListHandlerFunc turns a function with the right signature into a post friends connections list handler
func (PostFriendsConnectionsListHandlerFunc) Handle ¶
func (fn PostFriendsConnectionsListHandlerFunc) Handle(params PostFriendsConnectionsListParams) middleware.Responder
Handle executing the request and returning a response
type PostFriendsConnectionsListNotFound ¶
type PostFriendsConnectionsListNotFound struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
PostFriendsConnectionsListNotFound Not Found.
swagger:response postFriendsConnectionsListNotFound
func NewPostFriendsConnectionsListNotFound ¶
func NewPostFriendsConnectionsListNotFound() *PostFriendsConnectionsListNotFound
NewPostFriendsConnectionsListNotFound creates PostFriendsConnectionsListNotFound with default headers values
func (*PostFriendsConnectionsListNotFound) SetPayload ¶
func (o *PostFriendsConnectionsListNotFound) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the post friends connections list not found response
func (*PostFriendsConnectionsListNotFound) WithPayload ¶
func (o *PostFriendsConnectionsListNotFound) WithPayload(payload *models.ErrorResponse) *PostFriendsConnectionsListNotFound
WithPayload adds the payload to the post friends connections list not found response
func (*PostFriendsConnectionsListNotFound) WriteResponse ¶
func (o *PostFriendsConnectionsListNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PostFriendsConnectionsListOK ¶
type PostFriendsConnectionsListOK struct { /* In: Body */ Payload *models.FriendsListResponse `json:"body,omitempty"` }
PostFriendsConnectionsListOK successful operation
swagger:response postFriendsConnectionsListOK
func NewPostFriendsConnectionsListOK ¶
func NewPostFriendsConnectionsListOK() *PostFriendsConnectionsListOK
NewPostFriendsConnectionsListOK creates PostFriendsConnectionsListOK with default headers values
func (*PostFriendsConnectionsListOK) SetPayload ¶
func (o *PostFriendsConnectionsListOK) SetPayload(payload *models.FriendsListResponse)
SetPayload sets the payload to the post friends connections list o k response
func (*PostFriendsConnectionsListOK) WithPayload ¶
func (o *PostFriendsConnectionsListOK) WithPayload(payload *models.FriendsListResponse) *PostFriendsConnectionsListOK
WithPayload adds the payload to the post friends connections list o k response
func (*PostFriendsConnectionsListOK) WriteResponse ¶
func (o *PostFriendsConnectionsListOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PostFriendsConnectionsListParams ¶
type PostFriendsConnectionsListParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*The languages the client is able to understand, and which locale variant is preferred. In: header */ AcceptLanguage *string /*Authorization In: header */ Authorization *string /*Body Required: true In: body */ Body *models.Friend }
PostFriendsConnectionsListParams contains all the bound params for the post friends connections list operation typically these are obtained from a http.Request
swagger:parameters postFriendsConnectionsList
func NewPostFriendsConnectionsListParams ¶
func NewPostFriendsConnectionsListParams() PostFriendsConnectionsListParams
NewPostFriendsConnectionsListParams creates a new PostFriendsConnectionsListParams object no default values defined in spec.
func (*PostFriendsConnectionsListParams) BindRequest ¶
func (o *PostFriendsConnectionsListParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewPostFriendsConnectionsListParams() beforehand.
type PostFriendsConnectionsListURL ¶
type PostFriendsConnectionsListURL struct {
// contains filtered or unexported fields
}
PostFriendsConnectionsListURL generates an URL for the post friends connections list operation
func (*PostFriendsConnectionsListURL) Build ¶
func (o *PostFriendsConnectionsListURL) Build() (*url.URL, error)
Build a url path and query string
func (*PostFriendsConnectionsListURL) BuildFull ¶
func (o *PostFriendsConnectionsListURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*PostFriendsConnectionsListURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*PostFriendsConnectionsListURL) SetBasePath ¶
func (o *PostFriendsConnectionsListURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*PostFriendsConnectionsListURL) String ¶
func (o *PostFriendsConnectionsListURL) String() string
String returns the string representation of the path with query string
func (*PostFriendsConnectionsListURL) StringFull ¶
func (o *PostFriendsConnectionsListURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*PostFriendsConnectionsListURL) WithBasePath ¶
func (o *PostFriendsConnectionsListURL) WithBasePath(bp string) *PostFriendsConnectionsListURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type PostFriendsConnectionsListUnauthorized ¶
type PostFriendsConnectionsListUnauthorized struct { models.ErrorResponse `json:"body,omitempty"` }Payload *
PostFriendsConnectionsListUnauthorized Unauthorized
swagger:response postFriendsConnectionsListUnauthorized
func NewPostFriendsConnectionsListUnauthorized ¶
func NewPostFriendsConnectionsListUnauthorized() *PostFriendsConnectionsListUnauthorized
NewPostFriendsConnectionsListUnauthorized creates PostFriendsConnectionsListUnauthorized with default headers values
func (*PostFriendsConnectionsListUnauthorized) SetPayload ¶
func (o *PostFriendsConnectionsListUnauthorized) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the post friends connections list unauthorized response
func (*PostFriendsConnectionsListUnauthorized) WithPayload ¶
func (o *PostFriendsConnectionsListUnauthorized) WithPayload(payload *models.ErrorResponse) *PostFriendsConnectionsListUnauthorized
WithPayload adds the payload to the post friends connections list unauthorized response
func (*PostFriendsConnectionsListUnauthorized) WriteResponse ¶
func (o *PostFriendsConnectionsListUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PostFriendsConnectionsNotFound ¶
type PostFriendsConnectionsNotFound struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
PostFriendsConnectionsNotFound Not Found.
swagger:response postFriendsConnectionsNotFound
func NewPostFriendsConnectionsNotFound ¶
func NewPostFriendsConnectionsNotFound() *PostFriendsConnectionsNotFound
NewPostFriendsConnectionsNotFound creates PostFriendsConnectionsNotFound with default headers values
func (*PostFriendsConnectionsNotFound) SetPayload ¶
func (o *PostFriendsConnectionsNotFound) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the post friends connections not found response
func (*PostFriendsConnectionsNotFound) WithPayload ¶
func (o *PostFriendsConnectionsNotFound) WithPayload(payload *models.ErrorResponse) *PostFriendsConnectionsNotFound
WithPayload adds the payload to the post friends connections not found response
func (*PostFriendsConnectionsNotFound) WriteResponse ¶
func (o *PostFriendsConnectionsNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PostFriendsConnectionsOK ¶
type PostFriendsConnectionsOK struct { /* In: Body */ Payload *models.SuccessResponse `json:"body,omitempty"` }
PostFriendsConnectionsOK successful operation
swagger:response postFriendsConnectionsOK
func NewPostFriendsConnectionsOK ¶
func NewPostFriendsConnectionsOK() *PostFriendsConnectionsOK
NewPostFriendsConnectionsOK creates PostFriendsConnectionsOK with default headers values
func (*PostFriendsConnectionsOK) SetPayload ¶
func (o *PostFriendsConnectionsOK) SetPayload(payload *models.SuccessResponse)
SetPayload sets the payload to the post friends connections o k response
func (*PostFriendsConnectionsOK) WithPayload ¶
func (o *PostFriendsConnectionsOK) WithPayload(payload *models.SuccessResponse) *PostFriendsConnectionsOK
WithPayload adds the payload to the post friends connections o k response
func (*PostFriendsConnectionsOK) WriteResponse ¶
func (o *PostFriendsConnectionsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PostFriendsConnectionsParams ¶
type PostFriendsConnectionsParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*The languages the client is able to understand, and which locale variant is preferred. In: header */ AcceptLanguage *string /*Authorization In: header */ Authorization *string /*Body Required: true In: body */ Body *models.Friends }
PostFriendsConnectionsParams contains all the bound params for the post friends connections operation typically these are obtained from a http.Request
swagger:parameters postFriendsConnections
func NewPostFriendsConnectionsParams ¶
func NewPostFriendsConnectionsParams() PostFriendsConnectionsParams
NewPostFriendsConnectionsParams creates a new PostFriendsConnectionsParams object no default values defined in spec.
func (*PostFriendsConnectionsParams) BindRequest ¶
func (o *PostFriendsConnectionsParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewPostFriendsConnectionsParams() beforehand.
type PostFriendsConnectionsURL ¶
type PostFriendsConnectionsURL struct {
// contains filtered or unexported fields
}
PostFriendsConnectionsURL generates an URL for the post friends connections operation
func (*PostFriendsConnectionsURL) Build ¶
func (o *PostFriendsConnectionsURL) Build() (*url.URL, error)
Build a url path and query string
func (*PostFriendsConnectionsURL) BuildFull ¶
func (o *PostFriendsConnectionsURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*PostFriendsConnectionsURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*PostFriendsConnectionsURL) SetBasePath ¶
func (o *PostFriendsConnectionsURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*PostFriendsConnectionsURL) String ¶
func (o *PostFriendsConnectionsURL) String() string
String returns the string representation of the path with query string
func (*PostFriendsConnectionsURL) StringFull ¶
func (o *PostFriendsConnectionsURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*PostFriendsConnectionsURL) WithBasePath ¶
func (o *PostFriendsConnectionsURL) WithBasePath(bp string) *PostFriendsConnectionsURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type PostFriendsConnectionsUnauthorized ¶
type PostFriendsConnectionsUnauthorized struct { models.ErrorResponse `json:"body,omitempty"` }Payload *
PostFriendsConnectionsUnauthorized Unauthorized
swagger:response postFriendsConnectionsUnauthorized
func NewPostFriendsConnectionsUnauthorized ¶
func NewPostFriendsConnectionsUnauthorized() *PostFriendsConnectionsUnauthorized
NewPostFriendsConnectionsUnauthorized creates PostFriendsConnectionsUnauthorized with default headers values
func (*PostFriendsConnectionsUnauthorized) SetPayload ¶
func (o *PostFriendsConnectionsUnauthorized) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the post friends connections unauthorized response
func (*PostFriendsConnectionsUnauthorized) WithPayload ¶
func (o *PostFriendsConnectionsUnauthorized) WithPayload(payload *models.ErrorResponse) *PostFriendsConnectionsUnauthorized
WithPayload adds the payload to the post friends connections unauthorized response
func (*PostFriendsConnectionsUnauthorized) WriteResponse ¶
func (o *PostFriendsConnectionsUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PostFriendsUpdatesBlock ¶
type PostFriendsUpdatesBlock struct { Context *middleware.Context Handler PostFriendsUpdatesBlockHandler }
PostFriendsUpdatesBlock swagger:route POST /friends/updates/block friends postFriendsUpdatesBlock
5. Block a given users updates.
5. As a user, I need an API to block updates from an email address.</br> Suppose andy@example.com blocks john@example.com:</br> <ul> <li>if they are connected as friends, then andy will no longer receive notifications from john</li> <li>if they are not connected as friends, then no new friends connection can be added</li> </ul>
func NewPostFriendsUpdatesBlock ¶
func NewPostFriendsUpdatesBlock(ctx *middleware.Context, handler PostFriendsUpdatesBlockHandler) *PostFriendsUpdatesBlock
NewPostFriendsUpdatesBlock creates a new http.Handler for the post friends updates block operation
func (*PostFriendsUpdatesBlock) ServeHTTP ¶
func (o *PostFriendsUpdatesBlock) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type PostFriendsUpdatesBlockHandler ¶
type PostFriendsUpdatesBlockHandler interface {
Handle(PostFriendsUpdatesBlockParams) middleware.Responder
}
PostFriendsUpdatesBlockHandler interface for that can handle valid post friends updates block params
type PostFriendsUpdatesBlockHandlerFunc ¶
type PostFriendsUpdatesBlockHandlerFunc func(PostFriendsUpdatesBlockParams) middleware.Responder
PostFriendsUpdatesBlockHandlerFunc turns a function with the right signature into a post friends updates block handler
func (PostFriendsUpdatesBlockHandlerFunc) Handle ¶
func (fn PostFriendsUpdatesBlockHandlerFunc) Handle(params PostFriendsUpdatesBlockParams) middleware.Responder
Handle executing the request and returning a response
type PostFriendsUpdatesBlockNotFound ¶
type PostFriendsUpdatesBlockNotFound struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
PostFriendsUpdatesBlockNotFound Not Found.
swagger:response postFriendsUpdatesBlockNotFound
func NewPostFriendsUpdatesBlockNotFound ¶
func NewPostFriendsUpdatesBlockNotFound() *PostFriendsUpdatesBlockNotFound
NewPostFriendsUpdatesBlockNotFound creates PostFriendsUpdatesBlockNotFound with default headers values
func (*PostFriendsUpdatesBlockNotFound) SetPayload ¶
func (o *PostFriendsUpdatesBlockNotFound) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the post friends updates block not found response
func (*PostFriendsUpdatesBlockNotFound) WithPayload ¶
func (o *PostFriendsUpdatesBlockNotFound) WithPayload(payload *models.ErrorResponse) *PostFriendsUpdatesBlockNotFound
WithPayload adds the payload to the post friends updates block not found response
func (*PostFriendsUpdatesBlockNotFound) WriteResponse ¶
func (o *PostFriendsUpdatesBlockNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PostFriendsUpdatesBlockOK ¶
type PostFriendsUpdatesBlockOK struct { /* In: Body */ Payload *models.SuccessResponse `json:"body,omitempty"` }
PostFriendsUpdatesBlockOK successful operation
swagger:response postFriendsUpdatesBlockOK
func NewPostFriendsUpdatesBlockOK ¶
func NewPostFriendsUpdatesBlockOK() *PostFriendsUpdatesBlockOK
NewPostFriendsUpdatesBlockOK creates PostFriendsUpdatesBlockOK with default headers values
func (*PostFriendsUpdatesBlockOK) SetPayload ¶
func (o *PostFriendsUpdatesBlockOK) SetPayload(payload *models.SuccessResponse)
SetPayload sets the payload to the post friends updates block o k response
func (*PostFriendsUpdatesBlockOK) WithPayload ¶
func (o *PostFriendsUpdatesBlockOK) WithPayload(payload *models.SuccessResponse) *PostFriendsUpdatesBlockOK
WithPayload adds the payload to the post friends updates block o k response
func (*PostFriendsUpdatesBlockOK) WriteResponse ¶
func (o *PostFriendsUpdatesBlockOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PostFriendsUpdatesBlockParams ¶
type PostFriendsUpdatesBlockParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*The languages the client is able to understand, and which locale variant is preferred. In: header */ AcceptLanguage *string /*Authorization In: header */ Authorization *string /*Body Required: true In: body */ Body *models.SubscribeFriends }
PostFriendsUpdatesBlockParams contains all the bound params for the post friends updates block operation typically these are obtained from a http.Request
swagger:parameters postFriendsUpdatesBlock
func NewPostFriendsUpdatesBlockParams ¶
func NewPostFriendsUpdatesBlockParams() PostFriendsUpdatesBlockParams
NewPostFriendsUpdatesBlockParams creates a new PostFriendsUpdatesBlockParams object no default values defined in spec.
func (*PostFriendsUpdatesBlockParams) BindRequest ¶
func (o *PostFriendsUpdatesBlockParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewPostFriendsUpdatesBlockParams() beforehand.
type PostFriendsUpdatesBlockURL ¶
type PostFriendsUpdatesBlockURL struct {
// contains filtered or unexported fields
}
PostFriendsUpdatesBlockURL generates an URL for the post friends updates block operation
func (*PostFriendsUpdatesBlockURL) Build ¶
func (o *PostFriendsUpdatesBlockURL) Build() (*url.URL, error)
Build a url path and query string
func (*PostFriendsUpdatesBlockURL) BuildFull ¶
func (o *PostFriendsUpdatesBlockURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*PostFriendsUpdatesBlockURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*PostFriendsUpdatesBlockURL) SetBasePath ¶
func (o *PostFriendsUpdatesBlockURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*PostFriendsUpdatesBlockURL) String ¶
func (o *PostFriendsUpdatesBlockURL) String() string
String returns the string representation of the path with query string
func (*PostFriendsUpdatesBlockURL) StringFull ¶
func (o *PostFriendsUpdatesBlockURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*PostFriendsUpdatesBlockURL) WithBasePath ¶
func (o *PostFriendsUpdatesBlockURL) WithBasePath(bp string) *PostFriendsUpdatesBlockURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type PostFriendsUpdatesBlockUnauthorized ¶
type PostFriendsUpdatesBlockUnauthorized struct { models.ErrorResponse `json:"body,omitempty"` }Payload *
PostFriendsUpdatesBlockUnauthorized Unauthorized
swagger:response postFriendsUpdatesBlockUnauthorized
func NewPostFriendsUpdatesBlockUnauthorized ¶
func NewPostFriendsUpdatesBlockUnauthorized() *PostFriendsUpdatesBlockUnauthorized
NewPostFriendsUpdatesBlockUnauthorized creates PostFriendsUpdatesBlockUnauthorized with default headers values
func (*PostFriendsUpdatesBlockUnauthorized) SetPayload ¶
func (o *PostFriendsUpdatesBlockUnauthorized) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the post friends updates block unauthorized response
func (*PostFriendsUpdatesBlockUnauthorized) WithPayload ¶
func (o *PostFriendsUpdatesBlockUnauthorized) WithPayload(payload *models.ErrorResponse) *PostFriendsUpdatesBlockUnauthorized
WithPayload adds the payload to the post friends updates block unauthorized response
func (*PostFriendsUpdatesBlockUnauthorized) WriteResponse ¶
func (o *PostFriendsUpdatesBlockUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PostFriendsUpdatesList ¶
type PostFriendsUpdatesList struct { Context *middleware.Context Handler PostFriendsUpdatesListHandler }
PostFriendsUpdatesList swagger:route POST /friends/updates/list friends postFriendsUpdatesList
6. Retrieve all users who can receive updates from given user.
6. As a user, I need an API to retrieve all email addresses that can receive updates from an email address.</br> Eligibility for receiving updates from i.e. john@example.com</br> <ul> <li>has not blocked updates from john@example.com, and</li> <li>at least one of the following:</li> <ul> <li>has a friend connection with john@example.com</li> <li>has subscribed to updates from john@example.com</li> <li>has been @mentioned in the update</li> </ul> </ul>
func NewPostFriendsUpdatesList ¶
func NewPostFriendsUpdatesList(ctx *middleware.Context, handler PostFriendsUpdatesListHandler) *PostFriendsUpdatesList
NewPostFriendsUpdatesList creates a new http.Handler for the post friends updates list operation
func (*PostFriendsUpdatesList) ServeHTTP ¶
func (o *PostFriendsUpdatesList) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type PostFriendsUpdatesListHandler ¶
type PostFriendsUpdatesListHandler interface {
Handle(PostFriendsUpdatesListParams) middleware.Responder
}
PostFriendsUpdatesListHandler interface for that can handle valid post friends updates list params
type PostFriendsUpdatesListHandlerFunc ¶
type PostFriendsUpdatesListHandlerFunc func(PostFriendsUpdatesListParams) middleware.Responder
PostFriendsUpdatesListHandlerFunc turns a function with the right signature into a post friends updates list handler
func (PostFriendsUpdatesListHandlerFunc) Handle ¶
func (fn PostFriendsUpdatesListHandlerFunc) Handle(params PostFriendsUpdatesListParams) middleware.Responder
Handle executing the request and returning a response
type PostFriendsUpdatesListNotFound ¶
type PostFriendsUpdatesListNotFound struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
PostFriendsUpdatesListNotFound Not Found.
swagger:response postFriendsUpdatesListNotFound
func NewPostFriendsUpdatesListNotFound ¶
func NewPostFriendsUpdatesListNotFound() *PostFriendsUpdatesListNotFound
NewPostFriendsUpdatesListNotFound creates PostFriendsUpdatesListNotFound with default headers values
func (*PostFriendsUpdatesListNotFound) SetPayload ¶
func (o *PostFriendsUpdatesListNotFound) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the post friends updates list not found response
func (*PostFriendsUpdatesListNotFound) WithPayload ¶
func (o *PostFriendsUpdatesListNotFound) WithPayload(payload *models.ErrorResponse) *PostFriendsUpdatesListNotFound
WithPayload adds the payload to the post friends updates list not found response
func (*PostFriendsUpdatesListNotFound) WriteResponse ¶
func (o *PostFriendsUpdatesListNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PostFriendsUpdatesListOK ¶
type PostFriendsUpdatesListOK struct { /* In: Body */ Payload *models.ReceiveUpdatesFriendsResponse `json:"body,omitempty"` }
PostFriendsUpdatesListOK successful operation
swagger:response postFriendsUpdatesListOK
func NewPostFriendsUpdatesListOK ¶
func NewPostFriendsUpdatesListOK() *PostFriendsUpdatesListOK
NewPostFriendsUpdatesListOK creates PostFriendsUpdatesListOK with default headers values
func (*PostFriendsUpdatesListOK) SetPayload ¶
func (o *PostFriendsUpdatesListOK) SetPayload(payload *models.ReceiveUpdatesFriendsResponse)
SetPayload sets the payload to the post friends updates list o k response
func (*PostFriendsUpdatesListOK) WithPayload ¶
func (o *PostFriendsUpdatesListOK) WithPayload(payload *models.ReceiveUpdatesFriendsResponse) *PostFriendsUpdatesListOK
WithPayload adds the payload to the post friends updates list o k response
func (*PostFriendsUpdatesListOK) WriteResponse ¶
func (o *PostFriendsUpdatesListOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PostFriendsUpdatesListParams ¶
type PostFriendsUpdatesListParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*The languages the client is able to understand, and which locale variant is preferred. In: header */ AcceptLanguage *string /*Authorization In: header */ Authorization *string /*Body Required: true In: body */ Body *models.ReceiveUpdatesFriends }
PostFriendsUpdatesListParams contains all the bound params for the post friends updates list operation typically these are obtained from a http.Request
swagger:parameters postFriendsUpdatesList
func NewPostFriendsUpdatesListParams ¶
func NewPostFriendsUpdatesListParams() PostFriendsUpdatesListParams
NewPostFriendsUpdatesListParams creates a new PostFriendsUpdatesListParams object no default values defined in spec.
func (*PostFriendsUpdatesListParams) BindRequest ¶
func (o *PostFriendsUpdatesListParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewPostFriendsUpdatesListParams() beforehand.
type PostFriendsUpdatesListURL ¶
type PostFriendsUpdatesListURL struct {
// contains filtered or unexported fields
}
PostFriendsUpdatesListURL generates an URL for the post friends updates list operation
func (*PostFriendsUpdatesListURL) Build ¶
func (o *PostFriendsUpdatesListURL) Build() (*url.URL, error)
Build a url path and query string
func (*PostFriendsUpdatesListURL) BuildFull ¶
func (o *PostFriendsUpdatesListURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*PostFriendsUpdatesListURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*PostFriendsUpdatesListURL) SetBasePath ¶
func (o *PostFriendsUpdatesListURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*PostFriendsUpdatesListURL) String ¶
func (o *PostFriendsUpdatesListURL) String() string
String returns the string representation of the path with query string
func (*PostFriendsUpdatesListURL) StringFull ¶
func (o *PostFriendsUpdatesListURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*PostFriendsUpdatesListURL) WithBasePath ¶
func (o *PostFriendsUpdatesListURL) WithBasePath(bp string) *PostFriendsUpdatesListURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type PostFriendsUpdatesListUnauthorized ¶
type PostFriendsUpdatesListUnauthorized struct { models.ErrorResponse `json:"body,omitempty"` }Payload *
PostFriendsUpdatesListUnauthorized Unauthorized
swagger:response postFriendsUpdatesListUnauthorized
func NewPostFriendsUpdatesListUnauthorized ¶
func NewPostFriendsUpdatesListUnauthorized() *PostFriendsUpdatesListUnauthorized
NewPostFriendsUpdatesListUnauthorized creates PostFriendsUpdatesListUnauthorized with default headers values
func (*PostFriendsUpdatesListUnauthorized) SetPayload ¶
func (o *PostFriendsUpdatesListUnauthorized) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the post friends updates list unauthorized response
func (*PostFriendsUpdatesListUnauthorized) WithPayload ¶
func (o *PostFriendsUpdatesListUnauthorized) WithPayload(payload *models.ErrorResponse) *PostFriendsUpdatesListUnauthorized
WithPayload adds the payload to the post friends updates list unauthorized response
func (*PostFriendsUpdatesListUnauthorized) WriteResponse ¶
func (o *PostFriendsUpdatesListUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PostFriendsUpdatesSubscribe ¶
type PostFriendsUpdatesSubscribe struct { Context *middleware.Context Handler PostFriendsUpdatesSubscribeHandler }
PostFriendsUpdatesSubscribe swagger:route POST /friends/updates/subscribe friends postFriendsUpdatesSubscribe
4. Subscribe to a given users updates.
4. As a user, I need an API to subscribe to updates from an email address.</br> Please note that subscribing to updates is NOT equivalent to adding a friend connection
func NewPostFriendsUpdatesSubscribe ¶
func NewPostFriendsUpdatesSubscribe(ctx *middleware.Context, handler PostFriendsUpdatesSubscribeHandler) *PostFriendsUpdatesSubscribe
NewPostFriendsUpdatesSubscribe creates a new http.Handler for the post friends updates subscribe operation
func (*PostFriendsUpdatesSubscribe) ServeHTTP ¶
func (o *PostFriendsUpdatesSubscribe) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type PostFriendsUpdatesSubscribeHandler ¶
type PostFriendsUpdatesSubscribeHandler interface {
Handle(PostFriendsUpdatesSubscribeParams) middleware.Responder
}
PostFriendsUpdatesSubscribeHandler interface for that can handle valid post friends updates subscribe params
type PostFriendsUpdatesSubscribeHandlerFunc ¶
type PostFriendsUpdatesSubscribeHandlerFunc func(PostFriendsUpdatesSubscribeParams) middleware.Responder
PostFriendsUpdatesSubscribeHandlerFunc turns a function with the right signature into a post friends updates subscribe handler
func (PostFriendsUpdatesSubscribeHandlerFunc) Handle ¶
func (fn PostFriendsUpdatesSubscribeHandlerFunc) Handle(params PostFriendsUpdatesSubscribeParams) middleware.Responder
Handle executing the request and returning a response
type PostFriendsUpdatesSubscribeNotFound ¶
type PostFriendsUpdatesSubscribeNotFound struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
PostFriendsUpdatesSubscribeNotFound Not Found.
swagger:response postFriendsUpdatesSubscribeNotFound
func NewPostFriendsUpdatesSubscribeNotFound ¶
func NewPostFriendsUpdatesSubscribeNotFound() *PostFriendsUpdatesSubscribeNotFound
NewPostFriendsUpdatesSubscribeNotFound creates PostFriendsUpdatesSubscribeNotFound with default headers values
func (*PostFriendsUpdatesSubscribeNotFound) SetPayload ¶
func (o *PostFriendsUpdatesSubscribeNotFound) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the post friends updates subscribe not found response
func (*PostFriendsUpdatesSubscribeNotFound) WithPayload ¶
func (o *PostFriendsUpdatesSubscribeNotFound) WithPayload(payload *models.ErrorResponse) *PostFriendsUpdatesSubscribeNotFound
WithPayload adds the payload to the post friends updates subscribe not found response
func (*PostFriendsUpdatesSubscribeNotFound) WriteResponse ¶
func (o *PostFriendsUpdatesSubscribeNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PostFriendsUpdatesSubscribeOK ¶
type PostFriendsUpdatesSubscribeOK struct { /* In: Body */ Payload *models.SuccessResponse `json:"body,omitempty"` }
PostFriendsUpdatesSubscribeOK successful operation
swagger:response postFriendsUpdatesSubscribeOK
func NewPostFriendsUpdatesSubscribeOK ¶
func NewPostFriendsUpdatesSubscribeOK() *PostFriendsUpdatesSubscribeOK
NewPostFriendsUpdatesSubscribeOK creates PostFriendsUpdatesSubscribeOK with default headers values
func (*PostFriendsUpdatesSubscribeOK) SetPayload ¶
func (o *PostFriendsUpdatesSubscribeOK) SetPayload(payload *models.SuccessResponse)
SetPayload sets the payload to the post friends updates subscribe o k response
func (*PostFriendsUpdatesSubscribeOK) WithPayload ¶
func (o *PostFriendsUpdatesSubscribeOK) WithPayload(payload *models.SuccessResponse) *PostFriendsUpdatesSubscribeOK
WithPayload adds the payload to the post friends updates subscribe o k response
func (*PostFriendsUpdatesSubscribeOK) WriteResponse ¶
func (o *PostFriendsUpdatesSubscribeOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PostFriendsUpdatesSubscribeParams ¶
type PostFriendsUpdatesSubscribeParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*The languages the client is able to understand, and which locale variant is preferred. In: header */ AcceptLanguage *string /*Authorization In: header */ Authorization *string /*Body Required: true In: body */ Body *models.SubscribeFriends }
PostFriendsUpdatesSubscribeParams contains all the bound params for the post friends updates subscribe operation typically these are obtained from a http.Request
swagger:parameters postFriendsUpdatesSubscribe
func NewPostFriendsUpdatesSubscribeParams ¶
func NewPostFriendsUpdatesSubscribeParams() PostFriendsUpdatesSubscribeParams
NewPostFriendsUpdatesSubscribeParams creates a new PostFriendsUpdatesSubscribeParams object no default values defined in spec.
func (*PostFriendsUpdatesSubscribeParams) BindRequest ¶
func (o *PostFriendsUpdatesSubscribeParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewPostFriendsUpdatesSubscribeParams() beforehand.
type PostFriendsUpdatesSubscribeURL ¶
type PostFriendsUpdatesSubscribeURL struct {
// contains filtered or unexported fields
}
PostFriendsUpdatesSubscribeURL generates an URL for the post friends updates subscribe operation
func (*PostFriendsUpdatesSubscribeURL) Build ¶
func (o *PostFriendsUpdatesSubscribeURL) Build() (*url.URL, error)
Build a url path and query string
func (*PostFriendsUpdatesSubscribeURL) BuildFull ¶
func (o *PostFriendsUpdatesSubscribeURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*PostFriendsUpdatesSubscribeURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*PostFriendsUpdatesSubscribeURL) SetBasePath ¶
func (o *PostFriendsUpdatesSubscribeURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*PostFriendsUpdatesSubscribeURL) String ¶
func (o *PostFriendsUpdatesSubscribeURL) String() string
String returns the string representation of the path with query string
func (*PostFriendsUpdatesSubscribeURL) StringFull ¶
func (o *PostFriendsUpdatesSubscribeURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*PostFriendsUpdatesSubscribeURL) WithBasePath ¶
func (o *PostFriendsUpdatesSubscribeURL) WithBasePath(bp string) *PostFriendsUpdatesSubscribeURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type PostFriendsUpdatesSubscribeUnauthorized ¶
type PostFriendsUpdatesSubscribeUnauthorized struct { models.ErrorResponse `json:"body,omitempty"` }Payload *
PostFriendsUpdatesSubscribeUnauthorized Unauthorized
swagger:response postFriendsUpdatesSubscribeUnauthorized
func NewPostFriendsUpdatesSubscribeUnauthorized ¶
func NewPostFriendsUpdatesSubscribeUnauthorized() *PostFriendsUpdatesSubscribeUnauthorized
NewPostFriendsUpdatesSubscribeUnauthorized creates PostFriendsUpdatesSubscribeUnauthorized with default headers values
func (*PostFriendsUpdatesSubscribeUnauthorized) SetPayload ¶
func (o *PostFriendsUpdatesSubscribeUnauthorized) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the post friends updates subscribe unauthorized response
func (*PostFriendsUpdatesSubscribeUnauthorized) WithPayload ¶
func (o *PostFriendsUpdatesSubscribeUnauthorized) WithPayload(payload *models.ErrorResponse) *PostFriendsUpdatesSubscribeUnauthorized
WithPayload adds the payload to the post friends updates subscribe unauthorized response
func (*PostFriendsUpdatesSubscribeUnauthorized) WriteResponse ¶
func (o *PostFriendsUpdatesSubscribeUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
Source Files
¶
- post_friends_common_list.go
- post_friends_common_list_parameters.go
- post_friends_common_list_responses.go
- post_friends_common_list_urlbuilder.go
- post_friends_connections.go
- post_friends_connections_list.go
- post_friends_connections_list_parameters.go
- post_friends_connections_list_responses.go
- post_friends_connections_list_urlbuilder.go
- post_friends_connections_parameters.go
- post_friends_connections_responses.go
- post_friends_connections_urlbuilder.go
- post_friends_updates_block.go
- post_friends_updates_block_parameters.go
- post_friends_updates_block_responses.go
- post_friends_updates_block_urlbuilder.go
- post_friends_updates_list.go
- post_friends_updates_list_parameters.go
- post_friends_updates_list_responses.go
- post_friends_updates_list_urlbuilder.go
- post_friends_updates_subscribe.go
- post_friends_updates_subscribe_parameters.go
- post_friends_updates_subscribe_responses.go
- post_friends_updates_subscribe_urlbuilder.go