operations

package
v0.0.0-...-0d2eb9b Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2022 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// DeleteItemTakenConflictBodyReasonOutdatedRevision captures enum value "outdated revision"
	DeleteItemTakenConflictBodyReasonOutdatedRevision string = "outdated revision"

	// DeleteItemTakenConflictBodyReasonNotTaken captures enum value "not taken"
	DeleteItemTakenConflictBodyReasonNotTaken string = "not taken"
)
View Source
const (

	// PostItemTakenConflictBodyReasonOutdatedRevision captures enum value "outdated revision"
	PostItemTakenConflictBodyReasonOutdatedRevision string = "outdated revision"

	// PostItemTakenConflictBodyReasonAlreadyTaken captures enum value "already taken"
	PostItemTakenConflictBodyReasonAlreadyTaken string = "already taken"
)
View Source
const DeleteItemTakenConflictCode int = 409

DeleteItemTakenConflictCode is the HTTP code returned for type DeleteItemTakenConflict

View Source
const DeleteItemTakenForbiddenCode int = 403

DeleteItemTakenForbiddenCode is the HTTP code returned for type DeleteItemTakenForbidden

View Source
const DeleteItemTakenInternalServerErrorCode int = 500

DeleteItemTakenInternalServerErrorCode is the HTTP code returned for type DeleteItemTakenInternalServerError

View Source
const DeleteItemTakenNoContentCode int = 204

DeleteItemTakenNoContentCode is the HTTP code returned for type DeleteItemTakenNoContent

View Source
const DeleteItemTakenNotFoundCode int = 404

DeleteItemTakenNotFoundCode is the HTTP code returned for type DeleteItemTakenNotFound

View Source
const DeleteListForbiddenCode int = 403

DeleteListForbiddenCode is the HTTP code returned for type DeleteListForbidden

View Source
const DeleteListInternalServerErrorCode int = 500

DeleteListInternalServerErrorCode is the HTTP code returned for type DeleteListInternalServerError

View Source
const DeleteListItemsConflictCode int = 409

DeleteListItemsConflictCode is the HTTP code returned for type DeleteListItemsConflict

View Source
const DeleteListItemsForbiddenCode int = 403

DeleteListItemsForbiddenCode is the HTTP code returned for type DeleteListItemsForbidden

View Source
const DeleteListItemsInternalServerErrorCode int = 500

DeleteListItemsInternalServerErrorCode is the HTTP code returned for type DeleteListItemsInternalServerError

View Source
const DeleteListItemsNotFoundCode int = 404

DeleteListItemsNotFoundCode is the HTTP code returned for type DeleteListItemsNotFound

View Source
const DeleteListItemsOKCode int = 200

DeleteListItemsOKCode is the HTTP code returned for type DeleteListItemsOK

View Source
const DeleteListNoContentCode int = 204

DeleteListNoContentCode is the HTTP code returned for type DeleteListNoContent

View Source
const DeleteListNotFoundCode int = 404

DeleteListNotFoundCode is the HTTP code returned for type DeleteListNotFound

View Source
const GetListForbiddenCode int = 403

GetListForbiddenCode is the HTTP code returned for type GetListForbidden

View Source
const GetListInternalServerErrorCode int = 500

GetListInternalServerErrorCode is the HTTP code returned for type GetListInternalServerError

View Source
const GetListItemsForbiddenCode int = 403

GetListItemsForbiddenCode is the HTTP code returned for type GetListItemsForbidden

View Source
const GetListItemsInternalServerErrorCode int = 500

GetListItemsInternalServerErrorCode is the HTTP code returned for type GetListItemsInternalServerError

View Source
const GetListItemsNotFoundCode int = 404

GetListItemsNotFoundCode is the HTTP code returned for type GetListItemsNotFound

View Source
const GetListItemsOKCode int = 200

GetListItemsOKCode is the HTTP code returned for type GetListItemsOK

View Source
const GetListNotFoundCode int = 404

GetListNotFoundCode is the HTTP code returned for type GetListNotFound

View Source
const GetListOKCode int = 200

GetListOKCode is the HTTP code returned for type GetListOK

View Source
const GetListTokenForbiddenCode int = 403

GetListTokenForbiddenCode is the HTTP code returned for type GetListTokenForbidden

View Source
const GetListTokenInternalServerErrorCode int = 500

GetListTokenInternalServerErrorCode is the HTTP code returned for type GetListTokenInternalServerError

View Source
const GetListTokenNotFoundCode int = 404

GetListTokenNotFoundCode is the HTTP code returned for type GetListTokenNotFound

View Source
const GetListTokenOKCode int = 200

GetListTokenOKCode is the HTTP code returned for type GetListTokenOK

View Source
const GetUserInternalServerErrorCode int = 500

GetUserInternalServerErrorCode is the HTTP code returned for type GetUserInternalServerError

View Source
const GetUserListsInternalServerErrorCode int = 500

GetUserListsInternalServerErrorCode is the HTTP code returned for type GetUserListsInternalServerError

View Source
const GetUserListsNotFoundCode int = 404

GetUserListsNotFoundCode is the HTTP code returned for type GetUserListsNotFound

View Source
const GetUserListsOKCode int = 200

GetUserListsOKCode is the HTTP code returned for type GetUserListsOK

View Source
const GetUserNotFoundCode int = 404

GetUserNotFoundCode is the HTTP code returned for type GetUserNotFound

View Source
const GetUserOKCode int = 200

GetUserOKCode is the HTTP code returned for type GetUserOK

View Source
const LoginInternalServerErrorCode int = 500

LoginInternalServerErrorCode is the HTTP code returned for type LoginInternalServerError

View Source
const LoginOKCode int = 200

LoginOKCode is the HTTP code returned for type LoginOK

View Source
const OAuthLoginBadRequestCode int = 400

OAuthLoginBadRequestCode is the HTTP code returned for type OAuthLoginBadRequest

View Source
const OAuthLoginInternalServerErrorCode int = 500

OAuthLoginInternalServerErrorCode is the HTTP code returned for type OAuthLoginInternalServerError

View Source
const OAuthLoginNotFoundCode int = 404

OAuthLoginNotFoundCode is the HTTP code returned for type OAuthLoginNotFound

View Source
const OAuthLoginOKCode int = 200

OAuthLoginOKCode is the HTTP code returned for type OAuthLoginOK

View Source
const OAuthRegisterInternalServerErrorCode int = 500

OAuthRegisterInternalServerErrorCode is the HTTP code returned for type OAuthRegisterInternalServerError

View Source
const OAuthRegisterOKCode int = 200

OAuthRegisterOKCode is the HTTP code returned for type OAuthRegisterOK

View Source
const PatchListForbiddenCode int = 403

PatchListForbiddenCode is the HTTP code returned for type PatchListForbidden

View Source
const PatchListInternalServerErrorCode int = 500

PatchListInternalServerErrorCode is the HTTP code returned for type PatchListInternalServerError

View Source
const PatchListNoContentCode int = 204

PatchListNoContentCode is the HTTP code returned for type PatchListNoContent

View Source
const PatchListNotFoundCode int = 404

PatchListNotFoundCode is the HTTP code returned for type PatchListNotFound

View Source
const PatchUserForbiddenCode int = 403

PatchUserForbiddenCode is the HTTP code returned for type PatchUserForbidden

View Source
const PatchUserInternalServerErrorCode int = 500

PatchUserInternalServerErrorCode is the HTTP code returned for type PatchUserInternalServerError

View Source
const PatchUserNoContentCode int = 204

PatchUserNoContentCode is the HTTP code returned for type PatchUserNoContent

View Source
const PostItemTakenConflictCode int = 409

PostItemTakenConflictCode is the HTTP code returned for type PostItemTakenConflict

View Source
const PostItemTakenForbiddenCode int = 403

PostItemTakenForbiddenCode is the HTTP code returned for type PostItemTakenForbidden

View Source
const PostItemTakenInternalServerErrorCode int = 500

PostItemTakenInternalServerErrorCode is the HTTP code returned for type PostItemTakenInternalServerError

View Source
const PostItemTakenNoContentCode int = 204

PostItemTakenNoContentCode is the HTTP code returned for type PostItemTakenNoContent

View Source
const PostItemTakenNotFoundCode int = 404

PostItemTakenNotFoundCode is the HTTP code returned for type PostItemTakenNotFound

View Source
const PostListCreatedCode int = 201

PostListCreatedCode is the HTTP code returned for type PostListCreated

View Source
const PostListInternalServerErrorCode int = 500

PostListInternalServerErrorCode is the HTTP code returned for type PostListInternalServerError

View Source
const PostListItemsConflictCode int = 409

PostListItemsConflictCode is the HTTP code returned for type PostListItemsConflict

View Source
const PostListItemsCreatedCode int = 201

PostListItemsCreatedCode is the HTTP code returned for type PostListItemsCreated

View Source
const PostListItemsForbiddenCode int = 403

PostListItemsForbiddenCode is the HTTP code returned for type PostListItemsForbidden

View Source
const PostListItemsInternalServerErrorCode int = 500

PostListItemsInternalServerErrorCode is the HTTP code returned for type PostListItemsInternalServerError

View Source
const PostListItemsNotFoundCode int = 404

PostListItemsNotFoundCode is the HTTP code returned for type PostListItemsNotFound

View Source
const RegisterInternalServerErrorCode int = 500

RegisterInternalServerErrorCode is the HTTP code returned for type RegisterInternalServerError

View Source
const RegisterOKCode int = 200

RegisterOKCode is the HTTP code returned for type RegisterOK

Variables

This section is empty.

Functions

This section is empty.

Types

type DeleteItemTaken

type DeleteItemTaken struct {
	Context *middleware.Context
	Handler DeleteItemTakenHandler
}
DeleteItemTaken swagger:route DELETE /lists/{id}/items/{item_id}/taken_by Items deleteItemTaken

Unmark previously taken item

func NewDeleteItemTaken

func NewDeleteItemTaken(ctx *middleware.Context, handler DeleteItemTakenHandler) *DeleteItemTaken

NewDeleteItemTaken creates a new http.Handler for the delete item taken operation

func (*DeleteItemTaken) ServeHTTP

func (o *DeleteItemTaken) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type DeleteItemTakenConflict

type DeleteItemTakenConflict struct {

	/*
	  In: Body
	*/
	Payload *DeleteItemTakenConflictBody `json:"body,omitempty"`
}

DeleteItemTakenConflict Either an outdated revision, or item is not taken by the client.

swagger:response deleteItemTakenConflict

func NewDeleteItemTakenConflict

func NewDeleteItemTakenConflict() *DeleteItemTakenConflict

NewDeleteItemTakenConflict creates DeleteItemTakenConflict with default headers values

func (*DeleteItemTakenConflict) SetPayload

func (o *DeleteItemTakenConflict) SetPayload(payload *DeleteItemTakenConflictBody)

SetPayload sets the payload to the delete item taken conflict response

func (*DeleteItemTakenConflict) WithPayload

WithPayload adds the payload to the delete item taken conflict response

func (*DeleteItemTakenConflict) WriteResponse

func (o *DeleteItemTakenConflict) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeleteItemTakenConflictBody

type DeleteItemTakenConflictBody struct {

	// reason
	// Required: true
	// Enum: [outdated revision not taken]
	Reason *string `json:"reason"`
}

DeleteItemTakenConflictBody delete item taken conflict body

swagger:model DeleteItemTakenConflictBody

func (*DeleteItemTakenConflictBody) ContextValidate

func (o *DeleteItemTakenConflictBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this delete item taken conflict body based on context it is used

func (*DeleteItemTakenConflictBody) MarshalBinary

func (o *DeleteItemTakenConflictBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DeleteItemTakenConflictBody) UnmarshalBinary

func (o *DeleteItemTakenConflictBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DeleteItemTakenConflictBody) Validate

func (o *DeleteItemTakenConflictBody) Validate(formats strfmt.Registry) error

Validate validates this delete item taken conflict body

type DeleteItemTakenForbidden

type DeleteItemTakenForbidden struct {
}

DeleteItemTakenForbidden Access denied (this includes untaking items from the list owned by the client)

swagger:response deleteItemTakenForbidden

func NewDeleteItemTakenForbidden

func NewDeleteItemTakenForbidden() *DeleteItemTakenForbidden

NewDeleteItemTakenForbidden creates DeleteItemTakenForbidden with default headers values

func (*DeleteItemTakenForbidden) WriteResponse

func (o *DeleteItemTakenForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeleteItemTakenHandler

type DeleteItemTakenHandler interface {
	Handle(DeleteItemTakenParams, *apimodels.Principal) middleware.Responder
}

DeleteItemTakenHandler interface for that can handle valid delete item taken params

type DeleteItemTakenHandlerFunc

type DeleteItemTakenHandlerFunc func(DeleteItemTakenParams, *apimodels.Principal) middleware.Responder

DeleteItemTakenHandlerFunc turns a function with the right signature into a delete item taken handler

func (DeleteItemTakenHandlerFunc) Handle

Handle executing the request and returning a response

type DeleteItemTakenInternalServerError

type DeleteItemTakenInternalServerError struct {
}

DeleteItemTakenInternalServerError Server error

swagger:response deleteItemTakenInternalServerError

func NewDeleteItemTakenInternalServerError

func NewDeleteItemTakenInternalServerError() *DeleteItemTakenInternalServerError

NewDeleteItemTakenInternalServerError creates DeleteItemTakenInternalServerError with default headers values

func (*DeleteItemTakenInternalServerError) WriteResponse

WriteResponse to the client

type DeleteItemTakenNoContent

type DeleteItemTakenNoContent struct {
}

DeleteItemTakenNoContent Success

swagger:response deleteItemTakenNoContent

func NewDeleteItemTakenNoContent

func NewDeleteItemTakenNoContent() *DeleteItemTakenNoContent

NewDeleteItemTakenNoContent creates DeleteItemTakenNoContent with default headers values

func (*DeleteItemTakenNoContent) WriteResponse

func (o *DeleteItemTakenNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeleteItemTakenNotFound

type DeleteItemTakenNotFound struct {
}

DeleteItemTakenNotFound List not found

swagger:response deleteItemTakenNotFound

func NewDeleteItemTakenNotFound

func NewDeleteItemTakenNotFound() *DeleteItemTakenNotFound

NewDeleteItemTakenNotFound creates DeleteItemTakenNotFound with default headers values

func (*DeleteItemTakenNotFound) WriteResponse

func (o *DeleteItemTakenNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeleteItemTakenParams

type DeleteItemTakenParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*Optional access token for a list provided by list owner
	  In: query
	*/
	AccessToken *string
	/*
	  Required: true
	  In: path
	*/
	ID int64
	/*
	  Required: true
	  In: path
	*/
	ItemID int64
	/*
	  Required: true
	  In: query
	*/
	Rev int64
}

DeleteItemTakenParams contains all the bound params for the delete item taken operation typically these are obtained from a http.Request

swagger:parameters DeleteItemTaken

func NewDeleteItemTakenParams

func NewDeleteItemTakenParams() DeleteItemTakenParams

NewDeleteItemTakenParams creates a new DeleteItemTakenParams object

There are no default values defined in the spec.

func (*DeleteItemTakenParams) BindRequest

func (o *DeleteItemTakenParams) 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 NewDeleteItemTakenParams() beforehand.

type DeleteItemTakenURL

type DeleteItemTakenURL struct {
	ID     int64
	ItemID int64

	AccessToken *string
	Rev         int64
	// contains filtered or unexported fields
}

DeleteItemTakenURL generates an URL for the delete item taken operation

func (*DeleteItemTakenURL) Build

func (o *DeleteItemTakenURL) Build() (*url.URL, error)

Build a url path and query string

func (*DeleteItemTakenURL) BuildFull

func (o *DeleteItemTakenURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*DeleteItemTakenURL) Must

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

Must is a helper function to panic when the url builder returns an error

func (*DeleteItemTakenURL) SetBasePath

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

func (o *DeleteItemTakenURL) String() string

String returns the string representation of the path with query string

func (*DeleteItemTakenURL) StringFull

func (o *DeleteItemTakenURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*DeleteItemTakenURL) WithBasePath

func (o *DeleteItemTakenURL) WithBasePath(bp string) *DeleteItemTakenURL

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 DeleteList

type DeleteList struct {
	Context *middleware.Context
	Handler DeleteListHandler
}
DeleteList swagger:route DELETE /lists/{id} Lists deleteList

Delete existing list

func NewDeleteList

func NewDeleteList(ctx *middleware.Context, handler DeleteListHandler) *DeleteList

NewDeleteList creates a new http.Handler for the delete list operation

func (*DeleteList) ServeHTTP

func (o *DeleteList) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type DeleteListForbidden

type DeleteListForbidden struct {
}

DeleteListForbidden Access denied

swagger:response deleteListForbidden

func NewDeleteListForbidden

func NewDeleteListForbidden() *DeleteListForbidden

NewDeleteListForbidden creates DeleteListForbidden with default headers values

func (*DeleteListForbidden) WriteResponse

func (o *DeleteListForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeleteListHandler

type DeleteListHandler interface {
	Handle(DeleteListParams, *apimodels.Principal) middleware.Responder
}

DeleteListHandler interface for that can handle valid delete list params

type DeleteListHandlerFunc

type DeleteListHandlerFunc func(DeleteListParams, *apimodels.Principal) middleware.Responder

DeleteListHandlerFunc turns a function with the right signature into a delete list handler

func (DeleteListHandlerFunc) Handle

Handle executing the request and returning a response

type DeleteListInternalServerError

type DeleteListInternalServerError struct {
}

DeleteListInternalServerError Server error

swagger:response deleteListInternalServerError

func NewDeleteListInternalServerError

func NewDeleteListInternalServerError() *DeleteListInternalServerError

NewDeleteListInternalServerError creates DeleteListInternalServerError with default headers values

func (*DeleteListInternalServerError) WriteResponse

func (o *DeleteListInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeleteListItems

type DeleteListItems struct {
	Context *middleware.Context
	Handler DeleteListItemsHandler
}
DeleteListItems swagger:route DELETE /lists/{id}/items Items deleteListItems

Delete items from existing list

func NewDeleteListItems

func NewDeleteListItems(ctx *middleware.Context, handler DeleteListItemsHandler) *DeleteListItems

NewDeleteListItems creates a new http.Handler for the delete list items operation

func (*DeleteListItems) ServeHTTP

func (o *DeleteListItems) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type DeleteListItemsConflict

type DeleteListItemsConflict struct {
}

DeleteListItemsConflict Outdated revision

swagger:response deleteListItemsConflict

func NewDeleteListItemsConflict

func NewDeleteListItemsConflict() *DeleteListItemsConflict

NewDeleteListItemsConflict creates DeleteListItemsConflict with default headers values

func (*DeleteListItemsConflict) WriteResponse

func (o *DeleteListItemsConflict) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeleteListItemsForbidden

type DeleteListItemsForbidden struct {
}

DeleteListItemsForbidden Access denied

swagger:response deleteListItemsForbidden

func NewDeleteListItemsForbidden

func NewDeleteListItemsForbidden() *DeleteListItemsForbidden

NewDeleteListItemsForbidden creates DeleteListItemsForbidden with default headers values

func (*DeleteListItemsForbidden) WriteResponse

func (o *DeleteListItemsForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeleteListItemsHandler

type DeleteListItemsHandler interface {
	Handle(DeleteListItemsParams, *apimodels.Principal) middleware.Responder
}

DeleteListItemsHandler interface for that can handle valid delete list items params

type DeleteListItemsHandlerFunc

type DeleteListItemsHandlerFunc func(DeleteListItemsParams, *apimodels.Principal) middleware.Responder

DeleteListItemsHandlerFunc turns a function with the right signature into a delete list items handler

func (DeleteListItemsHandlerFunc) Handle

Handle executing the request and returning a response

type DeleteListItemsInternalServerError

type DeleteListItemsInternalServerError struct {
}

DeleteListItemsInternalServerError Server error

swagger:response deleteListItemsInternalServerError

func NewDeleteListItemsInternalServerError

func NewDeleteListItemsInternalServerError() *DeleteListItemsInternalServerError

NewDeleteListItemsInternalServerError creates DeleteListItemsInternalServerError with default headers values

func (*DeleteListItemsInternalServerError) WriteResponse

WriteResponse to the client

type DeleteListItemsNotFound

type DeleteListItemsNotFound struct {
}

DeleteListItemsNotFound List not found

swagger:response deleteListItemsNotFound

func NewDeleteListItemsNotFound

func NewDeleteListItemsNotFound() *DeleteListItemsNotFound

NewDeleteListItemsNotFound creates DeleteListItemsNotFound with default headers values

func (*DeleteListItemsNotFound) WriteResponse

func (o *DeleteListItemsNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeleteListItemsOK

type DeleteListItemsOK struct {

	/*
	  In: Body
	*/
	Payload *apimodels.Revision `json:"body,omitempty"`
}

DeleteListItemsOK Success

swagger:response deleteListItemsOK

func NewDeleteListItemsOK

func NewDeleteListItemsOK() *DeleteListItemsOK

NewDeleteListItemsOK creates DeleteListItemsOK with default headers values

func (*DeleteListItemsOK) SetPayload

func (o *DeleteListItemsOK) SetPayload(payload *apimodels.Revision)

SetPayload sets the payload to the delete list items o k response

func (*DeleteListItemsOK) WithPayload

func (o *DeleteListItemsOK) WithPayload(payload *apimodels.Revision) *DeleteListItemsOK

WithPayload adds the payload to the delete list items o k response

func (*DeleteListItemsOK) WriteResponse

func (o *DeleteListItemsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeleteListItemsParams

type DeleteListItemsParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*
	  Required: true
	  In: path
	*/
	ID int64
	/*
	  Required: true
	  In: query
	  Collection Format: csv
	*/
	Ids []int64
	/*
	  Required: true
	  In: query
	*/
	Rev int64
}

DeleteListItemsParams contains all the bound params for the delete list items operation typically these are obtained from a http.Request

swagger:parameters DeleteListItems

func NewDeleteListItemsParams

func NewDeleteListItemsParams() DeleteListItemsParams

NewDeleteListItemsParams creates a new DeleteListItemsParams object

There are no default values defined in the spec.

func (*DeleteListItemsParams) BindRequest

func (o *DeleteListItemsParams) 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 NewDeleteListItemsParams() beforehand.

type DeleteListItemsURL

type DeleteListItemsURL struct {
	ID int64

	Ids []int64
	Rev int64
	// contains filtered or unexported fields
}

DeleteListItemsURL generates an URL for the delete list items operation

func (*DeleteListItemsURL) Build

func (o *DeleteListItemsURL) Build() (*url.URL, error)

Build a url path and query string

func (*DeleteListItemsURL) BuildFull

func (o *DeleteListItemsURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*DeleteListItemsURL) Must

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

Must is a helper function to panic when the url builder returns an error

func (*DeleteListItemsURL) SetBasePath

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

func (o *DeleteListItemsURL) String() string

String returns the string representation of the path with query string

func (*DeleteListItemsURL) StringFull

func (o *DeleteListItemsURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*DeleteListItemsURL) WithBasePath

func (o *DeleteListItemsURL) WithBasePath(bp string) *DeleteListItemsURL

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 DeleteListNoContent

type DeleteListNoContent struct {
}

DeleteListNoContent Success

swagger:response deleteListNoContent

func NewDeleteListNoContent

func NewDeleteListNoContent() *DeleteListNoContent

NewDeleteListNoContent creates DeleteListNoContent with default headers values

func (*DeleteListNoContent) WriteResponse

func (o *DeleteListNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeleteListNotFound

type DeleteListNotFound struct {
}

DeleteListNotFound List not found

swagger:response deleteListNotFound

func NewDeleteListNotFound

func NewDeleteListNotFound() *DeleteListNotFound

NewDeleteListNotFound creates DeleteListNotFound with default headers values

func (*DeleteListNotFound) WriteResponse

func (o *DeleteListNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeleteListParams

type DeleteListParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*
	  Required: true
	  In: path
	*/
	ID int64
}

DeleteListParams contains all the bound params for the delete list operation typically these are obtained from a http.Request

swagger:parameters DeleteList

func NewDeleteListParams

func NewDeleteListParams() DeleteListParams

NewDeleteListParams creates a new DeleteListParams object

There are no default values defined in the spec.

func (*DeleteListParams) BindRequest

func (o *DeleteListParams) 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 NewDeleteListParams() beforehand.

type DeleteListURL

type DeleteListURL struct {
	ID int64
	// contains filtered or unexported fields
}

DeleteListURL generates an URL for the delete list operation

func (*DeleteListURL) Build

func (o *DeleteListURL) Build() (*url.URL, error)

Build a url path and query string

func (*DeleteListURL) BuildFull

func (o *DeleteListURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*DeleteListURL) Must

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

Must is a helper function to panic when the url builder returns an error

func (*DeleteListURL) SetBasePath

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

func (o *DeleteListURL) String() string

String returns the string representation of the path with query string

func (*DeleteListURL) StringFull

func (o *DeleteListURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*DeleteListURL) WithBasePath

func (o *DeleteListURL) WithBasePath(bp string) *DeleteListURL

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 GetList

type GetList struct {
	Context *middleware.Context
	Handler GetListHandler
}
GetList swagger:route GET /lists/{id} Lists getList

Get list info (title, etc)

func NewGetList

func NewGetList(ctx *middleware.Context, handler GetListHandler) *GetList

NewGetList creates a new http.Handler for the get list operation

func (*GetList) ServeHTTP

func (o *GetList) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type GetListForbidden

type GetListForbidden struct {
}

GetListForbidden Access denied

swagger:response getListForbidden

func NewGetListForbidden

func NewGetListForbidden() *GetListForbidden

NewGetListForbidden creates GetListForbidden with default headers values

func (*GetListForbidden) WriteResponse

func (o *GetListForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetListHandler

type GetListHandler interface {
	Handle(GetListParams, *apimodels.Principal) middleware.Responder
}

GetListHandler interface for that can handle valid get list params

type GetListHandlerFunc

type GetListHandlerFunc func(GetListParams, *apimodels.Principal) middleware.Responder

GetListHandlerFunc turns a function with the right signature into a get list handler

func (GetListHandlerFunc) Handle

Handle executing the request and returning a response

type GetListInternalServerError

type GetListInternalServerError struct {
}

GetListInternalServerError Server error

swagger:response getListInternalServerError

func NewGetListInternalServerError

func NewGetListInternalServerError() *GetListInternalServerError

NewGetListInternalServerError creates GetListInternalServerError with default headers values

func (*GetListInternalServerError) WriteResponse

func (o *GetListInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetListItems

type GetListItems struct {
	Context *middleware.Context
	Handler GetListItemsHandler
}
GetListItems swagger:route GET /lists/{id}/items Items getListItems

Get list items. It client is owner, item.taken_by is omitted.

func NewGetListItems

func NewGetListItems(ctx *middleware.Context, handler GetListItemsHandler) *GetListItems

NewGetListItems creates a new http.Handler for the get list items operation

func (*GetListItems) ServeHTTP

func (o *GetListItems) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type GetListItemsForbidden

type GetListItemsForbidden struct {
}

GetListItemsForbidden Access denied

swagger:response getListItemsForbidden

func NewGetListItemsForbidden

func NewGetListItemsForbidden() *GetListItemsForbidden

NewGetListItemsForbidden creates GetListItemsForbidden with default headers values

func (*GetListItemsForbidden) WriteResponse

func (o *GetListItemsForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetListItemsHandler

type GetListItemsHandler interface {
	Handle(GetListItemsParams, *apimodels.Principal) middleware.Responder
}

GetListItemsHandler interface for that can handle valid get list items params

type GetListItemsHandlerFunc

type GetListItemsHandlerFunc func(GetListItemsParams, *apimodels.Principal) middleware.Responder

GetListItemsHandlerFunc turns a function with the right signature into a get list items handler

func (GetListItemsHandlerFunc) Handle

Handle executing the request and returning a response

type GetListItemsInternalServerError

type GetListItemsInternalServerError struct {
}

GetListItemsInternalServerError Server error

swagger:response getListItemsInternalServerError

func NewGetListItemsInternalServerError

func NewGetListItemsInternalServerError() *GetListItemsInternalServerError

NewGetListItemsInternalServerError creates GetListItemsInternalServerError with default headers values

func (*GetListItemsInternalServerError) WriteResponse

func (o *GetListItemsInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetListItemsNotFound

type GetListItemsNotFound struct {
}

GetListItemsNotFound List not found

swagger:response getListItemsNotFound

func NewGetListItemsNotFound

func NewGetListItemsNotFound() *GetListItemsNotFound

NewGetListItemsNotFound creates GetListItemsNotFound with default headers values

func (*GetListItemsNotFound) WriteResponse

func (o *GetListItemsNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetListItemsOK

type GetListItemsOK struct {

	/*
	  In: Body
	*/
	Payload *GetListItemsOKBody `json:"body,omitempty"`
}

GetListItemsOK Success

swagger:response getListItemsOK

func NewGetListItemsOK

func NewGetListItemsOK() *GetListItemsOK

NewGetListItemsOK creates GetListItemsOK with default headers values

func (*GetListItemsOK) SetPayload

func (o *GetListItemsOK) SetPayload(payload *GetListItemsOKBody)

SetPayload sets the payload to the get list items o k response

func (*GetListItemsOK) WithPayload

func (o *GetListItemsOK) WithPayload(payload *GetListItemsOKBody) *GetListItemsOK

WithPayload adds the payload to the get list items o k response

func (*GetListItemsOK) WriteResponse

func (o *GetListItemsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetListItemsOKBody

type GetListItemsOKBody struct {
	apimodels.Revision

	// items
	Items []*GetListItemsOKBodyItemsItems0 `json:"items"`
}

GetListItemsOKBody get list items o k body

swagger:model GetListItemsOKBody

func (*GetListItemsOKBody) ContextValidate

func (o *GetListItemsOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this get list items o k body based on the context it is used

func (*GetListItemsOKBody) MarshalBinary

func (o *GetListItemsOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (GetListItemsOKBody) MarshalJSON

func (o GetListItemsOKBody) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object to a JSON structure

func (*GetListItemsOKBody) UnmarshalBinary

func (o *GetListItemsOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetListItemsOKBody) UnmarshalJSON

func (o *GetListItemsOKBody) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object from a JSON structure

func (*GetListItemsOKBody) Validate

func (o *GetListItemsOKBody) Validate(formats strfmt.Registry) error

Validate validates this get list items o k body

type GetListItemsOKBodyItemsItems0

type GetListItemsOKBodyItemsItems0 struct {
	apimodels.ID

	apimodels.ListItem
}

GetListItemsOKBodyItemsItems0 get list items o k body items items0

swagger:model GetListItemsOKBodyItemsItems0

func (*GetListItemsOKBodyItemsItems0) ContextValidate

func (o *GetListItemsOKBodyItemsItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this get list items o k body items items0 based on the context it is used

func (*GetListItemsOKBodyItemsItems0) MarshalBinary

func (o *GetListItemsOKBodyItemsItems0) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (GetListItemsOKBodyItemsItems0) MarshalJSON

func (o GetListItemsOKBodyItemsItems0) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object to a JSON structure

func (*GetListItemsOKBodyItemsItems0) UnmarshalBinary

func (o *GetListItemsOKBodyItemsItems0) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetListItemsOKBodyItemsItems0) UnmarshalJSON

func (o *GetListItemsOKBodyItemsItems0) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object from a JSON structure

func (*GetListItemsOKBodyItemsItems0) Validate

func (o *GetListItemsOKBodyItemsItems0) Validate(formats strfmt.Registry) error

Validate validates this get list items o k body items items0

type GetListItemsParams

type GetListItemsParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*Optional access token for a list provided by list owner
	  In: query
	*/
	AccessToken *string
	/*
	  Required: true
	  In: path
	*/
	ID int64
}

GetListItemsParams contains all the bound params for the get list items operation typically these are obtained from a http.Request

swagger:parameters GetListItems

func NewGetListItemsParams

func NewGetListItemsParams() GetListItemsParams

NewGetListItemsParams creates a new GetListItemsParams object

There are no default values defined in the spec.

func (*GetListItemsParams) BindRequest

func (o *GetListItemsParams) 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 NewGetListItemsParams() beforehand.

type GetListItemsURL

type GetListItemsURL struct {
	ID int64

	AccessToken *string
	// contains filtered or unexported fields
}

GetListItemsURL generates an URL for the get list items operation

func (*GetListItemsURL) Build

func (o *GetListItemsURL) Build() (*url.URL, error)

Build a url path and query string

func (*GetListItemsURL) BuildFull

func (o *GetListItemsURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*GetListItemsURL) Must

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

Must is a helper function to panic when the url builder returns an error

func (*GetListItemsURL) SetBasePath

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

func (o *GetListItemsURL) String() string

String returns the string representation of the path with query string

func (*GetListItemsURL) StringFull

func (o *GetListItemsURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*GetListItemsURL) WithBasePath

func (o *GetListItemsURL) WithBasePath(bp string) *GetListItemsURL

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 GetListNotFound

type GetListNotFound struct {
}

GetListNotFound List not found

swagger:response getListNotFound

func NewGetListNotFound

func NewGetListNotFound() *GetListNotFound

NewGetListNotFound creates GetListNotFound with default headers values

func (*GetListNotFound) WriteResponse

func (o *GetListNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetListOK

type GetListOK struct {

	/*
	  In: Body
	*/
	Payload *apimodels.List `json:"body,omitempty"`
}

GetListOK Success

swagger:response getListOK

func NewGetListOK

func NewGetListOK() *GetListOK

NewGetListOK creates GetListOK with default headers values

func (*GetListOK) SetPayload

func (o *GetListOK) SetPayload(payload *apimodels.List)

SetPayload sets the payload to the get list o k response

func (*GetListOK) WithPayload

func (o *GetListOK) WithPayload(payload *apimodels.List) *GetListOK

WithPayload adds the payload to the get list o k response

func (*GetListOK) WriteResponse

func (o *GetListOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetListParams

type GetListParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*Optional access token for a list provided by list owner
	  In: query
	*/
	AccessToken *string
	/*
	  Required: true
	  In: path
	*/
	ID int64
}

GetListParams contains all the bound params for the get list operation typically these are obtained from a http.Request

swagger:parameters GetList

func NewGetListParams

func NewGetListParams() GetListParams

NewGetListParams creates a new GetListParams object

There are no default values defined in the spec.

func (*GetListParams) BindRequest

func (o *GetListParams) 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 NewGetListParams() beforehand.

type GetListToken

type GetListToken struct {
	Context *middleware.Context
	Handler GetListTokenHandler
}
GetListToken swagger:route GET /lists/{id}/token Lists getListToken

Get access token for a list

func NewGetListToken

func NewGetListToken(ctx *middleware.Context, handler GetListTokenHandler) *GetListToken

NewGetListToken creates a new http.Handler for the get list token operation

func (*GetListToken) ServeHTTP

func (o *GetListToken) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type GetListTokenForbidden

type GetListTokenForbidden struct {
}

GetListTokenForbidden Access denied

swagger:response getListTokenForbidden

func NewGetListTokenForbidden

func NewGetListTokenForbidden() *GetListTokenForbidden

NewGetListTokenForbidden creates GetListTokenForbidden with default headers values

func (*GetListTokenForbidden) WriteResponse

func (o *GetListTokenForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetListTokenHandler

type GetListTokenHandler interface {
	Handle(GetListTokenParams, *apimodels.Principal) middleware.Responder
}

GetListTokenHandler interface for that can handle valid get list token params

type GetListTokenHandlerFunc

type GetListTokenHandlerFunc func(GetListTokenParams, *apimodels.Principal) middleware.Responder

GetListTokenHandlerFunc turns a function with the right signature into a get list token handler

func (GetListTokenHandlerFunc) Handle

Handle executing the request and returning a response

type GetListTokenInternalServerError

type GetListTokenInternalServerError struct {
}

GetListTokenInternalServerError Server error

swagger:response getListTokenInternalServerError

func NewGetListTokenInternalServerError

func NewGetListTokenInternalServerError() *GetListTokenInternalServerError

NewGetListTokenInternalServerError creates GetListTokenInternalServerError with default headers values

func (*GetListTokenInternalServerError) WriteResponse

func (o *GetListTokenInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetListTokenNotFound

type GetListTokenNotFound struct {
}

GetListTokenNotFound List not found

swagger:response getListTokenNotFound

func NewGetListTokenNotFound

func NewGetListTokenNotFound() *GetListTokenNotFound

NewGetListTokenNotFound creates GetListTokenNotFound with default headers values

func (*GetListTokenNotFound) WriteResponse

func (o *GetListTokenNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetListTokenOK

type GetListTokenOK struct {

	/*
	  In: Body
	*/
	Payload *GetListTokenOKBody `json:"body,omitempty"`
}

GetListTokenOK Success

swagger:response getListTokenOK

func NewGetListTokenOK

func NewGetListTokenOK() *GetListTokenOK

NewGetListTokenOK creates GetListTokenOK with default headers values

func (*GetListTokenOK) SetPayload

func (o *GetListTokenOK) SetPayload(payload *GetListTokenOKBody)

SetPayload sets the payload to the get list token o k response

func (*GetListTokenOK) WithPayload

func (o *GetListTokenOK) WithPayload(payload *GetListTokenOKBody) *GetListTokenOK

WithPayload adds the payload to the get list token o k response

func (*GetListTokenOK) WriteResponse

func (o *GetListTokenOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetListTokenOKBody

type GetListTokenOKBody struct {

	// token
	Token string `json:"token,omitempty"`
}

GetListTokenOKBody get list token o k body

swagger:model GetListTokenOKBody

func (*GetListTokenOKBody) ContextValidate

func (o *GetListTokenOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this get list token o k body based on context it is used

func (*GetListTokenOKBody) MarshalBinary

func (o *GetListTokenOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetListTokenOKBody) UnmarshalBinary

func (o *GetListTokenOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetListTokenOKBody) Validate

func (o *GetListTokenOKBody) Validate(formats strfmt.Registry) error

Validate validates this get list token o k body

type GetListTokenParams

type GetListTokenParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*
	  Required: true
	  In: path
	*/
	ID int64
}

GetListTokenParams contains all the bound params for the get list token operation typically these are obtained from a http.Request

swagger:parameters GetListToken

func NewGetListTokenParams

func NewGetListTokenParams() GetListTokenParams

NewGetListTokenParams creates a new GetListTokenParams object

There are no default values defined in the spec.

func (*GetListTokenParams) BindRequest

func (o *GetListTokenParams) 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 NewGetListTokenParams() beforehand.

type GetListTokenURL

type GetListTokenURL struct {
	ID int64
	// contains filtered or unexported fields
}

GetListTokenURL generates an URL for the get list token operation

func (*GetListTokenURL) Build

func (o *GetListTokenURL) Build() (*url.URL, error)

Build a url path and query string

func (*GetListTokenURL) BuildFull

func (o *GetListTokenURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*GetListTokenURL) Must

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

Must is a helper function to panic when the url builder returns an error

func (*GetListTokenURL) SetBasePath

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

func (o *GetListTokenURL) String() string

String returns the string representation of the path with query string

func (*GetListTokenURL) StringFull

func (o *GetListTokenURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*GetListTokenURL) WithBasePath

func (o *GetListTokenURL) WithBasePath(bp string) *GetListTokenURL

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 GetListURL

type GetListURL struct {
	ID int64

	AccessToken *string
	// contains filtered or unexported fields
}

GetListURL generates an URL for the get list operation

func (*GetListURL) Build

func (o *GetListURL) Build() (*url.URL, error)

Build a url path and query string

func (*GetListURL) BuildFull

func (o *GetListURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*GetListURL) Must

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

Must is a helper function to panic when the url builder returns an error

func (*GetListURL) SetBasePath

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

func (o *GetListURL) String() string

String returns the string representation of the path with query string

func (*GetListURL) StringFull

func (o *GetListURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*GetListURL) WithBasePath

func (o *GetListURL) WithBasePath(bp string) *GetListURL

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 GetUser

type GetUser struct {
	Context *middleware.Context
	Handler GetUserHandler
}
GetUser swagger:route GET /users/{id} Users getUser

Get user info

func NewGetUser

func NewGetUser(ctx *middleware.Context, handler GetUserHandler) *GetUser

NewGetUser creates a new http.Handler for the get user operation

func (*GetUser) ServeHTTP

func (o *GetUser) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type GetUserHandler

type GetUserHandler interface {
	Handle(GetUserParams, *apimodels.Principal) middleware.Responder
}

GetUserHandler interface for that can handle valid get user params

type GetUserHandlerFunc

type GetUserHandlerFunc func(GetUserParams, *apimodels.Principal) middleware.Responder

GetUserHandlerFunc turns a function with the right signature into a get user handler

func (GetUserHandlerFunc) Handle

Handle executing the request and returning a response

type GetUserInternalServerError

type GetUserInternalServerError struct {
}

GetUserInternalServerError Server error

swagger:response getUserInternalServerError

func NewGetUserInternalServerError

func NewGetUserInternalServerError() *GetUserInternalServerError

NewGetUserInternalServerError creates GetUserInternalServerError with default headers values

func (*GetUserInternalServerError) WriteResponse

func (o *GetUserInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetUserLists

type GetUserLists struct {
	Context *middleware.Context
	Handler GetUserListsHandler
}
GetUserLists swagger:route GET /lists Lists getUserLists

Get user list IDs (visible by client)

func NewGetUserLists

func NewGetUserLists(ctx *middleware.Context, handler GetUserListsHandler) *GetUserLists

NewGetUserLists creates a new http.Handler for the get user lists operation

func (*GetUserLists) ServeHTTP

func (o *GetUserLists) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type GetUserListsHandler

type GetUserListsHandler interface {
	Handle(GetUserListsParams, *apimodels.Principal) middleware.Responder
}

GetUserListsHandler interface for that can handle valid get user lists params

type GetUserListsHandlerFunc

type GetUserListsHandlerFunc func(GetUserListsParams, *apimodels.Principal) middleware.Responder

GetUserListsHandlerFunc turns a function with the right signature into a get user lists handler

func (GetUserListsHandlerFunc) Handle

Handle executing the request and returning a response

type GetUserListsInternalServerError

type GetUserListsInternalServerError struct {
}

GetUserListsInternalServerError Server error

swagger:response getUserListsInternalServerError

func NewGetUserListsInternalServerError

func NewGetUserListsInternalServerError() *GetUserListsInternalServerError

NewGetUserListsInternalServerError creates GetUserListsInternalServerError with default headers values

func (*GetUserListsInternalServerError) WriteResponse

func (o *GetUserListsInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetUserListsNotFound

type GetUserListsNotFound struct {
}

GetUserListsNotFound User not found

swagger:response getUserListsNotFound

func NewGetUserListsNotFound

func NewGetUserListsNotFound() *GetUserListsNotFound

NewGetUserListsNotFound creates GetUserListsNotFound with default headers values

func (*GetUserListsNotFound) WriteResponse

func (o *GetUserListsNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetUserListsOK

type GetUserListsOK struct {

	/*
	  Unique: true
	  In: Body
	*/
	Payload []int64 `json:"body,omitempty"`
}

GetUserListsOK Success

swagger:response getUserListsOK

func NewGetUserListsOK

func NewGetUserListsOK() *GetUserListsOK

NewGetUserListsOK creates GetUserListsOK with default headers values

func (*GetUserListsOK) SetPayload

func (o *GetUserListsOK) SetPayload(payload []int64)

SetPayload sets the payload to the get user lists o k response

func (*GetUserListsOK) WithPayload

func (o *GetUserListsOK) WithPayload(payload []int64) *GetUserListsOK

WithPayload adds the payload to the get user lists o k response

func (*GetUserListsOK) WriteResponse

func (o *GetUserListsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetUserListsParams

type GetUserListsParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*ID of user in question. If empty, client ID is used.
	  In: query
	*/
	UserID *int64
}

GetUserListsParams contains all the bound params for the get user lists operation typically these are obtained from a http.Request

swagger:parameters GetUserLists

func NewGetUserListsParams

func NewGetUserListsParams() GetUserListsParams

NewGetUserListsParams creates a new GetUserListsParams object

There are no default values defined in the spec.

func (*GetUserListsParams) BindRequest

func (o *GetUserListsParams) 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 NewGetUserListsParams() beforehand.

type GetUserListsURL

type GetUserListsURL struct {
	UserID *int64
	// contains filtered or unexported fields
}

GetUserListsURL generates an URL for the get user lists operation

func (*GetUserListsURL) Build

func (o *GetUserListsURL) Build() (*url.URL, error)

Build a url path and query string

func (*GetUserListsURL) BuildFull

func (o *GetUserListsURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*GetUserListsURL) Must

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

Must is a helper function to panic when the url builder returns an error

func (*GetUserListsURL) SetBasePath

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

func (o *GetUserListsURL) String() string

String returns the string representation of the path with query string

func (*GetUserListsURL) StringFull

func (o *GetUserListsURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*GetUserListsURL) WithBasePath

func (o *GetUserListsURL) WithBasePath(bp string) *GetUserListsURL

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 GetUserNotFound

type GetUserNotFound struct {
}

GetUserNotFound User not found

swagger:response getUserNotFound

func NewGetUserNotFound

func NewGetUserNotFound() *GetUserNotFound

NewGetUserNotFound creates GetUserNotFound with default headers values

func (*GetUserNotFound) WriteResponse

func (o *GetUserNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetUserOK

type GetUserOK struct {

	/*
	  In: Body
	*/
	Payload *apimodels.User `json:"body,omitempty"`
}

GetUserOK Success

swagger:response getUserOK

func NewGetUserOK

func NewGetUserOK() *GetUserOK

NewGetUserOK creates GetUserOK with default headers values

func (*GetUserOK) SetPayload

func (o *GetUserOK) SetPayload(payload *apimodels.User)

SetPayload sets the payload to the get user o k response

func (*GetUserOK) WithPayload

func (o *GetUserOK) WithPayload(payload *apimodels.User) *GetUserOK

WithPayload adds the payload to the get user o k response

func (*GetUserOK) WriteResponse

func (o *GetUserOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetUserParams

type GetUserParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*
	  Required: true
	  In: path
	*/
	ID int64
}

GetUserParams contains all the bound params for the get user operation typically these are obtained from a http.Request

swagger:parameters GetUser

func NewGetUserParams

func NewGetUserParams() GetUserParams

NewGetUserParams creates a new GetUserParams object

There are no default values defined in the spec.

func (*GetUserParams) BindRequest

func (o *GetUserParams) 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 NewGetUserParams() beforehand.

type GetUserURL

type GetUserURL struct {
	ID int64
	// contains filtered or unexported fields
}

GetUserURL generates an URL for the get user operation

func (*GetUserURL) Build

func (o *GetUserURL) Build() (*url.URL, error)

Build a url path and query string

func (*GetUserURL) BuildFull

func (o *GetUserURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*GetUserURL) Must

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

Must is a helper function to panic when the url builder returns an error

func (*GetUserURL) SetBasePath

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

func (o *GetUserURL) String() string

String returns the string representation of the path with query string

func (*GetUserURL) StringFull

func (o *GetUserURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*GetUserURL) WithBasePath

func (o *GetUserURL) WithBasePath(bp string) *GetUserURL

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 Login

type Login struct {
	Context *middleware.Context
	Handler LoginHandler
}
Login swagger:route POST /auth/login Auth login

Log in via password auth

func NewLogin

func NewLogin(ctx *middleware.Context, handler LoginHandler) *Login

NewLogin creates a new http.Handler for the login operation

func (*Login) ServeHTTP

func (o *Login) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type LoginHandler

type LoginHandler interface {
	Handle(LoginParams) middleware.Responder
}

LoginHandler interface for that can handle valid login params

type LoginHandlerFunc

type LoginHandlerFunc func(LoginParams) middleware.Responder

LoginHandlerFunc turns a function with the right signature into a login handler

func (LoginHandlerFunc) Handle

Handle executing the request and returning a response

type LoginInternalServerError

type LoginInternalServerError struct {
}

LoginInternalServerError Server error

swagger:response loginInternalServerError

func NewLoginInternalServerError

func NewLoginInternalServerError() *LoginInternalServerError

NewLoginInternalServerError creates LoginInternalServerError with default headers values

func (*LoginInternalServerError) WriteResponse

func (o *LoginInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type LoginOK

type LoginOK struct {

	/*
	  In: Body
	*/
	Payload *LoginOKBody `json:"body,omitempty"`
}

LoginOK Login result. If any part of credentials is wrong, ok=false is returned without revealing the exact reason.

swagger:response loginOK

func NewLoginOK

func NewLoginOK() *LoginOK

NewLoginOK creates LoginOK with default headers values

func (*LoginOK) SetPayload

func (o *LoginOK) SetPayload(payload *LoginOKBody)

SetPayload sets the payload to the login o k response

func (*LoginOK) WithPayload

func (o *LoginOK) WithPayload(payload *LoginOKBody) *LoginOK

WithPayload adds the payload to the login o k response

func (*LoginOK) WriteResponse

func (o *LoginOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type LoginOKBody

type LoginOKBody struct {

	// ok
	// Required: true
	Ok *bool `json:"ok"`

	// token
	Token string `json:"token,omitempty"`
}

LoginOKBody login o k body

swagger:model LoginOKBody

func (*LoginOKBody) ContextValidate

func (o *LoginOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this login o k body based on context it is used

func (*LoginOKBody) MarshalBinary

func (o *LoginOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*LoginOKBody) UnmarshalBinary

func (o *LoginOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*LoginOKBody) Validate

func (o *LoginOKBody) Validate(formats strfmt.Registry) error

Validate validates this login o k body

type LoginParams

type LoginParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*
	  Required: true
	  In: body
	*/
	Credentials *apimodels.UserCredentials
}

LoginParams contains all the bound params for the login operation typically these are obtained from a http.Request

swagger:parameters Login

func NewLoginParams

func NewLoginParams() LoginParams

NewLoginParams creates a new LoginParams object

There are no default values defined in the spec.

func (*LoginParams) BindRequest

func (o *LoginParams) 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 NewLoginParams() beforehand.

type LoginURL

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

LoginURL generates an URL for the login operation

func (*LoginURL) Build

func (o *LoginURL) Build() (*url.URL, error)

Build a url path and query string

func (*LoginURL) BuildFull

func (o *LoginURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*LoginURL) Must

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

Must is a helper function to panic when the url builder returns an error

func (*LoginURL) SetBasePath

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

func (o *LoginURL) String() string

String returns the string representation of the path with query string

func (*LoginURL) StringFull

func (o *LoginURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*LoginURL) WithBasePath

func (o *LoginURL) WithBasePath(bp string) *LoginURL

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 OAuthLogin

type OAuthLogin struct {
	Context *middleware.Context
	Handler OAuthLoginHandler
}
OAuthLogin swagger:route POST /oauth/login Auth oAuthLogin

Log in using OAuth token

func NewOAuthLogin

func NewOAuthLogin(ctx *middleware.Context, handler OAuthLoginHandler) *OAuthLogin

NewOAuthLogin creates a new http.Handler for the o auth login operation

func (*OAuthLogin) ServeHTTP

func (o *OAuthLogin) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type OAuthLoginBadRequest

type OAuthLoginBadRequest struct {
}

OAuthLoginBadRequest Invalid credentials

swagger:response oAuthLoginBadRequest

func NewOAuthLoginBadRequest

func NewOAuthLoginBadRequest() *OAuthLoginBadRequest

NewOAuthLoginBadRequest creates OAuthLoginBadRequest with default headers values

func (*OAuthLoginBadRequest) WriteResponse

func (o *OAuthLoginBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type OAuthLoginHandler

type OAuthLoginHandler interface {
	Handle(OAuthLoginParams) middleware.Responder
}

OAuthLoginHandler interface for that can handle valid o auth login params

type OAuthLoginHandlerFunc

type OAuthLoginHandlerFunc func(OAuthLoginParams) middleware.Responder

OAuthLoginHandlerFunc turns a function with the right signature into a o auth login handler

func (OAuthLoginHandlerFunc) Handle

Handle executing the request and returning a response

type OAuthLoginInternalServerError

type OAuthLoginInternalServerError struct {
}

OAuthLoginInternalServerError Server error

swagger:response oAuthLoginInternalServerError

func NewOAuthLoginInternalServerError

func NewOAuthLoginInternalServerError() *OAuthLoginInternalServerError

NewOAuthLoginInternalServerError creates OAuthLoginInternalServerError with default headers values

func (*OAuthLoginInternalServerError) WriteResponse

func (o *OAuthLoginInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type OAuthLoginNotFound

type OAuthLoginNotFound struct {
}

OAuthLoginNotFound User for OAuth token not found

swagger:response oAuthLoginNotFound

func NewOAuthLoginNotFound

func NewOAuthLoginNotFound() *OAuthLoginNotFound

NewOAuthLoginNotFound creates OAuthLoginNotFound with default headers values

func (*OAuthLoginNotFound) WriteResponse

func (o *OAuthLoginNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type OAuthLoginOK

type OAuthLoginOK struct {

	/*
	  In: Body
	*/
	Payload *OAuthLoginOKBody `json:"body,omitempty"`
}

OAuthLoginOK Success

swagger:response oAuthLoginOK

func NewOAuthLoginOK

func NewOAuthLoginOK() *OAuthLoginOK

NewOAuthLoginOK creates OAuthLoginOK with default headers values

func (*OAuthLoginOK) SetPayload

func (o *OAuthLoginOK) SetPayload(payload *OAuthLoginOKBody)

SetPayload sets the payload to the o auth login o k response

func (*OAuthLoginOK) WithPayload

func (o *OAuthLoginOK) WithPayload(payload *OAuthLoginOKBody) *OAuthLoginOK

WithPayload adds the payload to the o auth login o k response

func (*OAuthLoginOK) WriteResponse

func (o *OAuthLoginOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type OAuthLoginOKBody

type OAuthLoginOKBody struct {

	// token
	// Required: true
	Token *string `json:"token"`
}

OAuthLoginOKBody o auth login o k body

swagger:model OAuthLoginOKBody

func (*OAuthLoginOKBody) ContextValidate

func (o *OAuthLoginOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this o auth login o k body based on context it is used

func (*OAuthLoginOKBody) MarshalBinary

func (o *OAuthLoginOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OAuthLoginOKBody) UnmarshalBinary

func (o *OAuthLoginOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OAuthLoginOKBody) Validate

func (o *OAuthLoginOKBody) Validate(formats strfmt.Registry) error

Validate validates this o auth login o k body

type OAuthLoginParams

type OAuthLoginParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*
	  Required: true
	  In: body
	*/
	Body *apimodels.OAuthCredentials
}

OAuthLoginParams contains all the bound params for the o auth login operation typically these are obtained from a http.Request

swagger:parameters OAuthLogin

func NewOAuthLoginParams

func NewOAuthLoginParams() OAuthLoginParams

NewOAuthLoginParams creates a new OAuthLoginParams object

There are no default values defined in the spec.

func (*OAuthLoginParams) BindRequest

func (o *OAuthLoginParams) 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 NewOAuthLoginParams() beforehand.

type OAuthLoginURL

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

OAuthLoginURL generates an URL for the o auth login operation

func (*OAuthLoginURL) Build

func (o *OAuthLoginURL) Build() (*url.URL, error)

Build a url path and query string

func (*OAuthLoginURL) BuildFull

func (o *OAuthLoginURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*OAuthLoginURL) Must

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

Must is a helper function to panic when the url builder returns an error

func (*OAuthLoginURL) SetBasePath

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

func (o *OAuthLoginURL) String() string

String returns the string representation of the path with query string

func (*OAuthLoginURL) StringFull

func (o *OAuthLoginURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*OAuthLoginURL) WithBasePath

func (o *OAuthLoginURL) WithBasePath(bp string) *OAuthLoginURL

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 OAuthRegister

type OAuthRegister struct {
	Context *middleware.Context
	Handler OAuthRegisterHandler
}
OAuthRegister swagger:route POST /oauth/register Auth oAuthRegister

Register new OAuth user

func NewOAuthRegister

func NewOAuthRegister(ctx *middleware.Context, handler OAuthRegisterHandler) *OAuthRegister

NewOAuthRegister creates a new http.Handler for the o auth register operation

func (*OAuthRegister) ServeHTTP

func (o *OAuthRegister) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type OAuthRegisterBody

type OAuthRegisterBody struct {

	// username
	// Required: true
	Username *apimodels.UserName `json:"username"`

	apimodels.OAuthCredentials
}

OAuthRegisterBody o auth register body

swagger:model OAuthRegisterBody

func (*OAuthRegisterBody) ContextValidate

func (o *OAuthRegisterBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this o auth register body based on the context it is used

func (*OAuthRegisterBody) MarshalBinary

func (o *OAuthRegisterBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (OAuthRegisterBody) MarshalJSON

func (o OAuthRegisterBody) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object to a JSON structure

func (*OAuthRegisterBody) UnmarshalBinary

func (o *OAuthRegisterBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OAuthRegisterBody) UnmarshalJSON

func (o *OAuthRegisterBody) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object from a JSON structure

func (*OAuthRegisterBody) Validate

func (o *OAuthRegisterBody) Validate(formats strfmt.Registry) error

Validate validates this o auth register body

type OAuthRegisterHandler

type OAuthRegisterHandler interface {
	Handle(OAuthRegisterParams) middleware.Responder
}

OAuthRegisterHandler interface for that can handle valid o auth register params

type OAuthRegisterHandlerFunc

type OAuthRegisterHandlerFunc func(OAuthRegisterParams) middleware.Responder

OAuthRegisterHandlerFunc turns a function with the right signature into a o auth register handler

func (OAuthRegisterHandlerFunc) Handle

Handle executing the request and returning a response

type OAuthRegisterInternalServerError

type OAuthRegisterInternalServerError struct {
}

OAuthRegisterInternalServerError Server error

swagger:response oAuthRegisterInternalServerError

func NewOAuthRegisterInternalServerError

func NewOAuthRegisterInternalServerError() *OAuthRegisterInternalServerError

NewOAuthRegisterInternalServerError creates OAuthRegisterInternalServerError with default headers values

func (*OAuthRegisterInternalServerError) WriteResponse

func (o *OAuthRegisterInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type OAuthRegisterOK

type OAuthRegisterOK struct {

	/*
	  In: Body
	*/
	Payload *OAuthRegisterOKBody `json:"body,omitempty"`
}

OAuthRegisterOK Registration result

swagger:response oAuthRegisterOK

func NewOAuthRegisterOK

func NewOAuthRegisterOK() *OAuthRegisterOK

NewOAuthRegisterOK creates OAuthRegisterOK with default headers values

func (*OAuthRegisterOK) SetPayload

func (o *OAuthRegisterOK) SetPayload(payload *OAuthRegisterOKBody)

SetPayload sets the payload to the o auth register o k response

func (*OAuthRegisterOK) WithPayload

func (o *OAuthRegisterOK) WithPayload(payload *OAuthRegisterOKBody) *OAuthRegisterOK

WithPayload adds the payload to the o auth register o k response

func (*OAuthRegisterOK) WriteResponse

func (o *OAuthRegisterOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type OAuthRegisterOKBody

type OAuthRegisterOKBody struct {

	// error
	Error string `json:"error,omitempty"`

	// ok
	// Required: true
	Ok *bool `json:"ok"`

	// user
	User *apimodels.ID `json:"user,omitempty"`
}

OAuthRegisterOKBody o auth register o k body

swagger:model OAuthRegisterOKBody

func (*OAuthRegisterOKBody) ContextValidate

func (o *OAuthRegisterOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this o auth register o k body based on the context it is used

func (*OAuthRegisterOKBody) MarshalBinary

func (o *OAuthRegisterOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OAuthRegisterOKBody) UnmarshalBinary

func (o *OAuthRegisterOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OAuthRegisterOKBody) Validate

func (o *OAuthRegisterOKBody) Validate(formats strfmt.Registry) error

Validate validates this o auth register o k body

type OAuthRegisterParams

type OAuthRegisterParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*
	  Required: true
	  In: body
	*/
	Body OAuthRegisterBody
}

OAuthRegisterParams contains all the bound params for the o auth register operation typically these are obtained from a http.Request

swagger:parameters OAuthRegister

func NewOAuthRegisterParams

func NewOAuthRegisterParams() OAuthRegisterParams

NewOAuthRegisterParams creates a new OAuthRegisterParams object

There are no default values defined in the spec.

func (*OAuthRegisterParams) BindRequest

func (o *OAuthRegisterParams) 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 NewOAuthRegisterParams() beforehand.

type OAuthRegisterURL

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

OAuthRegisterURL generates an URL for the o auth register operation

func (*OAuthRegisterURL) Build

func (o *OAuthRegisterURL) Build() (*url.URL, error)

Build a url path and query string

func (*OAuthRegisterURL) BuildFull

func (o *OAuthRegisterURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*OAuthRegisterURL) Must

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

Must is a helper function to panic when the url builder returns an error

func (*OAuthRegisterURL) SetBasePath

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

func (o *OAuthRegisterURL) String() string

String returns the string representation of the path with query string

func (*OAuthRegisterURL) StringFull

func (o *OAuthRegisterURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*OAuthRegisterURL) WithBasePath

func (o *OAuthRegisterURL) WithBasePath(bp string) *OAuthRegisterURL

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 PatchList

type PatchList struct {
	Context *middleware.Context
	Handler PatchListHandler
}
PatchList swagger:route PATCH /lists/{id} Lists patchList

Edit existing list (not list items)

func NewPatchList

func NewPatchList(ctx *middleware.Context, handler PatchListHandler) *PatchList

NewPatchList creates a new http.Handler for the patch list operation

func (*PatchList) ServeHTTP

func (o *PatchList) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type PatchListBody

type PatchListBody struct {
	apimodels.List
}

PatchListBody patch list body

swagger:model PatchListBody

func (*PatchListBody) ContextValidate

func (o *PatchListBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this patch list body based on the context it is used

func (*PatchListBody) MarshalBinary

func (o *PatchListBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (PatchListBody) MarshalJSON

func (o PatchListBody) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object to a JSON structure

func (*PatchListBody) UnmarshalBinary

func (o *PatchListBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PatchListBody) UnmarshalJSON

func (o *PatchListBody) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object from a JSON structure

func (*PatchListBody) Validate

func (o *PatchListBody) Validate(formats strfmt.Registry) error

Validate validates this patch list body

type PatchListForbidden

type PatchListForbidden struct {
}

PatchListForbidden Access denied

swagger:response patchListForbidden

func NewPatchListForbidden

func NewPatchListForbidden() *PatchListForbidden

NewPatchListForbidden creates PatchListForbidden with default headers values

func (*PatchListForbidden) WriteResponse

func (o *PatchListForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type PatchListHandler

type PatchListHandler interface {
	Handle(PatchListParams, *apimodels.Principal) middleware.Responder
}

PatchListHandler interface for that can handle valid patch list params

type PatchListHandlerFunc

type PatchListHandlerFunc func(PatchListParams, *apimodels.Principal) middleware.Responder

PatchListHandlerFunc turns a function with the right signature into a patch list handler

func (PatchListHandlerFunc) Handle

Handle executing the request and returning a response

type PatchListInternalServerError

type PatchListInternalServerError struct {
}

PatchListInternalServerError Server error

swagger:response patchListInternalServerError

func NewPatchListInternalServerError

func NewPatchListInternalServerError() *PatchListInternalServerError

NewPatchListInternalServerError creates PatchListInternalServerError with default headers values

func (*PatchListInternalServerError) WriteResponse

func (o *PatchListInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type PatchListNoContent

type PatchListNoContent struct {
}

PatchListNoContent Success

swagger:response patchListNoContent

func NewPatchListNoContent

func NewPatchListNoContent() *PatchListNoContent

NewPatchListNoContent creates PatchListNoContent with default headers values

func (*PatchListNoContent) WriteResponse

func (o *PatchListNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type PatchListNotFound

type PatchListNotFound struct {
}

PatchListNotFound List not found

swagger:response patchListNotFound

func NewPatchListNotFound

func NewPatchListNotFound() *PatchListNotFound

NewPatchListNotFound creates PatchListNotFound with default headers values

func (*PatchListNotFound) WriteResponse

func (o *PatchListNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type PatchListParams

type PatchListParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*
	  Required: true
	  In: path
	*/
	ID int64
	/*
	  Required: true
	  In: body
	*/
	List PatchListBody
}

PatchListParams contains all the bound params for the patch list operation typically these are obtained from a http.Request

swagger:parameters PatchList

func NewPatchListParams

func NewPatchListParams() PatchListParams

NewPatchListParams creates a new PatchListParams object

There are no default values defined in the spec.

func (*PatchListParams) BindRequest

func (o *PatchListParams) 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 NewPatchListParams() beforehand.

type PatchListURL

type PatchListURL struct {
	ID int64
	// contains filtered or unexported fields
}

PatchListURL generates an URL for the patch list operation

func (*PatchListURL) Build

func (o *PatchListURL) Build() (*url.URL, error)

Build a url path and query string

func (*PatchListURL) BuildFull

func (o *PatchListURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*PatchListURL) Must

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

Must is a helper function to panic when the url builder returns an error

func (*PatchListURL) SetBasePath

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

func (o *PatchListURL) String() string

String returns the string representation of the path with query string

func (*PatchListURL) StringFull

func (o *PatchListURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*PatchListURL) WithBasePath

func (o *PatchListURL) WithBasePath(bp string) *PatchListURL

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 PatchUser

type PatchUser struct {
	Context *middleware.Context
	Handler PatchUserHandler
}
PatchUser swagger:route PATCH /users/{id} Users patchUser

Edit user info

func NewPatchUser

func NewPatchUser(ctx *middleware.Context, handler PatchUserHandler) *PatchUser

NewPatchUser creates a new http.Handler for the patch user operation

func (*PatchUser) ServeHTTP

func (o *PatchUser) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type PatchUserForbidden

type PatchUserForbidden struct {
}

PatchUserForbidden Access denied

swagger:response patchUserForbidden

func NewPatchUserForbidden

func NewPatchUserForbidden() *PatchUserForbidden

NewPatchUserForbidden creates PatchUserForbidden with default headers values

func (*PatchUserForbidden) WriteResponse

func (o *PatchUserForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type PatchUserHandler

type PatchUserHandler interface {
	Handle(PatchUserParams, *apimodels.Principal) middleware.Responder
}

PatchUserHandler interface for that can handle valid patch user params

type PatchUserHandlerFunc

type PatchUserHandlerFunc func(PatchUserParams, *apimodels.Principal) middleware.Responder

PatchUserHandlerFunc turns a function with the right signature into a patch user handler

func (PatchUserHandlerFunc) Handle

Handle executing the request and returning a response

type PatchUserInternalServerError

type PatchUserInternalServerError struct {
}

PatchUserInternalServerError Server error

swagger:response patchUserInternalServerError

func NewPatchUserInternalServerError

func NewPatchUserInternalServerError() *PatchUserInternalServerError

NewPatchUserInternalServerError creates PatchUserInternalServerError with default headers values

func (*PatchUserInternalServerError) WriteResponse

func (o *PatchUserInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type PatchUserNoContent

type PatchUserNoContent struct {
}

PatchUserNoContent Success

swagger:response patchUserNoContent

func NewPatchUserNoContent

func NewPatchUserNoContent() *PatchUserNoContent

NewPatchUserNoContent creates PatchUserNoContent with default headers values

func (*PatchUserNoContent) WriteResponse

func (o *PatchUserNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type PatchUserParams

type PatchUserParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*
	  Required: true
	  In: path
	*/
	ID int64
	/*
	  Required: true
	  In: body
	*/
	User *apimodels.User
}

PatchUserParams contains all the bound params for the patch user operation typically these are obtained from a http.Request

swagger:parameters PatchUser

func NewPatchUserParams

func NewPatchUserParams() PatchUserParams

NewPatchUserParams creates a new PatchUserParams object

There are no default values defined in the spec.

func (*PatchUserParams) BindRequest

func (o *PatchUserParams) 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 NewPatchUserParams() beforehand.

type PatchUserURL

type PatchUserURL struct {
	ID int64
	// contains filtered or unexported fields
}

PatchUserURL generates an URL for the patch user operation

func (*PatchUserURL) Build

func (o *PatchUserURL) Build() (*url.URL, error)

Build a url path and query string

func (*PatchUserURL) BuildFull

func (o *PatchUserURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*PatchUserURL) Must

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

Must is a helper function to panic when the url builder returns an error

func (*PatchUserURL) SetBasePath

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

func (o *PatchUserURL) String() string

String returns the string representation of the path with query string

func (*PatchUserURL) StringFull

func (o *PatchUserURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*PatchUserURL) WithBasePath

func (o *PatchUserURL) WithBasePath(bp string) *PatchUserURL

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 PostItemTaken

type PostItemTaken struct {
	Context *middleware.Context
	Handler PostItemTakenHandler
}
PostItemTaken swagger:route POST /lists/{id}/items/{item_id}/taken_by Items postItemTaken

Mark list item as taken

func NewPostItemTaken

func NewPostItemTaken(ctx *middleware.Context, handler PostItemTakenHandler) *PostItemTaken

NewPostItemTaken creates a new http.Handler for the post item taken operation

func (*PostItemTaken) ServeHTTP

func (o *PostItemTaken) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type PostItemTakenConflict

type PostItemTakenConflict struct {

	/*
	  In: Body
	*/
	Payload *PostItemTakenConflictBody `json:"body,omitempty"`
}

PostItemTakenConflict Either an outdated revision, or item is already taken. See response.reason.

swagger:response postItemTakenConflict

func NewPostItemTakenConflict

func NewPostItemTakenConflict() *PostItemTakenConflict

NewPostItemTakenConflict creates PostItemTakenConflict with default headers values

func (*PostItemTakenConflict) SetPayload

func (o *PostItemTakenConflict) SetPayload(payload *PostItemTakenConflictBody)

SetPayload sets the payload to the post item taken conflict response

func (*PostItemTakenConflict) WithPayload

WithPayload adds the payload to the post item taken conflict response

func (*PostItemTakenConflict) WriteResponse

func (o *PostItemTakenConflict) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type PostItemTakenConflictBody

type PostItemTakenConflictBody struct {

	// reason
	// Required: true
	// Enum: [outdated revision already taken]
	Reason *string `json:"reason"`

	// taken by
	TakenBy int64 `json:"taken_by,omitempty"`
}

PostItemTakenConflictBody post item taken conflict body

swagger:model PostItemTakenConflictBody

func (*PostItemTakenConflictBody) ContextValidate

func (o *PostItemTakenConflictBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this post item taken conflict body based on context it is used

func (*PostItemTakenConflictBody) MarshalBinary

func (o *PostItemTakenConflictBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PostItemTakenConflictBody) UnmarshalBinary

func (o *PostItemTakenConflictBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PostItemTakenConflictBody) Validate

func (o *PostItemTakenConflictBody) Validate(formats strfmt.Registry) error

Validate validates this post item taken conflict body

type PostItemTakenForbidden

type PostItemTakenForbidden struct {
}

PostItemTakenForbidden Access denied (this includes taking items from the list owned by the client)

swagger:response postItemTakenForbidden

func NewPostItemTakenForbidden

func NewPostItemTakenForbidden() *PostItemTakenForbidden

NewPostItemTakenForbidden creates PostItemTakenForbidden with default headers values

func (*PostItemTakenForbidden) WriteResponse

func (o *PostItemTakenForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type PostItemTakenHandler

type PostItemTakenHandler interface {
	Handle(PostItemTakenParams, *apimodels.Principal) middleware.Responder
}

PostItemTakenHandler interface for that can handle valid post item taken params

type PostItemTakenHandlerFunc

type PostItemTakenHandlerFunc func(PostItemTakenParams, *apimodels.Principal) middleware.Responder

PostItemTakenHandlerFunc turns a function with the right signature into a post item taken handler

func (PostItemTakenHandlerFunc) Handle

Handle executing the request and returning a response

type PostItemTakenInternalServerError

type PostItemTakenInternalServerError struct {
}

PostItemTakenInternalServerError Server error

swagger:response postItemTakenInternalServerError

func NewPostItemTakenInternalServerError

func NewPostItemTakenInternalServerError() *PostItemTakenInternalServerError

NewPostItemTakenInternalServerError creates PostItemTakenInternalServerError with default headers values

func (*PostItemTakenInternalServerError) WriteResponse

func (o *PostItemTakenInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type PostItemTakenNoContent

type PostItemTakenNoContent struct {
}

PostItemTakenNoContent Success

swagger:response postItemTakenNoContent

func NewPostItemTakenNoContent

func NewPostItemTakenNoContent() *PostItemTakenNoContent

NewPostItemTakenNoContent creates PostItemTakenNoContent with default headers values

func (*PostItemTakenNoContent) WriteResponse

func (o *PostItemTakenNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type PostItemTakenNotFound

type PostItemTakenNotFound struct {
}

PostItemTakenNotFound List not found

swagger:response postItemTakenNotFound

func NewPostItemTakenNotFound

func NewPostItemTakenNotFound() *PostItemTakenNotFound

NewPostItemTakenNotFound creates PostItemTakenNotFound with default headers values

func (*PostItemTakenNotFound) WriteResponse

func (o *PostItemTakenNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type PostItemTakenParams

type PostItemTakenParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*Optional access token for a list provided by list owner
	  In: query
	*/
	AccessToken *string
	/*
	  Required: true
	  In: body
	*/
	Body *apimodels.Revision
	/*
	  Required: true
	  In: path
	*/
	ID int64
	/*
	  Required: true
	  In: path
	*/
	ItemID int64
}

PostItemTakenParams contains all the bound params for the post item taken operation typically these are obtained from a http.Request

swagger:parameters PostItemTaken

func NewPostItemTakenParams

func NewPostItemTakenParams() PostItemTakenParams

NewPostItemTakenParams creates a new PostItemTakenParams object

There are no default values defined in the spec.

func (*PostItemTakenParams) BindRequest

func (o *PostItemTakenParams) 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 NewPostItemTakenParams() beforehand.

type PostItemTakenURL

type PostItemTakenURL struct {
	ID     int64
	ItemID int64

	AccessToken *string
	// contains filtered or unexported fields
}

PostItemTakenURL generates an URL for the post item taken operation

func (*PostItemTakenURL) Build

func (o *PostItemTakenURL) Build() (*url.URL, error)

Build a url path and query string

func (*PostItemTakenURL) BuildFull

func (o *PostItemTakenURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*PostItemTakenURL) Must

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

Must is a helper function to panic when the url builder returns an error

func (*PostItemTakenURL) SetBasePath

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

func (o *PostItemTakenURL) String() string

String returns the string representation of the path with query string

func (*PostItemTakenURL) StringFull

func (o *PostItemTakenURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*PostItemTakenURL) WithBasePath

func (o *PostItemTakenURL) WithBasePath(bp string) *PostItemTakenURL

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 PostList

type PostList struct {
	Context *middleware.Context
	Handler PostListHandler
}
PostList swagger:route POST /lists Lists postList

Create new list

func NewPostList

func NewPostList(ctx *middleware.Context, handler PostListHandler) *PostList

NewPostList creates a new http.Handler for the post list operation

func (*PostList) ServeHTTP

func (o *PostList) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type PostListBody

type PostListBody struct {
	apimodels.List

	// items
	Items []*apimodels.ListItem `json:"items"`
}

PostListBody post list body

swagger:model PostListBody

func (*PostListBody) ContextValidate

func (o *PostListBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this post list body based on the context it is used

func (*PostListBody) MarshalBinary

func (o *PostListBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (PostListBody) MarshalJSON

func (o PostListBody) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object to a JSON structure

func (*PostListBody) UnmarshalBinary

func (o *PostListBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PostListBody) UnmarshalJSON

func (o *PostListBody) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object from a JSON structure

func (*PostListBody) Validate

func (o *PostListBody) Validate(formats strfmt.Registry) error

Validate validates this post list body

type PostListCreated

type PostListCreated struct {

	/*
	  In: Body
	*/
	Payload *PostListCreatedBody `json:"body,omitempty"`
}

PostListCreated Success

swagger:response postListCreated

func NewPostListCreated

func NewPostListCreated() *PostListCreated

NewPostListCreated creates PostListCreated with default headers values

func (*PostListCreated) SetPayload

func (o *PostListCreated) SetPayload(payload *PostListCreatedBody)

SetPayload sets the payload to the post list created response

func (*PostListCreated) WithPayload

func (o *PostListCreated) WithPayload(payload *PostListCreatedBody) *PostListCreated

WithPayload adds the payload to the post list created response

func (*PostListCreated) WriteResponse

func (o *PostListCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type PostListCreatedBody

type PostListCreatedBody struct {
	apimodels.Revision

	apimodels.ID
}

PostListCreatedBody post list created body

swagger:model PostListCreatedBody

func (*PostListCreatedBody) ContextValidate

func (o *PostListCreatedBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this post list created body based on the context it is used

func (*PostListCreatedBody) MarshalBinary

func (o *PostListCreatedBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (PostListCreatedBody) MarshalJSON

func (o PostListCreatedBody) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object to a JSON structure

func (*PostListCreatedBody) UnmarshalBinary

func (o *PostListCreatedBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PostListCreatedBody) UnmarshalJSON

func (o *PostListCreatedBody) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object from a JSON structure

func (*PostListCreatedBody) Validate

func (o *PostListCreatedBody) Validate(formats strfmt.Registry) error

Validate validates this post list created body

type PostListHandler

type PostListHandler interface {
	Handle(PostListParams, *apimodels.Principal) middleware.Responder
}

PostListHandler interface for that can handle valid post list params

type PostListHandlerFunc

type PostListHandlerFunc func(PostListParams, *apimodels.Principal) middleware.Responder

PostListHandlerFunc turns a function with the right signature into a post list handler

func (PostListHandlerFunc) Handle

Handle executing the request and returning a response

type PostListInternalServerError

type PostListInternalServerError struct {
}

PostListInternalServerError Server error

swagger:response postListInternalServerError

func NewPostListInternalServerError

func NewPostListInternalServerError() *PostListInternalServerError

NewPostListInternalServerError creates PostListInternalServerError with default headers values

func (*PostListInternalServerError) WriteResponse

func (o *PostListInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type PostListItems

type PostListItems struct {
	Context *middleware.Context
	Handler PostListItemsHandler
}
PostListItems swagger:route POST /lists/{id}/items Items postListItems

Add items to existing list

func NewPostListItems

func NewPostListItems(ctx *middleware.Context, handler PostListItemsHandler) *PostListItems

NewPostListItems creates a new http.Handler for the post list items operation

func (*PostListItems) ServeHTTP

func (o *PostListItems) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type PostListItemsBody

type PostListItemsBody struct {
	apimodels.Revision

	// items
	// Required: true
	Items []*apimodels.ListItem `json:"items"`
}

PostListItemsBody post list items body

swagger:model PostListItemsBody

func (*PostListItemsBody) ContextValidate

func (o *PostListItemsBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this post list items body based on the context it is used

func (*PostListItemsBody) MarshalBinary

func (o *PostListItemsBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (PostListItemsBody) MarshalJSON

func (o PostListItemsBody) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object to a JSON structure

func (*PostListItemsBody) UnmarshalBinary

func (o *PostListItemsBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PostListItemsBody) UnmarshalJSON

func (o *PostListItemsBody) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object from a JSON structure

func (*PostListItemsBody) Validate

func (o *PostListItemsBody) Validate(formats strfmt.Registry) error

Validate validates this post list items body

type PostListItemsConflict

type PostListItemsConflict struct {
}

PostListItemsConflict Outdated revision

swagger:response postListItemsConflict

func NewPostListItemsConflict

func NewPostListItemsConflict() *PostListItemsConflict

NewPostListItemsConflict creates PostListItemsConflict with default headers values

func (*PostListItemsConflict) WriteResponse

func (o *PostListItemsConflict) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type PostListItemsCreated

type PostListItemsCreated struct {

	/*
	  In: Body
	*/
	Payload *apimodels.Revision `json:"body,omitempty"`
}

PostListItemsCreated Success

swagger:response postListItemsCreated

func NewPostListItemsCreated

func NewPostListItemsCreated() *PostListItemsCreated

NewPostListItemsCreated creates PostListItemsCreated with default headers values

func (*PostListItemsCreated) SetPayload

func (o *PostListItemsCreated) SetPayload(payload *apimodels.Revision)

SetPayload sets the payload to the post list items created response

func (*PostListItemsCreated) WithPayload

func (o *PostListItemsCreated) WithPayload(payload *apimodels.Revision) *PostListItemsCreated

WithPayload adds the payload to the post list items created response

func (*PostListItemsCreated) WriteResponse

func (o *PostListItemsCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type PostListItemsForbidden

type PostListItemsForbidden struct {
}

PostListItemsForbidden Access denied

swagger:response postListItemsForbidden

func NewPostListItemsForbidden

func NewPostListItemsForbidden() *PostListItemsForbidden

NewPostListItemsForbidden creates PostListItemsForbidden with default headers values

func (*PostListItemsForbidden) WriteResponse

func (o *PostListItemsForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type PostListItemsHandler

type PostListItemsHandler interface {
	Handle(PostListItemsParams, *apimodels.Principal) middleware.Responder
}

PostListItemsHandler interface for that can handle valid post list items params

type PostListItemsHandlerFunc

type PostListItemsHandlerFunc func(PostListItemsParams, *apimodels.Principal) middleware.Responder

PostListItemsHandlerFunc turns a function with the right signature into a post list items handler

func (PostListItemsHandlerFunc) Handle

Handle executing the request and returning a response

type PostListItemsInternalServerError

type PostListItemsInternalServerError struct {
}

PostListItemsInternalServerError Server error

swagger:response postListItemsInternalServerError

func NewPostListItemsInternalServerError

func NewPostListItemsInternalServerError() *PostListItemsInternalServerError

NewPostListItemsInternalServerError creates PostListItemsInternalServerError with default headers values

func (*PostListItemsInternalServerError) WriteResponse

func (o *PostListItemsInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type PostListItemsNotFound

type PostListItemsNotFound struct {
}

PostListItemsNotFound List not found

swagger:response postListItemsNotFound

func NewPostListItemsNotFound

func NewPostListItemsNotFound() *PostListItemsNotFound

NewPostListItemsNotFound creates PostListItemsNotFound with default headers values

func (*PostListItemsNotFound) WriteResponse

func (o *PostListItemsNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type PostListItemsParams

type PostListItemsParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*
	  Required: true
	  In: path
	*/
	ID int64
	/*
	  In: body
	*/
	Items PostListItemsBody
}

PostListItemsParams contains all the bound params for the post list items operation typically these are obtained from a http.Request

swagger:parameters PostListItems

func NewPostListItemsParams

func NewPostListItemsParams() PostListItemsParams

NewPostListItemsParams creates a new PostListItemsParams object

There are no default values defined in the spec.

func (*PostListItemsParams) BindRequest

func (o *PostListItemsParams) 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 NewPostListItemsParams() beforehand.

type PostListItemsURL

type PostListItemsURL struct {
	ID int64
	// contains filtered or unexported fields
}

PostListItemsURL generates an URL for the post list items operation

func (*PostListItemsURL) Build

func (o *PostListItemsURL) Build() (*url.URL, error)

Build a url path and query string

func (*PostListItemsURL) BuildFull

func (o *PostListItemsURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*PostListItemsURL) Must

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

Must is a helper function to panic when the url builder returns an error

func (*PostListItemsURL) SetBasePath

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

func (o *PostListItemsURL) String() string

String returns the string representation of the path with query string

func (*PostListItemsURL) StringFull

func (o *PostListItemsURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*PostListItemsURL) WithBasePath

func (o *PostListItemsURL) WithBasePath(bp string) *PostListItemsURL

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 PostListParams

type PostListParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*
	  Required: true
	  In: body
	*/
	List PostListBody
}

PostListParams contains all the bound params for the post list operation typically these are obtained from a http.Request

swagger:parameters PostList

func NewPostListParams

func NewPostListParams() PostListParams

NewPostListParams creates a new PostListParams object

There are no default values defined in the spec.

func (*PostListParams) BindRequest

func (o *PostListParams) 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 NewPostListParams() beforehand.

type PostListURL

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

PostListURL generates an URL for the post list operation

func (*PostListURL) Build

func (o *PostListURL) Build() (*url.URL, error)

Build a url path and query string

func (*PostListURL) BuildFull

func (o *PostListURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*PostListURL) Must

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

Must is a helper function to panic when the url builder returns an error

func (*PostListURL) SetBasePath

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

func (o *PostListURL) String() string

String returns the string representation of the path with query string

func (*PostListURL) StringFull

func (o *PostListURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*PostListURL) WithBasePath

func (o *PostListURL) WithBasePath(bp string) *PostListURL

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 Register

type Register struct {
	Context *middleware.Context
	Handler RegisterHandler
}
Register swagger:route POST /auth/register Auth register

Register new user via password auth

func NewRegister

func NewRegister(ctx *middleware.Context, handler RegisterHandler) *Register

NewRegister creates a new http.Handler for the register operation

func (*Register) ServeHTTP

func (o *Register) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type RegisterHandler

type RegisterHandler interface {
	Handle(RegisterParams) middleware.Responder
}

RegisterHandler interface for that can handle valid register params

type RegisterHandlerFunc

type RegisterHandlerFunc func(RegisterParams) middleware.Responder

RegisterHandlerFunc turns a function with the right signature into a register handler

func (RegisterHandlerFunc) Handle

Handle executing the request and returning a response

type RegisterInternalServerError

type RegisterInternalServerError struct {
}

RegisterInternalServerError Server error

swagger:response registerInternalServerError

func NewRegisterInternalServerError

func NewRegisterInternalServerError() *RegisterInternalServerError

NewRegisterInternalServerError creates RegisterInternalServerError with default headers values

func (*RegisterInternalServerError) WriteResponse

func (o *RegisterInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type RegisterOK

type RegisterOK struct {

	/*
	  In: Body
	*/
	Payload *RegisterOKBody `json:"body,omitempty"`
}

RegisterOK Registration result

swagger:response registerOK

func NewRegisterOK

func NewRegisterOK() *RegisterOK

NewRegisterOK creates RegisterOK with default headers values

func (*RegisterOK) SetPayload

func (o *RegisterOK) SetPayload(payload *RegisterOKBody)

SetPayload sets the payload to the register o k response

func (*RegisterOK) WithPayload

func (o *RegisterOK) WithPayload(payload *RegisterOKBody) *RegisterOK

WithPayload adds the payload to the register o k response

func (*RegisterOK) WriteResponse

func (o *RegisterOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type RegisterOKBody

type RegisterOKBody struct {

	// error
	Error string `json:"error,omitempty"`

	// ok
	// Required: true
	Ok *bool `json:"ok"`

	// user
	User *apimodels.ID `json:"user,omitempty"`
}

RegisterOKBody register o k body

swagger:model RegisterOKBody

func (*RegisterOKBody) ContextValidate

func (o *RegisterOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this register o k body based on the context it is used

func (*RegisterOKBody) MarshalBinary

func (o *RegisterOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RegisterOKBody) UnmarshalBinary

func (o *RegisterOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RegisterOKBody) Validate

func (o *RegisterOKBody) Validate(formats strfmt.Registry) error

Validate validates this register o k body

type RegisterParams

type RegisterParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*
	  Required: true
	  In: body
	*/
	Credentials *apimodels.UserCredentials
}

RegisterParams contains all the bound params for the register operation typically these are obtained from a http.Request

swagger:parameters Register

func NewRegisterParams

func NewRegisterParams() RegisterParams

NewRegisterParams creates a new RegisterParams object

There are no default values defined in the spec.

func (*RegisterParams) BindRequest

func (o *RegisterParams) 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 NewRegisterParams() beforehand.

type RegisterURL

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

RegisterURL generates an URL for the register operation

func (*RegisterURL) Build

func (o *RegisterURL) Build() (*url.URL, error)

Build a url path and query string

func (*RegisterURL) BuildFull

func (o *RegisterURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*RegisterURL) Must

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

Must is a helper function to panic when the url builder returns an error

func (*RegisterURL) SetBasePath

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

func (o *RegisterURL) String() string

String returns the string representation of the path with query string

func (*RegisterURL) StringFull

func (o *RegisterURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*RegisterURL) WithBasePath

func (o *RegisterURL) WithBasePath(bp string) *RegisterURL

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 WishesAPI

type WishesAPI struct {
	Middleware func(middleware.Builder) http.Handler

	// BasicAuthenticator generates a runtime.Authenticator from the supplied basic auth function.
	// It has a default implementation in the security package, however you can replace it for your particular usage.
	BasicAuthenticator func(security.UserPassAuthentication) runtime.Authenticator

	// APIKeyAuthenticator generates a runtime.Authenticator from the supplied token auth function.
	// It has a default implementation in the security package, however you can replace it for your particular usage.
	APIKeyAuthenticator func(string, string, security.TokenAuthentication) runtime.Authenticator

	// BearerAuthenticator generates a runtime.Authenticator from the supplied bearer token auth function.
	// It has a default implementation in the security package, however you can replace it for your particular usage.
	BearerAuthenticator func(string, security.ScopedTokenAuthentication) runtime.Authenticator

	// JSONConsumer registers a consumer for the following mime types:
	//   - application/json
	JSONConsumer runtime.Consumer

	// JSONProducer registers a producer for the following mime types:
	//   - application/json
	JSONProducer runtime.Producer

	// KeySecurityAuth registers a function that takes a token and returns a principal
	// it performs authentication based on an api key x-token provided in the header
	KeySecurityAuth func(string) (*apimodels.Principal, error)

	// APIAuthorizer provides access control (ACL/RBAC/ABAC) by providing access to the request and authenticated principal
	APIAuthorizer runtime.Authorizer

	// DeleteItemTakenHandler sets the operation handler for the delete item taken operation
	DeleteItemTakenHandler DeleteItemTakenHandler
	// DeleteListHandler sets the operation handler for the delete list operation
	DeleteListHandler DeleteListHandler
	// DeleteListItemsHandler sets the operation handler for the delete list items operation
	DeleteListItemsHandler DeleteListItemsHandler
	// GetListHandler sets the operation handler for the get list operation
	GetListHandler GetListHandler
	// GetListItemsHandler sets the operation handler for the get list items operation
	GetListItemsHandler GetListItemsHandler
	// GetListTokenHandler sets the operation handler for the get list token operation
	GetListTokenHandler GetListTokenHandler
	// GetUserHandler sets the operation handler for the get user operation
	GetUserHandler GetUserHandler
	// GetUserListsHandler sets the operation handler for the get user lists operation
	GetUserListsHandler GetUserListsHandler
	// LoginHandler sets the operation handler for the login operation
	LoginHandler LoginHandler
	// OAuthLoginHandler sets the operation handler for the o auth login operation
	OAuthLoginHandler OAuthLoginHandler
	// OAuthRegisterHandler sets the operation handler for the o auth register operation
	OAuthRegisterHandler OAuthRegisterHandler
	// PatchListHandler sets the operation handler for the patch list operation
	PatchListHandler PatchListHandler
	// PatchUserHandler sets the operation handler for the patch user operation
	PatchUserHandler PatchUserHandler
	// PostItemTakenHandler sets the operation handler for the post item taken operation
	PostItemTakenHandler PostItemTakenHandler
	// PostListHandler sets the operation handler for the post list operation
	PostListHandler PostListHandler
	// PostListItemsHandler sets the operation handler for the post list items operation
	PostListItemsHandler PostListItemsHandler
	// RegisterHandler sets the operation handler for the register operation
	RegisterHandler RegisterHandler

	// ServeError is called when an error is received, there is a default handler
	// but you can set your own with this
	ServeError func(http.ResponseWriter, *http.Request, error)

	// PreServerShutdown is called before the HTTP(S) server is shutdown
	// This allows for custom functions to get executed before the HTTP(S) server stops accepting traffic
	PreServerShutdown func()

	// ServerShutdown is called when the HTTP(S) server is shut down and done
	// handling all active connections and does not accept connections any more
	ServerShutdown func()

	// Custom command line argument groups with their descriptions
	CommandLineOptionsGroups []swag.CommandLineOptionsGroup

	// User defined logger function.
	Logger func(string, ...interface{})
	// contains filtered or unexported fields
}

WishesAPI the wishes API

func NewWishesAPI

func NewWishesAPI(spec *loads.Document) *WishesAPI

NewWishesAPI creates a new Wishes instance

func (*WishesAPI) AddMiddlewareFor

func (o *WishesAPI) AddMiddlewareFor(method, path string, builder middleware.Builder)

AddMiddlewareFor adds a http middleware to existing handler

func (*WishesAPI) AuthenticatorsFor

func (o *WishesAPI) AuthenticatorsFor(schemes map[string]spec.SecurityScheme) map[string]runtime.Authenticator

AuthenticatorsFor gets the authenticators for the specified security schemes

func (*WishesAPI) Authorizer

func (o *WishesAPI) Authorizer() runtime.Authorizer

Authorizer returns the registered authorizer

func (*WishesAPI) ConsumersFor

func (o *WishesAPI) ConsumersFor(mediaTypes []string) map[string]runtime.Consumer

ConsumersFor gets the consumers for the specified media types. MIME type parameters are ignored here.

func (*WishesAPI) Context

func (o *WishesAPI) Context() *middleware.Context

Context returns the middleware context for the wishes API

func (*WishesAPI) DefaultConsumes

func (o *WishesAPI) DefaultConsumes() string

DefaultConsumes returns the default consumes media type

func (*WishesAPI) DefaultProduces

func (o *WishesAPI) DefaultProduces() string

DefaultProduces returns the default produces media type

func (*WishesAPI) Formats

func (o *WishesAPI) Formats() strfmt.Registry

Formats returns the registered string formats

func (*WishesAPI) HandlerFor

func (o *WishesAPI) HandlerFor(method, path string) (http.Handler, bool)

HandlerFor gets a http.Handler for the provided operation method and path

func (*WishesAPI) Init

func (o *WishesAPI) Init()

Init allows you to just initialize the handler cache, you can then recompose the middleware as you see fit

func (*WishesAPI) ProducersFor

func (o *WishesAPI) ProducersFor(mediaTypes []string) map[string]runtime.Producer

ProducersFor gets the producers for the specified media types. MIME type parameters are ignored here.

func (*WishesAPI) RegisterConsumer

func (o *WishesAPI) RegisterConsumer(mediaType string, consumer runtime.Consumer)

RegisterConsumer allows you to add (or override) a consumer for a media type.

func (*WishesAPI) RegisterFormat

func (o *WishesAPI) RegisterFormat(name string, format strfmt.Format, validator strfmt.Validator)

RegisterFormat registers a custom format validator

func (*WishesAPI) RegisterProducer

func (o *WishesAPI) RegisterProducer(mediaType string, producer runtime.Producer)

RegisterProducer allows you to add (or override) a producer for a media type.

func (*WishesAPI) Serve

func (o *WishesAPI) Serve(builder middleware.Builder) http.Handler

Serve creates a http handler to serve the API over HTTP can be used directly in http.ListenAndServe(":8000", api.Serve(nil))

func (*WishesAPI) ServeErrorFor

func (o *WishesAPI) ServeErrorFor(operationID string) func(http.ResponseWriter, *http.Request, error)

ServeErrorFor gets a error handler for a given operation id

func (*WishesAPI) SetDefaultConsumes

func (o *WishesAPI) SetDefaultConsumes(mediaType string)

SetDefaultConsumes returns the default consumes media type

func (*WishesAPI) SetDefaultProduces

func (o *WishesAPI) SetDefaultProduces(mediaType string)

SetDefaultProduces sets the default produces media type

func (*WishesAPI) SetSpec

func (o *WishesAPI) SetSpec(spec *loads.Document)

SetSpec sets a spec that will be served for the clients.

func (*WishesAPI) UseRedoc

func (o *WishesAPI) UseRedoc()

UseRedoc for documentation at /docs

func (*WishesAPI) UseSwaggerUI

func (o *WishesAPI) UseSwaggerUI()

UseSwaggerUI for documentation at /docs

func (*WishesAPI) Validate

func (o *WishesAPI) Validate() error

Validate validates the registrations in the WishesAPI

Source Files

Jump to

Keyboard shortcuts

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