Documentation ¶
Index ¶
- Constants
- type DeleteAPIV1GamesGameID
- type DeleteAPIV1GamesGameIDBadRequest
- type DeleteAPIV1GamesGameIDHandler
- type DeleteAPIV1GamesGameIDHandlerFunc
- type DeleteAPIV1GamesGameIDInternalServerError
- type DeleteAPIV1GamesGameIDNotFound
- type DeleteAPIV1GamesGameIDOK
- type DeleteAPIV1GamesGameIDParams
- type DeleteAPIV1GamesGameIDURL
- func (o *DeleteAPIV1GamesGameIDURL) Build() (*url.URL, error)
- func (o *DeleteAPIV1GamesGameIDURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *DeleteAPIV1GamesGameIDURL) Must(u *url.URL, err error) *url.URL
- func (o *DeleteAPIV1GamesGameIDURL) SetBasePath(bp string)
- func (o *DeleteAPIV1GamesGameIDURL) String() string
- func (o *DeleteAPIV1GamesGameIDURL) StringFull(scheme, host string) string
- func (o *DeleteAPIV1GamesGameIDURL) WithBasePath(bp string) *DeleteAPIV1GamesGameIDURL
- type GetAPIV1Games
- type GetAPIV1GamesBadRequest
- type GetAPIV1GamesGameID
- type GetAPIV1GamesGameIDBadRequest
- type GetAPIV1GamesGameIDHandler
- type GetAPIV1GamesGameIDHandlerFunc
- type GetAPIV1GamesGameIDInternalServerError
- type GetAPIV1GamesGameIDNotFound
- type GetAPIV1GamesGameIDOK
- type GetAPIV1GamesGameIDParams
- type GetAPIV1GamesGameIDURL
- func (o *GetAPIV1GamesGameIDURL) Build() (*url.URL, error)
- func (o *GetAPIV1GamesGameIDURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetAPIV1GamesGameIDURL) Must(u *url.URL, err error) *url.URL
- func (o *GetAPIV1GamesGameIDURL) SetBasePath(bp string)
- func (o *GetAPIV1GamesGameIDURL) String() string
- func (o *GetAPIV1GamesGameIDURL) StringFull(scheme, host string) string
- func (o *GetAPIV1GamesGameIDURL) WithBasePath(bp string) *GetAPIV1GamesGameIDURL
- type GetAPIV1GamesHandler
- type GetAPIV1GamesHandlerFunc
- type GetAPIV1GamesInternalServerError
- type GetAPIV1GamesNotFound
- type GetAPIV1GamesOK
- type GetAPIV1GamesParams
- type GetAPIV1GamesURL
- func (o *GetAPIV1GamesURL) Build() (*url.URL, error)
- func (o *GetAPIV1GamesURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetAPIV1GamesURL) Must(u *url.URL, err error) *url.URL
- func (o *GetAPIV1GamesURL) SetBasePath(bp string)
- func (o *GetAPIV1GamesURL) String() string
- func (o *GetAPIV1GamesURL) StringFull(scheme, host string) string
- func (o *GetAPIV1GamesURL) WithBasePath(bp string) *GetAPIV1GamesURL
- type PostAPIV1Games
- type PostAPIV1GamesBadRequest
- type PostAPIV1GamesBadRequestBody
- type PostAPIV1GamesCreated
- func (o *PostAPIV1GamesCreated) SetLocation(location string)
- func (o *PostAPIV1GamesCreated) SetPayload(payload *PostAPIV1GamesCreatedBody)
- func (o *PostAPIV1GamesCreated) WithLocation(location string) *PostAPIV1GamesCreated
- func (o *PostAPIV1GamesCreated) WithPayload(payload *PostAPIV1GamesCreatedBody) *PostAPIV1GamesCreated
- func (o *PostAPIV1GamesCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type PostAPIV1GamesCreatedBody
- type PostAPIV1GamesHandler
- type PostAPIV1GamesHandlerFunc
- type PostAPIV1GamesInternalServerError
- type PostAPIV1GamesNotFound
- type PostAPIV1GamesParams
- type PostAPIV1GamesURL
- func (o *PostAPIV1GamesURL) Build() (*url.URL, error)
- func (o *PostAPIV1GamesURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *PostAPIV1GamesURL) Must(u *url.URL, err error) *url.URL
- func (o *PostAPIV1GamesURL) SetBasePath(bp string)
- func (o *PostAPIV1GamesURL) String() string
- func (o *PostAPIV1GamesURL) StringFull(scheme, host string) string
- func (o *PostAPIV1GamesURL) WithBasePath(bp string) *PostAPIV1GamesURL
- type PutAPIV1GamesGameID
- type PutAPIV1GamesGameIDBadRequest
- func (o *PutAPIV1GamesGameIDBadRequest) SetPayload(payload *PutAPIV1GamesGameIDBadRequestBody)
- func (o *PutAPIV1GamesGameIDBadRequest) WithPayload(payload *PutAPIV1GamesGameIDBadRequestBody) *PutAPIV1GamesGameIDBadRequest
- func (o *PutAPIV1GamesGameIDBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type PutAPIV1GamesGameIDBadRequestBody
- type PutAPIV1GamesGameIDHandler
- type PutAPIV1GamesGameIDHandlerFunc
- type PutAPIV1GamesGameIDInternalServerError
- type PutAPIV1GamesGameIDNotFound
- type PutAPIV1GamesGameIDOK
- type PutAPIV1GamesGameIDParams
- type PutAPIV1GamesGameIDURL
- func (o *PutAPIV1GamesGameIDURL) Build() (*url.URL, error)
- func (o *PutAPIV1GamesGameIDURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *PutAPIV1GamesGameIDURL) Must(u *url.URL, err error) *url.URL
- func (o *PutAPIV1GamesGameIDURL) SetBasePath(bp string)
- func (o *PutAPIV1GamesGameIDURL) String() string
- func (o *PutAPIV1GamesGameIDURL) StringFull(scheme, host string) string
- func (o *PutAPIV1GamesGameIDURL) WithBasePath(bp string) *PutAPIV1GamesGameIDURL
- type TictactoeAPI
- func (o *TictactoeAPI) AuthenticatorsFor(schemes map[string]spec.SecurityScheme) map[string]runtime.Authenticator
- func (o *TictactoeAPI) Authorizer() runtime.Authorizer
- func (o *TictactoeAPI) ConsumersFor(mediaTypes []string) map[string]runtime.Consumer
- func (o *TictactoeAPI) Context() *middleware.Context
- func (o *TictactoeAPI) DefaultConsumes() string
- func (o *TictactoeAPI) DefaultProduces() string
- func (o *TictactoeAPI) Formats() strfmt.Registry
- func (o *TictactoeAPI) HandlerFor(method, path string) (http.Handler, bool)
- func (o *TictactoeAPI) Init()
- func (o *TictactoeAPI) ProducersFor(mediaTypes []string) map[string]runtime.Producer
- func (o *TictactoeAPI) RegisterConsumer(mediaType string, consumer runtime.Consumer)
- func (o *TictactoeAPI) RegisterFormat(name string, format strfmt.Format, validator strfmt.Validator)
- func (o *TictactoeAPI) RegisterProducer(mediaType string, producer runtime.Producer)
- func (o *TictactoeAPI) Serve(builder middleware.Builder) http.Handler
- func (o *TictactoeAPI) ServeErrorFor(operationID string) func(http.ResponseWriter, *http.Request, error)
- func (o *TictactoeAPI) SetDefaultConsumes(mediaType string)
- func (o *TictactoeAPI) SetDefaultProduces(mediaType string)
- func (o *TictactoeAPI) SetSpec(spec *loads.Document)
- func (o *TictactoeAPI) Validate() error
Constants ¶
const DeleteAPIV1GamesGameIDBadRequestCode int = 400
DeleteAPIV1GamesGameIDBadRequestCode is the HTTP code returned for type DeleteAPIV1GamesGameIDBadRequest
const DeleteAPIV1GamesGameIDInternalServerErrorCode int = 500
DeleteAPIV1GamesGameIDInternalServerErrorCode is the HTTP code returned for type DeleteAPIV1GamesGameIDInternalServerError
const DeleteAPIV1GamesGameIDNotFoundCode int = 404
DeleteAPIV1GamesGameIDNotFoundCode is the HTTP code returned for type DeleteAPIV1GamesGameIDNotFound
const DeleteAPIV1GamesGameIDOKCode int = 200
DeleteAPIV1GamesGameIDOKCode is the HTTP code returned for type DeleteAPIV1GamesGameIDOK
const GetAPIV1GamesBadRequestCode int = 400
GetAPIV1GamesBadRequestCode is the HTTP code returned for type GetAPIV1GamesBadRequest
const GetAPIV1GamesGameIDBadRequestCode int = 400
GetAPIV1GamesGameIDBadRequestCode is the HTTP code returned for type GetAPIV1GamesGameIDBadRequest
const GetAPIV1GamesGameIDInternalServerErrorCode int = 500
GetAPIV1GamesGameIDInternalServerErrorCode is the HTTP code returned for type GetAPIV1GamesGameIDInternalServerError
const GetAPIV1GamesGameIDNotFoundCode int = 404
GetAPIV1GamesGameIDNotFoundCode is the HTTP code returned for type GetAPIV1GamesGameIDNotFound
const GetAPIV1GamesGameIDOKCode int = 200
GetAPIV1GamesGameIDOKCode is the HTTP code returned for type GetAPIV1GamesGameIDOK
const GetAPIV1GamesInternalServerErrorCode int = 500
GetAPIV1GamesInternalServerErrorCode is the HTTP code returned for type GetAPIV1GamesInternalServerError
const GetAPIV1GamesNotFoundCode int = 404
GetAPIV1GamesNotFoundCode is the HTTP code returned for type GetAPIV1GamesNotFound
const GetAPIV1GamesOKCode int = 200
GetAPIV1GamesOKCode is the HTTP code returned for type GetAPIV1GamesOK
const PostAPIV1GamesBadRequestCode int = 400
PostAPIV1GamesBadRequestCode is the HTTP code returned for type PostAPIV1GamesBadRequest
const PostAPIV1GamesCreatedCode int = 201
PostAPIV1GamesCreatedCode is the HTTP code returned for type PostAPIV1GamesCreated
const PostAPIV1GamesInternalServerErrorCode int = 500
PostAPIV1GamesInternalServerErrorCode is the HTTP code returned for type PostAPIV1GamesInternalServerError
const PostAPIV1GamesNotFoundCode int = 404
PostAPIV1GamesNotFoundCode is the HTTP code returned for type PostAPIV1GamesNotFound
const PutAPIV1GamesGameIDBadRequestCode int = 400
PutAPIV1GamesGameIDBadRequestCode is the HTTP code returned for type PutAPIV1GamesGameIDBadRequest
const PutAPIV1GamesGameIDInternalServerErrorCode int = 500
PutAPIV1GamesGameIDInternalServerErrorCode is the HTTP code returned for type PutAPIV1GamesGameIDInternalServerError
const PutAPIV1GamesGameIDNotFoundCode int = 404
PutAPIV1GamesGameIDNotFoundCode is the HTTP code returned for type PutAPIV1GamesGameIDNotFound
const PutAPIV1GamesGameIDOKCode int = 200
PutAPIV1GamesGameIDOKCode is the HTTP code returned for type PutAPIV1GamesGameIDOK
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeleteAPIV1GamesGameID ¶
type DeleteAPIV1GamesGameID struct { Context *middleware.Context Handler DeleteAPIV1GamesGameIDHandler }
DeleteAPIV1GamesGameID swagger:route DELETE /api/v1/games/{game_id} deleteApiV1GamesGameId
Delete a game.
func NewDeleteAPIV1GamesGameID ¶
func NewDeleteAPIV1GamesGameID(ctx *middleware.Context, handler DeleteAPIV1GamesGameIDHandler) *DeleteAPIV1GamesGameID
NewDeleteAPIV1GamesGameID creates a new http.Handler for the delete API v1 games game ID operation
func (*DeleteAPIV1GamesGameID) ServeHTTP ¶
func (o *DeleteAPIV1GamesGameID) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type DeleteAPIV1GamesGameIDBadRequest ¶
type DeleteAPIV1GamesGameIDBadRequest struct { }
DeleteAPIV1GamesGameIDBadRequest Bad request
swagger:response deleteApiV1GamesGameIdBadRequest
func NewDeleteAPIV1GamesGameIDBadRequest ¶
func NewDeleteAPIV1GamesGameIDBadRequest() *DeleteAPIV1GamesGameIDBadRequest
NewDeleteAPIV1GamesGameIDBadRequest creates DeleteAPIV1GamesGameIDBadRequest with default headers values
func (*DeleteAPIV1GamesGameIDBadRequest) WriteResponse ¶
func (o *DeleteAPIV1GamesGameIDBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteAPIV1GamesGameIDHandler ¶
type DeleteAPIV1GamesGameIDHandler interface {
Handle(DeleteAPIV1GamesGameIDParams) middleware.Responder
}
DeleteAPIV1GamesGameIDHandler interface for that can handle valid delete API v1 games game ID params
type DeleteAPIV1GamesGameIDHandlerFunc ¶
type DeleteAPIV1GamesGameIDHandlerFunc func(DeleteAPIV1GamesGameIDParams) middleware.Responder
DeleteAPIV1GamesGameIDHandlerFunc turns a function with the right signature into a delete API v1 games game ID handler
func (DeleteAPIV1GamesGameIDHandlerFunc) Handle ¶
func (fn DeleteAPIV1GamesGameIDHandlerFunc) Handle(params DeleteAPIV1GamesGameIDParams) middleware.Responder
Handle executing the request and returning a response
type DeleteAPIV1GamesGameIDInternalServerError ¶
type DeleteAPIV1GamesGameIDInternalServerError struct { }
DeleteAPIV1GamesGameIDInternalServerError Internal server error
swagger:response deleteApiV1GamesGameIdInternalServerError
func NewDeleteAPIV1GamesGameIDInternalServerError ¶
func NewDeleteAPIV1GamesGameIDInternalServerError() *DeleteAPIV1GamesGameIDInternalServerError
NewDeleteAPIV1GamesGameIDInternalServerError creates DeleteAPIV1GamesGameIDInternalServerError with default headers values
func (*DeleteAPIV1GamesGameIDInternalServerError) WriteResponse ¶
func (o *DeleteAPIV1GamesGameIDInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteAPIV1GamesGameIDNotFound ¶
type DeleteAPIV1GamesGameIDNotFound struct { }
DeleteAPIV1GamesGameIDNotFound Resource not found
swagger:response deleteApiV1GamesGameIdNotFound
func NewDeleteAPIV1GamesGameIDNotFound ¶
func NewDeleteAPIV1GamesGameIDNotFound() *DeleteAPIV1GamesGameIDNotFound
NewDeleteAPIV1GamesGameIDNotFound creates DeleteAPIV1GamesGameIDNotFound with default headers values
func (*DeleteAPIV1GamesGameIDNotFound) WriteResponse ¶
func (o *DeleteAPIV1GamesGameIDNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteAPIV1GamesGameIDOK ¶
type DeleteAPIV1GamesGameIDOK struct { }
DeleteAPIV1GamesGameIDOK Game successfully deleted
swagger:response deleteApiV1GamesGameIdOK
func NewDeleteAPIV1GamesGameIDOK ¶
func NewDeleteAPIV1GamesGameIDOK() *DeleteAPIV1GamesGameIDOK
NewDeleteAPIV1GamesGameIDOK creates DeleteAPIV1GamesGameIDOK with default headers values
func (*DeleteAPIV1GamesGameIDOK) WriteResponse ¶
func (o *DeleteAPIV1GamesGameIDOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteAPIV1GamesGameIDParams ¶
type DeleteAPIV1GamesGameIDParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Game id Required: true In: path */ GameID strfmt.UUID }
DeleteAPIV1GamesGameIDParams contains all the bound params for the delete API v1 games game ID operation typically these are obtained from a http.Request
swagger:parameters DeleteAPIV1GamesGameID
func NewDeleteAPIV1GamesGameIDParams ¶
func NewDeleteAPIV1GamesGameIDParams() DeleteAPIV1GamesGameIDParams
NewDeleteAPIV1GamesGameIDParams creates a new DeleteAPIV1GamesGameIDParams object no default values defined in spec.
func (*DeleteAPIV1GamesGameIDParams) BindRequest ¶
func (o *DeleteAPIV1GamesGameIDParams) 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 NewDeleteAPIV1GamesGameIDParams() beforehand.
type DeleteAPIV1GamesGameIDURL ¶
type DeleteAPIV1GamesGameIDURL struct { GameID strfmt.UUID // contains filtered or unexported fields }
DeleteAPIV1GamesGameIDURL generates an URL for the delete API v1 games game ID operation
func (*DeleteAPIV1GamesGameIDURL) Build ¶
func (o *DeleteAPIV1GamesGameIDURL) Build() (*url.URL, error)
Build a url path and query string
func (*DeleteAPIV1GamesGameIDURL) BuildFull ¶
func (o *DeleteAPIV1GamesGameIDURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*DeleteAPIV1GamesGameIDURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*DeleteAPIV1GamesGameIDURL) SetBasePath ¶
func (o *DeleteAPIV1GamesGameIDURL) 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 (*DeleteAPIV1GamesGameIDURL) String ¶
func (o *DeleteAPIV1GamesGameIDURL) String() string
String returns the string representation of the path with query string
func (*DeleteAPIV1GamesGameIDURL) StringFull ¶
func (o *DeleteAPIV1GamesGameIDURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*DeleteAPIV1GamesGameIDURL) WithBasePath ¶
func (o *DeleteAPIV1GamesGameIDURL) WithBasePath(bp string) *DeleteAPIV1GamesGameIDURL
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 GetAPIV1Games ¶
type GetAPIV1Games struct { Context *middleware.Context Handler GetAPIV1GamesHandler }
GetAPIV1Games swagger:route GET /api/v1/games getApiV1Games
Get all games.
func NewGetAPIV1Games ¶
func NewGetAPIV1Games(ctx *middleware.Context, handler GetAPIV1GamesHandler) *GetAPIV1Games
NewGetAPIV1Games creates a new http.Handler for the get API v1 games operation
func (*GetAPIV1Games) ServeHTTP ¶
func (o *GetAPIV1Games) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetAPIV1GamesBadRequest ¶
type GetAPIV1GamesBadRequest struct { }
GetAPIV1GamesBadRequest Bad request
swagger:response getApiV1GamesBadRequest
func NewGetAPIV1GamesBadRequest ¶
func NewGetAPIV1GamesBadRequest() *GetAPIV1GamesBadRequest
NewGetAPIV1GamesBadRequest creates GetAPIV1GamesBadRequest with default headers values
func (*GetAPIV1GamesBadRequest) WriteResponse ¶
func (o *GetAPIV1GamesBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetAPIV1GamesGameID ¶
type GetAPIV1GamesGameID struct { Context *middleware.Context Handler GetAPIV1GamesGameIDHandler }
GetAPIV1GamesGameID swagger:route GET /api/v1/games/{game_id} getApiV1GamesGameId
Get a game.
func NewGetAPIV1GamesGameID ¶
func NewGetAPIV1GamesGameID(ctx *middleware.Context, handler GetAPIV1GamesGameIDHandler) *GetAPIV1GamesGameID
NewGetAPIV1GamesGameID creates a new http.Handler for the get API v1 games game ID operation
func (*GetAPIV1GamesGameID) ServeHTTP ¶
func (o *GetAPIV1GamesGameID) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetAPIV1GamesGameIDBadRequest ¶
type GetAPIV1GamesGameIDBadRequest struct { }
GetAPIV1GamesGameIDBadRequest Bad request
swagger:response getApiV1GamesGameIdBadRequest
func NewGetAPIV1GamesGameIDBadRequest ¶
func NewGetAPIV1GamesGameIDBadRequest() *GetAPIV1GamesGameIDBadRequest
NewGetAPIV1GamesGameIDBadRequest creates GetAPIV1GamesGameIDBadRequest with default headers values
func (*GetAPIV1GamesGameIDBadRequest) WriteResponse ¶
func (o *GetAPIV1GamesGameIDBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetAPIV1GamesGameIDHandler ¶
type GetAPIV1GamesGameIDHandler interface {
Handle(GetAPIV1GamesGameIDParams) middleware.Responder
}
GetAPIV1GamesGameIDHandler interface for that can handle valid get API v1 games game ID params
type GetAPIV1GamesGameIDHandlerFunc ¶
type GetAPIV1GamesGameIDHandlerFunc func(GetAPIV1GamesGameIDParams) middleware.Responder
GetAPIV1GamesGameIDHandlerFunc turns a function with the right signature into a get API v1 games game ID handler
func (GetAPIV1GamesGameIDHandlerFunc) Handle ¶
func (fn GetAPIV1GamesGameIDHandlerFunc) Handle(params GetAPIV1GamesGameIDParams) middleware.Responder
Handle executing the request and returning a response
type GetAPIV1GamesGameIDInternalServerError ¶
type GetAPIV1GamesGameIDInternalServerError struct { }
GetAPIV1GamesGameIDInternalServerError Internal server error
swagger:response getApiV1GamesGameIdInternalServerError
func NewGetAPIV1GamesGameIDInternalServerError ¶
func NewGetAPIV1GamesGameIDInternalServerError() *GetAPIV1GamesGameIDInternalServerError
NewGetAPIV1GamesGameIDInternalServerError creates GetAPIV1GamesGameIDInternalServerError with default headers values
func (*GetAPIV1GamesGameIDInternalServerError) WriteResponse ¶
func (o *GetAPIV1GamesGameIDInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetAPIV1GamesGameIDNotFound ¶
type GetAPIV1GamesGameIDNotFound struct { }
GetAPIV1GamesGameIDNotFound Resource not found
swagger:response getApiV1GamesGameIdNotFound
func NewGetAPIV1GamesGameIDNotFound ¶
func NewGetAPIV1GamesGameIDNotFound() *GetAPIV1GamesGameIDNotFound
NewGetAPIV1GamesGameIDNotFound creates GetAPIV1GamesGameIDNotFound with default headers values
func (*GetAPIV1GamesGameIDNotFound) WriteResponse ¶
func (o *GetAPIV1GamesGameIDNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetAPIV1GamesGameIDOK ¶
GetAPIV1GamesGameIDOK Successful response, returns the game
swagger:response getApiV1GamesGameIdOK
func NewGetAPIV1GamesGameIDOK ¶
func NewGetAPIV1GamesGameIDOK() *GetAPIV1GamesGameIDOK
NewGetAPIV1GamesGameIDOK creates GetAPIV1GamesGameIDOK with default headers values
func (*GetAPIV1GamesGameIDOK) SetPayload ¶
func (o *GetAPIV1GamesGameIDOK) SetPayload(payload *models.Game)
SetPayload sets the payload to the get Api v1 games game Id o k response
func (*GetAPIV1GamesGameIDOK) WithPayload ¶
func (o *GetAPIV1GamesGameIDOK) WithPayload(payload *models.Game) *GetAPIV1GamesGameIDOK
WithPayload adds the payload to the get Api v1 games game Id o k response
func (*GetAPIV1GamesGameIDOK) WriteResponse ¶
func (o *GetAPIV1GamesGameIDOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetAPIV1GamesGameIDParams ¶
type GetAPIV1GamesGameIDParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Game id Required: true In: path */ GameID strfmt.UUID }
GetAPIV1GamesGameIDParams contains all the bound params for the get API v1 games game ID operation typically these are obtained from a http.Request
swagger:parameters GetAPIV1GamesGameID
func NewGetAPIV1GamesGameIDParams ¶
func NewGetAPIV1GamesGameIDParams() GetAPIV1GamesGameIDParams
NewGetAPIV1GamesGameIDParams creates a new GetAPIV1GamesGameIDParams object no default values defined in spec.
func (*GetAPIV1GamesGameIDParams) BindRequest ¶
func (o *GetAPIV1GamesGameIDParams) 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 NewGetAPIV1GamesGameIDParams() beforehand.
type GetAPIV1GamesGameIDURL ¶
GetAPIV1GamesGameIDURL generates an URL for the get API v1 games game ID operation
func (*GetAPIV1GamesGameIDURL) Build ¶
func (o *GetAPIV1GamesGameIDURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetAPIV1GamesGameIDURL) BuildFull ¶
func (o *GetAPIV1GamesGameIDURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetAPIV1GamesGameIDURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetAPIV1GamesGameIDURL) SetBasePath ¶
func (o *GetAPIV1GamesGameIDURL) 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 (*GetAPIV1GamesGameIDURL) String ¶
func (o *GetAPIV1GamesGameIDURL) String() string
String returns the string representation of the path with query string
func (*GetAPIV1GamesGameIDURL) StringFull ¶
func (o *GetAPIV1GamesGameIDURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetAPIV1GamesGameIDURL) WithBasePath ¶
func (o *GetAPIV1GamesGameIDURL) WithBasePath(bp string) *GetAPIV1GamesGameIDURL
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 GetAPIV1GamesHandler ¶
type GetAPIV1GamesHandler interface {
Handle(GetAPIV1GamesParams) middleware.Responder
}
GetAPIV1GamesHandler interface for that can handle valid get API v1 games params
type GetAPIV1GamesHandlerFunc ¶
type GetAPIV1GamesHandlerFunc func(GetAPIV1GamesParams) middleware.Responder
GetAPIV1GamesHandlerFunc turns a function with the right signature into a get API v1 games handler
func (GetAPIV1GamesHandlerFunc) Handle ¶
func (fn GetAPIV1GamesHandlerFunc) Handle(params GetAPIV1GamesParams) middleware.Responder
Handle executing the request and returning a response
type GetAPIV1GamesInternalServerError ¶
type GetAPIV1GamesInternalServerError struct { }
GetAPIV1GamesInternalServerError Internal server error
swagger:response getApiV1GamesInternalServerError
func NewGetAPIV1GamesInternalServerError ¶
func NewGetAPIV1GamesInternalServerError() *GetAPIV1GamesInternalServerError
NewGetAPIV1GamesInternalServerError creates GetAPIV1GamesInternalServerError with default headers values
func (*GetAPIV1GamesInternalServerError) WriteResponse ¶
func (o *GetAPIV1GamesInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetAPIV1GamesNotFound ¶
type GetAPIV1GamesNotFound struct { }
GetAPIV1GamesNotFound Resource not found
swagger:response getApiV1GamesNotFound
func NewGetAPIV1GamesNotFound ¶
func NewGetAPIV1GamesNotFound() *GetAPIV1GamesNotFound
NewGetAPIV1GamesNotFound creates GetAPIV1GamesNotFound with default headers values
func (*GetAPIV1GamesNotFound) WriteResponse ¶
func (o *GetAPIV1GamesNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetAPIV1GamesOK ¶
GetAPIV1GamesOK Successful response, returns an array of games, returns an empty array if no users found
swagger:response getApiV1GamesOK
func NewGetAPIV1GamesOK ¶
func NewGetAPIV1GamesOK() *GetAPIV1GamesOK
NewGetAPIV1GamesOK creates GetAPIV1GamesOK with default headers values
func (*GetAPIV1GamesOK) SetPayload ¶
func (o *GetAPIV1GamesOK) SetPayload(payload []*models.Game)
SetPayload sets the payload to the get Api v1 games o k response
func (*GetAPIV1GamesOK) WithPayload ¶
func (o *GetAPIV1GamesOK) WithPayload(payload []*models.Game) *GetAPIV1GamesOK
WithPayload adds the payload to the get Api v1 games o k response
func (*GetAPIV1GamesOK) WriteResponse ¶
func (o *GetAPIV1GamesOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetAPIV1GamesParams ¶
GetAPIV1GamesParams contains all the bound params for the get API v1 games operation typically these are obtained from a http.Request
swagger:parameters GetAPIV1Games
func NewGetAPIV1GamesParams ¶
func NewGetAPIV1GamesParams() GetAPIV1GamesParams
NewGetAPIV1GamesParams creates a new GetAPIV1GamesParams object no default values defined in spec.
func (*GetAPIV1GamesParams) BindRequest ¶
func (o *GetAPIV1GamesParams) 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 NewGetAPIV1GamesParams() beforehand.
type GetAPIV1GamesURL ¶
type GetAPIV1GamesURL struct {
// contains filtered or unexported fields
}
GetAPIV1GamesURL generates an URL for the get API v1 games operation
func (*GetAPIV1GamesURL) Build ¶
func (o *GetAPIV1GamesURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetAPIV1GamesURL) BuildFull ¶
func (o *GetAPIV1GamesURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetAPIV1GamesURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetAPIV1GamesURL) SetBasePath ¶
func (o *GetAPIV1GamesURL) 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 (*GetAPIV1GamesURL) String ¶
func (o *GetAPIV1GamesURL) String() string
String returns the string representation of the path with query string
func (*GetAPIV1GamesURL) StringFull ¶
func (o *GetAPIV1GamesURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetAPIV1GamesURL) WithBasePath ¶
func (o *GetAPIV1GamesURL) WithBasePath(bp string) *GetAPIV1GamesURL
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 PostAPIV1Games ¶
type PostAPIV1Games struct { Context *middleware.Context Handler PostAPIV1GamesHandler }
PostAPIV1Games swagger:route POST /api/v1/games postApiV1Games
Start a new game.
func NewPostAPIV1Games ¶
func NewPostAPIV1Games(ctx *middleware.Context, handler PostAPIV1GamesHandler) *PostAPIV1Games
NewPostAPIV1Games creates a new http.Handler for the post API v1 games operation
func (*PostAPIV1Games) ServeHTTP ¶
func (o *PostAPIV1Games) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type PostAPIV1GamesBadRequest ¶
type PostAPIV1GamesBadRequest struct { /* In: Body */ Payload *PostAPIV1GamesBadRequestBody `json:"body,omitempty"` }
PostAPIV1GamesBadRequest Bad request
swagger:response postApiV1GamesBadRequest
func NewPostAPIV1GamesBadRequest ¶
func NewPostAPIV1GamesBadRequest() *PostAPIV1GamesBadRequest
NewPostAPIV1GamesBadRequest creates PostAPIV1GamesBadRequest with default headers values
func (*PostAPIV1GamesBadRequest) SetPayload ¶
func (o *PostAPIV1GamesBadRequest) SetPayload(payload *PostAPIV1GamesBadRequestBody)
SetPayload sets the payload to the post Api v1 games bad request response
func (*PostAPIV1GamesBadRequest) WithPayload ¶
func (o *PostAPIV1GamesBadRequest) WithPayload(payload *PostAPIV1GamesBadRequestBody) *PostAPIV1GamesBadRequest
WithPayload adds the payload to the post Api v1 games bad request response
func (*PostAPIV1GamesBadRequest) WriteResponse ¶
func (o *PostAPIV1GamesBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PostAPIV1GamesBadRequestBody ¶
type PostAPIV1GamesBadRequestBody struct { // Why the game failed to start Reason string `json:"reason,omitempty"` }
PostAPIV1GamesBadRequestBody post API v1 games bad request body swagger:model PostAPIV1GamesBadRequestBody
func (*PostAPIV1GamesBadRequestBody) MarshalBinary ¶
func (o *PostAPIV1GamesBadRequestBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PostAPIV1GamesBadRequestBody) UnmarshalBinary ¶
func (o *PostAPIV1GamesBadRequestBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type PostAPIV1GamesCreated ¶
type PostAPIV1GamesCreated struct { /*URL of the started game */ Location string `json:"Location"` /* In: Body */ Payload *PostAPIV1GamesCreatedBody `json:"body,omitempty"` }
PostAPIV1GamesCreated Game successfully started
swagger:response postApiV1GamesCreated
func NewPostAPIV1GamesCreated ¶
func NewPostAPIV1GamesCreated() *PostAPIV1GamesCreated
NewPostAPIV1GamesCreated creates PostAPIV1GamesCreated with default headers values
func (*PostAPIV1GamesCreated) SetLocation ¶
func (o *PostAPIV1GamesCreated) SetLocation(location string)
SetLocation sets the location to the post Api v1 games created response
func (*PostAPIV1GamesCreated) SetPayload ¶
func (o *PostAPIV1GamesCreated) SetPayload(payload *PostAPIV1GamesCreatedBody)
SetPayload sets the payload to the post Api v1 games created response
func (*PostAPIV1GamesCreated) WithLocation ¶
func (o *PostAPIV1GamesCreated) WithLocation(location string) *PostAPIV1GamesCreated
WithLocation adds the location to the post Api v1 games created response
func (*PostAPIV1GamesCreated) WithPayload ¶
func (o *PostAPIV1GamesCreated) WithPayload(payload *PostAPIV1GamesCreatedBody) *PostAPIV1GamesCreated
WithPayload adds the payload to the post Api v1 games created response
func (*PostAPIV1GamesCreated) WriteResponse ¶
func (o *PostAPIV1GamesCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PostAPIV1GamesCreatedBody ¶
type PostAPIV1GamesCreatedBody struct { // URL of the started game Location string `json:"location,omitempty"` }
PostAPIV1GamesCreatedBody post API v1 games created body swagger:model PostAPIV1GamesCreatedBody
func (*PostAPIV1GamesCreatedBody) MarshalBinary ¶
func (o *PostAPIV1GamesCreatedBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PostAPIV1GamesCreatedBody) UnmarshalBinary ¶
func (o *PostAPIV1GamesCreatedBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type PostAPIV1GamesHandler ¶
type PostAPIV1GamesHandler interface {
Handle(PostAPIV1GamesParams) middleware.Responder
}
PostAPIV1GamesHandler interface for that can handle valid post API v1 games params
type PostAPIV1GamesHandlerFunc ¶
type PostAPIV1GamesHandlerFunc func(PostAPIV1GamesParams) middleware.Responder
PostAPIV1GamesHandlerFunc turns a function with the right signature into a post API v1 games handler
func (PostAPIV1GamesHandlerFunc) Handle ¶
func (fn PostAPIV1GamesHandlerFunc) Handle(params PostAPIV1GamesParams) middleware.Responder
Handle executing the request and returning a response
type PostAPIV1GamesInternalServerError ¶
type PostAPIV1GamesInternalServerError struct { }
PostAPIV1GamesInternalServerError Internal server error
swagger:response postApiV1GamesInternalServerError
func NewPostAPIV1GamesInternalServerError ¶
func NewPostAPIV1GamesInternalServerError() *PostAPIV1GamesInternalServerError
NewPostAPIV1GamesInternalServerError creates PostAPIV1GamesInternalServerError with default headers values
func (*PostAPIV1GamesInternalServerError) WriteResponse ¶
func (o *PostAPIV1GamesInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PostAPIV1GamesNotFound ¶
type PostAPIV1GamesNotFound struct { }
PostAPIV1GamesNotFound Resource not found
swagger:response postApiV1GamesNotFound
func NewPostAPIV1GamesNotFound ¶
func NewPostAPIV1GamesNotFound() *PostAPIV1GamesNotFound
NewPostAPIV1GamesNotFound creates PostAPIV1GamesNotFound with default headers values
func (*PostAPIV1GamesNotFound) WriteResponse ¶
func (o *PostAPIV1GamesNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PostAPIV1GamesParams ¶
type PostAPIV1GamesParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: body */ Game *models.Game }
PostAPIV1GamesParams contains all the bound params for the post API v1 games operation typically these are obtained from a http.Request
swagger:parameters PostAPIV1Games
func NewPostAPIV1GamesParams ¶
func NewPostAPIV1GamesParams() PostAPIV1GamesParams
NewPostAPIV1GamesParams creates a new PostAPIV1GamesParams object no default values defined in spec.
func (*PostAPIV1GamesParams) BindRequest ¶
func (o *PostAPIV1GamesParams) 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 NewPostAPIV1GamesParams() beforehand.
type PostAPIV1GamesURL ¶
type PostAPIV1GamesURL struct {
// contains filtered or unexported fields
}
PostAPIV1GamesURL generates an URL for the post API v1 games operation
func (*PostAPIV1GamesURL) Build ¶
func (o *PostAPIV1GamesURL) Build() (*url.URL, error)
Build a url path and query string
func (*PostAPIV1GamesURL) BuildFull ¶
func (o *PostAPIV1GamesURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*PostAPIV1GamesURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*PostAPIV1GamesURL) SetBasePath ¶
func (o *PostAPIV1GamesURL) 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 (*PostAPIV1GamesURL) String ¶
func (o *PostAPIV1GamesURL) String() string
String returns the string representation of the path with query string
func (*PostAPIV1GamesURL) StringFull ¶
func (o *PostAPIV1GamesURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*PostAPIV1GamesURL) WithBasePath ¶
func (o *PostAPIV1GamesURL) WithBasePath(bp string) *PostAPIV1GamesURL
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 PutAPIV1GamesGameID ¶
type PutAPIV1GamesGameID struct { Context *middleware.Context Handler PutAPIV1GamesGameIDHandler }
PutAPIV1GamesGameID swagger:route PUT /api/v1/games/{game_id} putApiV1GamesGameId
Post a new move to a game.
func NewPutAPIV1GamesGameID ¶
func NewPutAPIV1GamesGameID(ctx *middleware.Context, handler PutAPIV1GamesGameIDHandler) *PutAPIV1GamesGameID
NewPutAPIV1GamesGameID creates a new http.Handler for the put API v1 games game ID operation
func (*PutAPIV1GamesGameID) ServeHTTP ¶
func (o *PutAPIV1GamesGameID) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type PutAPIV1GamesGameIDBadRequest ¶
type PutAPIV1GamesGameIDBadRequest struct { /* In: Body */ Payload *PutAPIV1GamesGameIDBadRequestBody `json:"body,omitempty"` }
PutAPIV1GamesGameIDBadRequest Bad request
swagger:response putApiV1GamesGameIdBadRequest
func NewPutAPIV1GamesGameIDBadRequest ¶
func NewPutAPIV1GamesGameIDBadRequest() *PutAPIV1GamesGameIDBadRequest
NewPutAPIV1GamesGameIDBadRequest creates PutAPIV1GamesGameIDBadRequest with default headers values
func (*PutAPIV1GamesGameIDBadRequest) SetPayload ¶
func (o *PutAPIV1GamesGameIDBadRequest) SetPayload(payload *PutAPIV1GamesGameIDBadRequestBody)
SetPayload sets the payload to the put Api v1 games game Id bad request response
func (*PutAPIV1GamesGameIDBadRequest) WithPayload ¶
func (o *PutAPIV1GamesGameIDBadRequest) WithPayload(payload *PutAPIV1GamesGameIDBadRequestBody) *PutAPIV1GamesGameIDBadRequest
WithPayload adds the payload to the put Api v1 games game Id bad request response
func (*PutAPIV1GamesGameIDBadRequest) WriteResponse ¶
func (o *PutAPIV1GamesGameIDBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PutAPIV1GamesGameIDBadRequestBody ¶
type PutAPIV1GamesGameIDBadRequestBody struct { // Why the game failed to update Reason string `json:"reason,omitempty"` }
PutAPIV1GamesGameIDBadRequestBody put API v1 games game ID bad request body swagger:model PutAPIV1GamesGameIDBadRequestBody
func (*PutAPIV1GamesGameIDBadRequestBody) MarshalBinary ¶
func (o *PutAPIV1GamesGameIDBadRequestBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PutAPIV1GamesGameIDBadRequestBody) UnmarshalBinary ¶
func (o *PutAPIV1GamesGameIDBadRequestBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type PutAPIV1GamesGameIDHandler ¶
type PutAPIV1GamesGameIDHandler interface {
Handle(PutAPIV1GamesGameIDParams) middleware.Responder
}
PutAPIV1GamesGameIDHandler interface for that can handle valid put API v1 games game ID params
type PutAPIV1GamesGameIDHandlerFunc ¶
type PutAPIV1GamesGameIDHandlerFunc func(PutAPIV1GamesGameIDParams) middleware.Responder
PutAPIV1GamesGameIDHandlerFunc turns a function with the right signature into a put API v1 games game ID handler
func (PutAPIV1GamesGameIDHandlerFunc) Handle ¶
func (fn PutAPIV1GamesGameIDHandlerFunc) Handle(params PutAPIV1GamesGameIDParams) middleware.Responder
Handle executing the request and returning a response
type PutAPIV1GamesGameIDInternalServerError ¶
type PutAPIV1GamesGameIDInternalServerError struct { }
PutAPIV1GamesGameIDInternalServerError Internal server error
swagger:response putApiV1GamesGameIdInternalServerError
func NewPutAPIV1GamesGameIDInternalServerError ¶
func NewPutAPIV1GamesGameIDInternalServerError() *PutAPIV1GamesGameIDInternalServerError
NewPutAPIV1GamesGameIDInternalServerError creates PutAPIV1GamesGameIDInternalServerError with default headers values
func (*PutAPIV1GamesGameIDInternalServerError) WriteResponse ¶
func (o *PutAPIV1GamesGameIDInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PutAPIV1GamesGameIDNotFound ¶
type PutAPIV1GamesGameIDNotFound struct { }
PutAPIV1GamesGameIDNotFound Resource not found
swagger:response putApiV1GamesGameIdNotFound
func NewPutAPIV1GamesGameIDNotFound ¶
func NewPutAPIV1GamesGameIDNotFound() *PutAPIV1GamesGameIDNotFound
NewPutAPIV1GamesGameIDNotFound creates PutAPIV1GamesGameIDNotFound with default headers values
func (*PutAPIV1GamesGameIDNotFound) WriteResponse ¶
func (o *PutAPIV1GamesGameIDNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PutAPIV1GamesGameIDOK ¶
PutAPIV1GamesGameIDOK Move successfully registered, also provide backend's response move in response
swagger:response putApiV1GamesGameIdOK
func NewPutAPIV1GamesGameIDOK ¶
func NewPutAPIV1GamesGameIDOK() *PutAPIV1GamesGameIDOK
NewPutAPIV1GamesGameIDOK creates PutAPIV1GamesGameIDOK with default headers values
func (*PutAPIV1GamesGameIDOK) SetPayload ¶
func (o *PutAPIV1GamesGameIDOK) SetPayload(payload *models.Game)
SetPayload sets the payload to the put Api v1 games game Id o k response
func (*PutAPIV1GamesGameIDOK) WithPayload ¶
func (o *PutAPIV1GamesGameIDOK) WithPayload(payload *models.Game) *PutAPIV1GamesGameIDOK
WithPayload adds the payload to the put Api v1 games game Id o k response
func (*PutAPIV1GamesGameIDOK) WriteResponse ¶
func (o *PutAPIV1GamesGameIDOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PutAPIV1GamesGameIDParams ¶
type PutAPIV1GamesGameIDParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: body */ Game *models.Game /*Game id Required: true In: path */ GameID strfmt.UUID }
PutAPIV1GamesGameIDParams contains all the bound params for the put API v1 games game ID operation typically these are obtained from a http.Request
swagger:parameters PutAPIV1GamesGameID
func NewPutAPIV1GamesGameIDParams ¶
func NewPutAPIV1GamesGameIDParams() PutAPIV1GamesGameIDParams
NewPutAPIV1GamesGameIDParams creates a new PutAPIV1GamesGameIDParams object no default values defined in spec.
func (*PutAPIV1GamesGameIDParams) BindRequest ¶
func (o *PutAPIV1GamesGameIDParams) 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 NewPutAPIV1GamesGameIDParams() beforehand.
type PutAPIV1GamesGameIDURL ¶
PutAPIV1GamesGameIDURL generates an URL for the put API v1 games game ID operation
func (*PutAPIV1GamesGameIDURL) Build ¶
func (o *PutAPIV1GamesGameIDURL) Build() (*url.URL, error)
Build a url path and query string
func (*PutAPIV1GamesGameIDURL) BuildFull ¶
func (o *PutAPIV1GamesGameIDURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*PutAPIV1GamesGameIDURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*PutAPIV1GamesGameIDURL) SetBasePath ¶
func (o *PutAPIV1GamesGameIDURL) 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 (*PutAPIV1GamesGameIDURL) String ¶
func (o *PutAPIV1GamesGameIDURL) String() string
String returns the string representation of the path with query string
func (*PutAPIV1GamesGameIDURL) StringFull ¶
func (o *PutAPIV1GamesGameIDURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*PutAPIV1GamesGameIDURL) WithBasePath ¶
func (o *PutAPIV1GamesGameIDURL) WithBasePath(bp string) *PutAPIV1GamesGameIDURL
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 TictactoeAPI ¶
type TictactoeAPI 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 a "application/json" mime type JSONConsumer runtime.Consumer // JSONProducer registers a producer for a "application/json" mime type JSONProducer runtime.Producer // DeleteAPIV1GamesGameIDHandler sets the operation handler for the delete API v1 games game ID operation DeleteAPIV1GamesGameIDHandler DeleteAPIV1GamesGameIDHandler // GetAPIV1GamesHandler sets the operation handler for the get API v1 games operation GetAPIV1GamesHandler GetAPIV1GamesHandler // GetAPIV1GamesGameIDHandler sets the operation handler for the get API v1 games game ID operation GetAPIV1GamesGameIDHandler GetAPIV1GamesGameIDHandler // PostAPIV1GamesHandler sets the operation handler for the post API v1 games operation PostAPIV1GamesHandler PostAPIV1GamesHandler // PutAPIV1GamesGameIDHandler sets the operation handler for the put API v1 games game ID operation PutAPIV1GamesGameIDHandler PutAPIV1GamesGameIDHandler // 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) // 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 }
TictactoeAPI the tictactoe API
func NewTictactoeAPI ¶
func NewTictactoeAPI(spec *loads.Document) *TictactoeAPI
NewTictactoeAPI creates a new Tictactoe instance
func (*TictactoeAPI) AuthenticatorsFor ¶
func (o *TictactoeAPI) AuthenticatorsFor(schemes map[string]spec.SecurityScheme) map[string]runtime.Authenticator
AuthenticatorsFor gets the authenticators for the specified security schemes
func (*TictactoeAPI) Authorizer ¶
func (o *TictactoeAPI) Authorizer() runtime.Authorizer
Authorizer returns the registered authorizer
func (*TictactoeAPI) ConsumersFor ¶
func (o *TictactoeAPI) ConsumersFor(mediaTypes []string) map[string]runtime.Consumer
ConsumersFor gets the consumers for the specified media types
func (*TictactoeAPI) Context ¶
func (o *TictactoeAPI) Context() *middleware.Context
Context returns the middleware context for the tictactoe API
func (*TictactoeAPI) DefaultConsumes ¶
func (o *TictactoeAPI) DefaultConsumes() string
DefaultConsumes returns the default consumes media type
func (*TictactoeAPI) DefaultProduces ¶
func (o *TictactoeAPI) DefaultProduces() string
DefaultProduces returns the default produces media type
func (*TictactoeAPI) Formats ¶
func (o *TictactoeAPI) Formats() strfmt.Registry
Formats returns the registered string formats
func (*TictactoeAPI) HandlerFor ¶
func (o *TictactoeAPI) HandlerFor(method, path string) (http.Handler, bool)
HandlerFor gets a http.Handler for the provided operation method and path
func (*TictactoeAPI) Init ¶
func (o *TictactoeAPI) Init()
Init allows you to just initialize the handler cache, you can then recompose the middleware as you see fit
func (*TictactoeAPI) ProducersFor ¶
func (o *TictactoeAPI) ProducersFor(mediaTypes []string) map[string]runtime.Producer
ProducersFor gets the producers for the specified media types
func (*TictactoeAPI) RegisterConsumer ¶
func (o *TictactoeAPI) RegisterConsumer(mediaType string, consumer runtime.Consumer)
RegisterConsumer allows you to add (or override) a consumer for a media type.
func (*TictactoeAPI) RegisterFormat ¶
func (o *TictactoeAPI) RegisterFormat(name string, format strfmt.Format, validator strfmt.Validator)
RegisterFormat registers a custom format validator
func (*TictactoeAPI) RegisterProducer ¶
func (o *TictactoeAPI) RegisterProducer(mediaType string, producer runtime.Producer)
RegisterProducer allows you to add (or override) a producer for a media type.
func (*TictactoeAPI) Serve ¶
func (o *TictactoeAPI) 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 (*TictactoeAPI) ServeErrorFor ¶
func (o *TictactoeAPI) ServeErrorFor(operationID string) func(http.ResponseWriter, *http.Request, error)
ServeErrorFor gets a error handler for a given operation id
func (*TictactoeAPI) SetDefaultConsumes ¶
func (o *TictactoeAPI) SetDefaultConsumes(mediaType string)
SetDefaultConsumes returns the default consumes media type
func (*TictactoeAPI) SetDefaultProduces ¶
func (o *TictactoeAPI) SetDefaultProduces(mediaType string)
SetDefaultProduces sets the default produces media type
func (*TictactoeAPI) SetSpec ¶
func (o *TictactoeAPI) SetSpec(spec *loads.Document)
SetSpec sets a spec that will be served for the clients.
func (*TictactoeAPI) Validate ¶
func (o *TictactoeAPI) Validate() error
Validate validates the registrations in the TictactoeAPI
Source Files ¶
- delete_api_v1_games_game_id.go
- delete_api_v1_games_game_id_parameters.go
- delete_api_v1_games_game_id_responses.go
- delete_api_v1_games_game_id_urlbuilder.go
- get_api_v1_games.go
- get_api_v1_games_game_id.go
- get_api_v1_games_game_id_parameters.go
- get_api_v1_games_game_id_responses.go
- get_api_v1_games_game_id_urlbuilder.go
- get_api_v1_games_parameters.go
- get_api_v1_games_responses.go
- get_api_v1_games_urlbuilder.go
- post_api_v1_games.go
- post_api_v1_games_parameters.go
- post_api_v1_games_responses.go
- post_api_v1_games_urlbuilder.go
- put_api_v1_games_game_id.go
- put_api_v1_games_game_id_parameters.go
- put_api_v1_games_game_id_responses.go
- put_api_v1_games_game_id_urlbuilder.go
- tictactoe_api.go