friends

package
v0.0.0-...-9e3f5d0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const PostFriendsCommonListNotFoundCode int = 404

PostFriendsCommonListNotFoundCode is the HTTP code returned for type PostFriendsCommonListNotFound

View Source
const PostFriendsCommonListOKCode int = 200

PostFriendsCommonListOKCode is the HTTP code returned for type PostFriendsCommonListOK

View Source
const PostFriendsCommonListUnauthorizedCode int = 401

PostFriendsCommonListUnauthorizedCode is the HTTP code returned for type PostFriendsCommonListUnauthorized

View Source
const PostFriendsConnectionsBadRequestCode int = 400

PostFriendsConnectionsBadRequestCode is the HTTP code returned for type PostFriendsConnectionsBadRequest

View Source
const PostFriendsConnectionsListNotFoundCode int = 404

PostFriendsConnectionsListNotFoundCode is the HTTP code returned for type PostFriendsConnectionsListNotFound

View Source
const PostFriendsConnectionsListOKCode int = 200

PostFriendsConnectionsListOKCode is the HTTP code returned for type PostFriendsConnectionsListOK

View Source
const PostFriendsConnectionsListUnauthorizedCode int = 401

PostFriendsConnectionsListUnauthorizedCode is the HTTP code returned for type PostFriendsConnectionsListUnauthorized

View Source
const PostFriendsConnectionsNotFoundCode int = 404

PostFriendsConnectionsNotFoundCode is the HTTP code returned for type PostFriendsConnectionsNotFound

View Source
const PostFriendsConnectionsOKCode int = 200

PostFriendsConnectionsOKCode is the HTTP code returned for type PostFriendsConnectionsOK

View Source
const PostFriendsConnectionsUnauthorizedCode int = 401

PostFriendsConnectionsUnauthorizedCode is the HTTP code returned for type PostFriendsConnectionsUnauthorized

View Source
const PostFriendsUpdatesBlockNotFoundCode int = 404

PostFriendsUpdatesBlockNotFoundCode is the HTTP code returned for type PostFriendsUpdatesBlockNotFound

View Source
const PostFriendsUpdatesBlockOKCode int = 200

PostFriendsUpdatesBlockOKCode is the HTTP code returned for type PostFriendsUpdatesBlockOK

View Source
const PostFriendsUpdatesBlockUnauthorizedCode int = 401

PostFriendsUpdatesBlockUnauthorizedCode is the HTTP code returned for type PostFriendsUpdatesBlockUnauthorized

View Source
const PostFriendsUpdatesListNotFoundCode int = 404

PostFriendsUpdatesListNotFoundCode is the HTTP code returned for type PostFriendsUpdatesListNotFound

View Source
const PostFriendsUpdatesListOKCode int = 200

PostFriendsUpdatesListOKCode is the HTTP code returned for type PostFriendsUpdatesListOK

View Source
const PostFriendsUpdatesListUnauthorizedCode int = 401

PostFriendsUpdatesListUnauthorizedCode is the HTTP code returned for type PostFriendsUpdatesListUnauthorized

View Source
const PostFriendsUpdatesSubscribeNotFoundCode int = 404

PostFriendsUpdatesSubscribeNotFoundCode is the HTTP code returned for type PostFriendsUpdatesSubscribeNotFound

View Source
const PostFriendsUpdatesSubscribeOKCode int = 200

PostFriendsUpdatesSubscribeOKCode is the HTTP code returned for type PostFriendsUpdatesSubscribeOK

View Source
const PostFriendsUpdatesSubscribeUnauthorizedCode int = 401

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

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

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

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

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

