moves

package
v0.0.0-...-c407d37 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const GetMoveBadRequestCode int = 400

GetMoveBadRequestCode is the HTTP code returned for type GetMoveBadRequest

View Source
const GetMoveInternalServerErrorCode int = 500

GetMoveInternalServerErrorCode is the HTTP code returned for type GetMoveInternalServerError

View Source
const GetMoveNotFoundCode int = 404

GetMoveNotFoundCode is the HTTP code returned for type GetMoveNotFound

View Source
const GetMoveOKCode int = 200

GetMoveOKCode is the HTTP code returned for type GetMoveOK

View Source
const GetMoveUnauthorizedCode int = 401

GetMoveUnauthorizedCode is the HTTP code returned for type GetMoveUnauthorized

View Source
const IndexMovesBadRequestCode int = 400

IndexMovesBadRequestCode is the HTTP code returned for type IndexMovesBadRequest

View Source
const IndexMovesInternalServerErrorCode int = 500

IndexMovesInternalServerErrorCode is the HTTP code returned for type IndexMovesInternalServerError

View Source
const IndexMovesNotFoundCode int = 404

IndexMovesNotFoundCode is the HTTP code returned for type IndexMovesNotFound

View Source
const IndexMovesOKCode int = 200

IndexMovesOKCode is the HTTP code returned for type IndexMovesOK

View Source
const IndexMovesUnauthorizedCode int = 401

IndexMovesUnauthorizedCode is the HTTP code returned for type IndexMovesUnauthorized

View Source
const UpdateMoveBadRequestCode int = 400

UpdateMoveBadRequestCode is the HTTP code returned for type UpdateMoveBadRequest

View Source
const UpdateMoveForbiddenCode int = 403

UpdateMoveForbiddenCode is the HTTP code returned for type UpdateMoveForbidden

View Source
const UpdateMoveInternalServerErrorCode int = 500

UpdateMoveInternalServerErrorCode is the HTTP code returned for type UpdateMoveInternalServerError

View Source
const UpdateMoveNotFoundCode int = 404

UpdateMoveNotFoundCode is the HTTP code returned for type UpdateMoveNotFound

View Source
const UpdateMoveOKCode int = 200

UpdateMoveOKCode is the HTTP code returned for type UpdateMoveOK

View Source
const UpdateMoveUnauthorizedCode int = 401

UpdateMoveUnauthorizedCode is the HTTP code returned for type UpdateMoveUnauthorized

View Source
const UpdateMoveUnprocessableEntityCode int = 422

UpdateMoveUnprocessableEntityCode is the HTTP code returned for type UpdateMoveUnprocessableEntity

Variables

This section is empty.

Functions

This section is empty.

Types

type GetMove

type GetMove struct {
	Context *middleware.Context
	Handler GetMoveHandler
}
GetMove swagger:route GET /moves/{moveID} Moves getMove

Get information about a Move

This endpoint returns a single Move by ID. Do not use this endpoint directly as it is meant to be used with the Admin UI exclusively.

func NewGetMove

func NewGetMove(ctx *middleware.Context, handler GetMoveHandler) *GetMove

NewGetMove creates a new http.Handler for the get move operation

func (*GetMove) ServeHTTP

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

type GetMoveBadRequest

type GetMoveBadRequest struct {
}

GetMoveBadRequest Invalid request

swagger:response getMoveBadRequest

func NewGetMoveBadRequest

func NewGetMoveBadRequest() *GetMoveBadRequest

NewGetMoveBadRequest creates GetMoveBadRequest with default headers values

func (*GetMoveBadRequest) WriteResponse

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

WriteResponse to the client

type GetMoveHandler

type GetMoveHandler interface {
	Handle(GetMoveParams) middleware.Responder
}

GetMoveHandler interface for that can handle valid get move params

type GetMoveHandlerFunc

type GetMoveHandlerFunc func(GetMoveParams) middleware.Responder

GetMoveHandlerFunc turns a function with the right signature into a get move handler

func (GetMoveHandlerFunc) Handle

Handle executing the request and returning a response

type GetMoveInternalServerError

type GetMoveInternalServerError struct {
}

GetMoveInternalServerError Server error

swagger:response getMoveInternalServerError

func NewGetMoveInternalServerError

func NewGetMoveInternalServerError() *GetMoveInternalServerError

NewGetMoveInternalServerError creates GetMoveInternalServerError with default headers values

func (*GetMoveInternalServerError) WriteResponse

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

WriteResponse to the client

type GetMoveNotFound

type GetMoveNotFound struct {
}

GetMoveNotFound Move not found

swagger:response getMoveNotFound

func NewGetMoveNotFound

func NewGetMoveNotFound() *GetMoveNotFound

NewGetMoveNotFound creates GetMoveNotFound with default headers values

func (*GetMoveNotFound) WriteResponse

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

WriteResponse to the client

type GetMoveOK

type GetMoveOK struct {

	/*
	  In: Body
	*/
	Payload *adminmessages.Move `json:"body,omitempty"`
}

GetMoveOK Success

swagger:response getMoveOK

func NewGetMoveOK

func NewGetMoveOK() *GetMoveOK

NewGetMoveOK creates GetMoveOK with default headers values

func (*GetMoveOK) SetPayload

func (o *GetMoveOK) SetPayload(payload *adminmessages.Move)

SetPayload sets the payload to the get move o k response

func (*GetMoveOK) WithPayload

func (o *GetMoveOK) WithPayload(payload *adminmessages.Move) *GetMoveOK

WithPayload adds the payload to the get move o k response

func (*GetMoveOK) WriteResponse

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

WriteResponse to the client

type GetMoveParams

type GetMoveParams struct {

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

	/*
	  Required: true
	  In: path
	*/
	MoveID strfmt.UUID
}

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

swagger:parameters getMove

func NewGetMoveParams

func NewGetMoveParams() GetMoveParams

NewGetMoveParams creates a new GetMoveParams object

There are no default values defined in the spec.

func (*GetMoveParams) BindRequest

func (o *GetMoveParams) 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 NewGetMoveParams() beforehand.

type GetMoveURL

type GetMoveURL struct {
	MoveID strfmt.UUID
	// contains filtered or unexported fields
}

GetMoveURL generates an URL for the get move operation

func (*GetMoveURL) Build

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

Build a url path and query string

func (*GetMoveURL) BuildFull

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

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

func (*GetMoveURL) Must

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

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

func (*GetMoveURL) SetBasePath

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

func (o *GetMoveURL) String() string

String returns the string representation of the path with query string

func (*GetMoveURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetMoveURL) WithBasePath

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

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 GetMoveUnauthorized

type GetMoveUnauthorized struct {
}

GetMoveUnauthorized Must be authenticated to use this endpoint

swagger:response getMoveUnauthorized

func NewGetMoveUnauthorized

func NewGetMoveUnauthorized() *GetMoveUnauthorized

NewGetMoveUnauthorized creates GetMoveUnauthorized with default headers values

func (*GetMoveUnauthorized) WriteResponse

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

WriteResponse to the client

type IndexMoves

type IndexMoves struct {
	Context *middleware.Context
	Handler IndexMovesHandler
}
IndexMoves swagger:route GET /moves Moves indexMoves

List Moves

This endpoint returns a list of Moves. Do not use this endpoint directly as it is meant to be used with the Admin UI exclusively.

func NewIndexMoves

func NewIndexMoves(ctx *middleware.Context, handler IndexMovesHandler) *IndexMoves

NewIndexMoves creates a new http.Handler for the index moves operation

func (*IndexMoves) ServeHTTP

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

type IndexMovesBadRequest

type IndexMovesBadRequest struct {
}

IndexMovesBadRequest invalid request

swagger:response indexMovesBadRequest

func NewIndexMovesBadRequest

func NewIndexMovesBadRequest() *IndexMovesBadRequest

NewIndexMovesBadRequest creates IndexMovesBadRequest with default headers values

func (*IndexMovesBadRequest) WriteResponse

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

WriteResponse to the client

type IndexMovesHandler

type IndexMovesHandler interface {
	Handle(IndexMovesParams) middleware.Responder
}

IndexMovesHandler interface for that can handle valid index moves params

type IndexMovesHandlerFunc

type IndexMovesHandlerFunc func(IndexMovesParams) middleware.Responder

IndexMovesHandlerFunc turns a function with the right signature into a index moves handler

func (IndexMovesHandlerFunc) Handle

Handle executing the request and returning a response

type IndexMovesInternalServerError

type IndexMovesInternalServerError struct {
}

IndexMovesInternalServerError server error

swagger:response indexMovesInternalServerError

func NewIndexMovesInternalServerError

func NewIndexMovesInternalServerError() *IndexMovesInternalServerError

NewIndexMovesInternalServerError creates IndexMovesInternalServerError with default headers values

func (*IndexMovesInternalServerError) WriteResponse

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

WriteResponse to the client

type IndexMovesNotFound

type IndexMovesNotFound struct {
}

IndexMovesNotFound Moves not found

swagger:response indexMovesNotFound

func NewIndexMovesNotFound

func NewIndexMovesNotFound() *IndexMovesNotFound

NewIndexMovesNotFound creates IndexMovesNotFound with default headers values

func (*IndexMovesNotFound) WriteResponse

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

WriteResponse to the client

type IndexMovesOK

type IndexMovesOK struct {
	/*Used for pagination

	 */
	ContentRange string `json:"Content-Range"`

	/*
	  In: Body
	*/
	Payload adminmessages.Moves `json:"body,omitempty"`
}

IndexMovesOK success

swagger:response indexMovesOK

func NewIndexMovesOK

func NewIndexMovesOK() *IndexMovesOK

NewIndexMovesOK creates IndexMovesOK with default headers values

func (*IndexMovesOK) SetContentRange

func (o *IndexMovesOK) SetContentRange(contentRange string)

SetContentRange sets the contentRange to the index moves o k response

func (*IndexMovesOK) SetPayload

func (o *IndexMovesOK) SetPayload(payload adminmessages.Moves)

SetPayload sets the payload to the index moves o k response

func (*IndexMovesOK) WithContentRange

func (o *IndexMovesOK) WithContentRange(contentRange string) *IndexMovesOK

WithContentRange adds the contentRange to the index moves o k response

func (*IndexMovesOK) WithPayload

func (o *IndexMovesOK) WithPayload(payload adminmessages.Moves) *IndexMovesOK

WithPayload adds the payload to the index moves o k response

func (*IndexMovesOK) WriteResponse

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

WriteResponse to the client

type IndexMovesParams

type IndexMovesParams struct {

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

	/*
	  In: query
	*/
	Filter *string
	/*
	  In: query
	*/
	Order *bool
	/*
	  In: query
	*/
	Page *int64
	/*
	  In: query
	*/
	PerPage *int64
	/*
	  In: query
	*/
	Sort *string
}

IndexMovesParams contains all the bound params for the index moves operation typically these are obtained from a http.Request

swagger:parameters indexMoves

func NewIndexMovesParams

func NewIndexMovesParams() IndexMovesParams

NewIndexMovesParams creates a new IndexMovesParams object

There are no default values defined in the spec.

func (*IndexMovesParams) BindRequest

func (o *IndexMovesParams) 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 NewIndexMovesParams() beforehand.

type IndexMovesURL

type IndexMovesURL struct {
	Filter  *string
	Order   *bool
	Page    *int64
	PerPage *int64
	Sort    *string
	// contains filtered or unexported fields
}

IndexMovesURL generates an URL for the index moves operation

func (*IndexMovesURL) Build

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

Build a url path and query string

func (*IndexMovesURL) BuildFull

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

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

func (*IndexMovesURL) Must

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

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

func (*IndexMovesURL) SetBasePath

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

func (o *IndexMovesURL) String() string

String returns the string representation of the path with query string

func (*IndexMovesURL) StringFull

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

StringFull returns the string representation of a complete url

func (*IndexMovesURL) WithBasePath

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

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 IndexMovesUnauthorized

type IndexMovesUnauthorized struct {
}

IndexMovesUnauthorized request requires user authentication

swagger:response indexMovesUnauthorized

func NewIndexMovesUnauthorized

func NewIndexMovesUnauthorized() *IndexMovesUnauthorized

NewIndexMovesUnauthorized creates IndexMovesUnauthorized with default headers values

func (*IndexMovesUnauthorized) WriteResponse

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

WriteResponse to the client

type UpdateMove

type UpdateMove struct {
	Context *middleware.Context
	Handler UpdateMoveHandler
}
UpdateMove swagger:route PATCH /moves/{moveID} Moves updateMove

Toggle Move visibility

This endpoint updates a single Move by ID. This allows the Admin User to change the `show` field on the selected field to either `True` or `False`. A "shown" Move will appear to all users as normal, a "hidden" Move will not be returned or editable using any other endpoint (besides those in the Support API), and thus effectively deactivated. Do not use this endpoint directly as it is meant to be used with the Admin UI exclusively.

func NewUpdateMove

func NewUpdateMove(ctx *middleware.Context, handler UpdateMoveHandler) *UpdateMove

NewUpdateMove creates a new http.Handler for the update move operation

func (*UpdateMove) ServeHTTP

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

type UpdateMoveBadRequest

type UpdateMoveBadRequest struct {
}

UpdateMoveBadRequest Invalid request

swagger:response updateMoveBadRequest

func NewUpdateMoveBadRequest

func NewUpdateMoveBadRequest() *UpdateMoveBadRequest

NewUpdateMoveBadRequest creates UpdateMoveBadRequest with default headers values

func (*UpdateMoveBadRequest) WriteResponse

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

WriteResponse to the client

type UpdateMoveForbidden

type UpdateMoveForbidden struct {
}

UpdateMoveForbidden Not authorized to update this Move

swagger:response updateMoveForbidden

func NewUpdateMoveForbidden

func NewUpdateMoveForbidden() *UpdateMoveForbidden

NewUpdateMoveForbidden creates UpdateMoveForbidden with default headers values

func (*UpdateMoveForbidden) WriteResponse

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

WriteResponse to the client

type UpdateMoveHandler

type UpdateMoveHandler interface {
	Handle(UpdateMoveParams) middleware.Responder
}

UpdateMoveHandler interface for that can handle valid update move params

type UpdateMoveHandlerFunc

type UpdateMoveHandlerFunc func(UpdateMoveParams) middleware.Responder

UpdateMoveHandlerFunc turns a function with the right signature into a update move handler

func (UpdateMoveHandlerFunc) Handle

Handle executing the request and returning a response

type UpdateMoveInternalServerError

type UpdateMoveInternalServerError struct {
}

UpdateMoveInternalServerError Server error

swagger:response updateMoveInternalServerError

func NewUpdateMoveInternalServerError

func NewUpdateMoveInternalServerError() *UpdateMoveInternalServerError

NewUpdateMoveInternalServerError creates UpdateMoveInternalServerError with default headers values

func (*UpdateMoveInternalServerError) WriteResponse

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

WriteResponse to the client

type UpdateMoveNotFound

type UpdateMoveNotFound struct {
}

UpdateMoveNotFound Move not found

swagger:response updateMoveNotFound

func NewUpdateMoveNotFound

func NewUpdateMoveNotFound() *UpdateMoveNotFound

NewUpdateMoveNotFound creates UpdateMoveNotFound with default headers values

func (*UpdateMoveNotFound) WriteResponse

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

WriteResponse to the client

type UpdateMoveOK

type UpdateMoveOK struct {

	/*
	  In: Body
	*/
	Payload *adminmessages.Move `json:"body,omitempty"`
}

UpdateMoveOK Successfully updated the Move

swagger:response updateMoveOK

func NewUpdateMoveOK

func NewUpdateMoveOK() *UpdateMoveOK

NewUpdateMoveOK creates UpdateMoveOK with default headers values

func (*UpdateMoveOK) SetPayload

func (o *UpdateMoveOK) SetPayload(payload *adminmessages.Move)

SetPayload sets the payload to the update move o k response

func (*UpdateMoveOK) WithPayload

func (o *UpdateMoveOK) WithPayload(payload *adminmessages.Move) *UpdateMoveOK

WithPayload adds the payload to the update move o k response

func (*UpdateMoveOK) WriteResponse

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

WriteResponse to the client

type UpdateMoveParams

type UpdateMoveParams struct {

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

	/*Move information
	  Required: true
	  In: body
	*/
	Move *adminmessages.MoveUpdate
	/*
	  Required: true
	  In: path
	*/
	MoveID strfmt.UUID
}

UpdateMoveParams contains all the bound params for the update move operation typically these are obtained from a http.Request

swagger:parameters updateMove

func NewUpdateMoveParams

func NewUpdateMoveParams() UpdateMoveParams

NewUpdateMoveParams creates a new UpdateMoveParams object

There are no default values defined in the spec.

func (*UpdateMoveParams) BindRequest

func (o *UpdateMoveParams) 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 NewUpdateMoveParams() beforehand.

type UpdateMoveURL

type UpdateMoveURL struct {
	MoveID strfmt.UUID
	// contains filtered or unexported fields
}

UpdateMoveURL generates an URL for the update move operation

func (*UpdateMoveURL) Build

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

Build a url path and query string

func (*UpdateMoveURL) BuildFull

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

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

func (*UpdateMoveURL) Must

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

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

func (*UpdateMoveURL) SetBasePath

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

func (o *UpdateMoveURL) String() string

String returns the string representation of the path with query string

func (*UpdateMoveURL) StringFull

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

StringFull returns the string representation of a complete url

func (*UpdateMoveURL) WithBasePath

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

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 UpdateMoveUnauthorized

type UpdateMoveUnauthorized struct {
}

UpdateMoveUnauthorized Must be authenticated to use this endpoint

swagger:response updateMoveUnauthorized

func NewUpdateMoveUnauthorized

func NewUpdateMoveUnauthorized() *UpdateMoveUnauthorized

NewUpdateMoveUnauthorized creates UpdateMoveUnauthorized with default headers values

func (*UpdateMoveUnauthorized) WriteResponse

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

WriteResponse to the client

type UpdateMoveUnprocessableEntity

type UpdateMoveUnprocessableEntity struct {
}

UpdateMoveUnprocessableEntity Invalid input

swagger:response updateMoveUnprocessableEntity

func NewUpdateMoveUnprocessableEntity

func NewUpdateMoveUnprocessableEntity() *UpdateMoveUnprocessableEntity

NewUpdateMoveUnprocessableEntity creates UpdateMoveUnprocessableEntity with default headers values

func (*UpdateMoveUnprocessableEntity) WriteResponse

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

WriteResponse to the client

Jump to

Keyboard shortcuts

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