func (o *PostFriendsCommonListURL) Must(u *url.URL, err error) *url.URL

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

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 {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

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

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

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

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

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

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

SetPayload sets the payload to the post friends connections list not found response

func (*PostFriendsConnectionsListNotFound) WithPayload

WithPayload adds the payload to the post friends connections list not found response

func (*PostFriendsConnectionsListNotFound) WriteResponse

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

SetPayload sets the payload to the post friends connections list o k response

func (*PostFriendsConnectionsListOK) WithPayload

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

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

func (o *PostFriendsConnectionsListURL) Must(u *url.URL, err error) *url.URL

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

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

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 {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

PostFriendsConnectionsListUnauthorized Unauthorized

swagger:response postFriendsConnectionsListUnauthorized

func NewPostFriendsConnectionsListUnauthorized

func NewPostFriendsConnectionsListUnauthorized() *PostFriendsConnectionsListUnauthorized

NewPostFriendsConnectionsListUnauthorized creates PostFriendsConnectionsListUnauthorized with default headers values

func (*PostFriendsConnectionsListUnauthorized) SetPayload

SetPayload sets the payload to the post friends connections list unauthorized response

func (*PostFriendsConnectionsListUnauthorized) WithPayload

WithPayload adds the payload to the post friends connections list unauthorized response

func (*PostFriendsConnectionsListUnauthorized) WriteResponse

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

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

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

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

func (o *PostFriendsConnectionsURL) Must(u *url.URL, err error) *url.URL

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

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 {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

PostFriendsConnectionsUnauthorized Unauthorized

swagger:response postFriendsConnectionsUnauthorized

func NewPostFriendsConnectionsUnauthorized

func NewPostFriendsConnectionsUnauthorized() *PostFriendsConnectionsUnauthorized

NewPostFriendsConnectionsUnauthorized creates PostFriendsConnectionsUnauthorized with default headers values

func (*PostFriendsConnectionsUnauthorized) SetPayload

SetPayload sets the payload to the post friends connections unauthorized response

func (*PostFriendsConnectionsUnauthorized) WithPayload

WithPayload adds the payload to the post friends connections unauthorized response

func (*PostFriendsConnectionsUnauthorized) WriteResponse

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

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

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

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

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

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

func (o *PostFriendsUpdatesBlockURL) Must(u *url.URL, err error) *url.URL

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

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 {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

PostFriendsUpdatesBlockUnauthorized Unauthorized

swagger:response postFriendsUpdatesBlockUnauthorized

func NewPostFriendsUpdatesBlockUnauthorized

func NewPostFriendsUpdatesBlockUnauthorized() *PostFriendsUpdatesBlockUnauthorized

NewPostFriendsUpdatesBlockUnauthorized creates PostFriendsUpdatesBlockUnauthorized with default headers values

func (*PostFriendsUpdatesBlockUnauthorized) SetPayload

SetPayload sets the payload to the post friends updates block unauthorized response

func (*PostFriendsUpdatesBlockUnauthorized) WithPayload

WithPayload adds the payload to the post friends updates block unauthorized response

func (*PostFriendsUpdatesBlockUnauthorized) WriteResponse

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

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

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

SetPayload sets the payload to the post friends updates list o k response

func (*PostFriendsUpdatesListOK) WithPayload

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

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

func (o *PostFriendsUpdatesListURL) Must(u *url.URL, err error) *url.URL

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

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 {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

PostFriendsUpdatesListUnauthorized Unauthorized

swagger:response postFriendsUpdatesListUnauthorized

func NewPostFriendsUpdatesListUnauthorized

func NewPostFriendsUpdatesListUnauthorized() *PostFriendsUpdatesListUnauthorized

NewPostFriendsUpdatesListUnauthorized creates PostFriendsUpdatesListUnauthorized with default headers values

func (*PostFriendsUpdatesListUnauthorized) SetPayload

SetPayload sets the payload to the post friends updates list unauthorized response

func (*PostFriendsUpdatesListUnauthorized) WithPayload

WithPayload adds the payload to the post friends updates list unauthorized response

func (*PostFriendsUpdatesListUnauthorized) WriteResponse

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

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

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

SetPayload sets the payload to the post friends updates subscribe not found response

func (*PostFriendsUpdatesSubscribeNotFound) WithPayload

WithPayload adds the payload to the post friends updates subscribe not found response

func (*PostFriendsUpdatesSubscribeNotFound) WriteResponse

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

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

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

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

func (o *PostFriendsUpdatesSubscribeURL) Must(u *url.URL, err error) *url.URL

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

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

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 {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

PostFriendsUpdatesSubscribeUnauthorized Unauthorized

swagger:response postFriendsUpdatesSubscribeUnauthorized

func NewPostFriendsUpdatesSubscribeUnauthorized

func NewPostFriendsUpdatesSubscribeUnauthorized() *PostFriendsUpdatesSubscribeUnauthorized

NewPostFriendsUpdatesSubscribeUnauthorized creates PostFriendsUpdatesSubscribeUnauthorized with default headers values

func (*PostFriendsUpdatesSubscribeUnauthorized) SetPayload

SetPayload sets the payload to the post friends updates subscribe unauthorized response

func (*PostFriendsUpdatesSubscribeUnauthorized) WithPayload

WithPayload adds the payload to the post friends updates subscribe unauthorized response

func (*PostFriendsUpdatesSubscribeUnauthorized) WriteResponse

WriteResponse to the client

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL