Documentation ¶
Index ¶
- Constants
- type PostRostersIDAddPlayer
- type PostRostersIDAddPlayerCreated
- type PostRostersIDAddPlayerForbidden
- type PostRostersIDAddPlayerHandler
- type PostRostersIDAddPlayerHandlerFunc
- type PostRostersIDAddPlayerInternalServerError
- func (o *PostRostersIDAddPlayerInternalServerError) SetPayload(payload *models.Error)
- func (o *PostRostersIDAddPlayerInternalServerError) WithPayload(payload *models.Error) *PostRostersIDAddPlayerInternalServerError
- func (o *PostRostersIDAddPlayerInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type PostRostersIDAddPlayerNotFound
- type PostRostersIDAddPlayerParams
- type PostRostersIDAddPlayerURL
- func (o *PostRostersIDAddPlayerURL) Build() (*url.URL, error)
- func (o *PostRostersIDAddPlayerURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *PostRostersIDAddPlayerURL) Must(u *url.URL, err error) *url.URL
- func (o *PostRostersIDAddPlayerURL) SetBasePath(bp string)
- func (o *PostRostersIDAddPlayerURL) String() string
- func (o *PostRostersIDAddPlayerURL) StringFull(scheme, host string) string
- func (o *PostRostersIDAddPlayerURL) WithBasePath(bp string) *PostRostersIDAddPlayerURL
- type PostRostersIDRearrange
- type PostRostersIDRearrangeBadRequest
- type PostRostersIDRearrangeForbidden
- type PostRostersIDRearrangeHandler
- type PostRostersIDRearrangeHandlerFunc
- type PostRostersIDRearrangeInternalServerError
- func (o *PostRostersIDRearrangeInternalServerError) SetPayload(payload *models.Error)
- func (o *PostRostersIDRearrangeInternalServerError) WithPayload(payload *models.Error) *PostRostersIDRearrangeInternalServerError
- func (o *PostRostersIDRearrangeInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type PostRostersIDRearrangeNotFound
- type PostRostersIDRearrangeOK
- type PostRostersIDRearrangeParams
- type PostRostersIDRearrangeURL
- func (o *PostRostersIDRearrangeURL) Build() (*url.URL, error)
- func (o *PostRostersIDRearrangeURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *PostRostersIDRearrangeURL) Must(u *url.URL, err error) *url.URL
- func (o *PostRostersIDRearrangeURL) SetBasePath(bp string)
- func (o *PostRostersIDRearrangeURL) String() string
- func (o *PostRostersIDRearrangeURL) StringFull(scheme, host string) string
- func (o *PostRostersIDRearrangeURL) WithBasePath(bp string) *PostRostersIDRearrangeURL
Constants ¶
const PostRostersIDAddPlayerCreatedCode int = 201
PostRostersIDAddPlayerCreatedCode is the HTTP code returned for type PostRostersIDAddPlayerCreated
const PostRostersIDAddPlayerForbiddenCode int = 403
PostRostersIDAddPlayerForbiddenCode is the HTTP code returned for type PostRostersIDAddPlayerForbidden
const PostRostersIDAddPlayerInternalServerErrorCode int = 500
PostRostersIDAddPlayerInternalServerErrorCode is the HTTP code returned for type PostRostersIDAddPlayerInternalServerError
const PostRostersIDAddPlayerNotFoundCode int = 404
PostRostersIDAddPlayerNotFoundCode is the HTTP code returned for type PostRostersIDAddPlayerNotFound
const PostRostersIDRearrangeBadRequestCode int = 400
PostRostersIDRearrangeBadRequestCode is the HTTP code returned for type PostRostersIDRearrangeBadRequest
const PostRostersIDRearrangeForbiddenCode int = 403
PostRostersIDRearrangeForbiddenCode is the HTTP code returned for type PostRostersIDRearrangeForbidden
const PostRostersIDRearrangeInternalServerErrorCode int = 500
PostRostersIDRearrangeInternalServerErrorCode is the HTTP code returned for type PostRostersIDRearrangeInternalServerError
const PostRostersIDRearrangeNotFoundCode int = 404
PostRostersIDRearrangeNotFoundCode is the HTTP code returned for type PostRostersIDRearrangeNotFound
const PostRostersIDRearrangeOKCode int = 200
PostRostersIDRearrangeOKCode is the HTTP code returned for type PostRostersIDRearrangeOK
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PostRostersIDAddPlayer ¶
type PostRostersIDAddPlayer struct { Context *middleware.Context Handler PostRostersIDAddPlayerHandler }
PostRostersIDAddPlayer swagger:route POST /rosters/{id}/add_player player postRostersIdAddPlayer
Add a new player ¶
Adds a new player (to a benched group)
func NewPostRostersIDAddPlayer ¶
func NewPostRostersIDAddPlayer(ctx *middleware.Context, handler PostRostersIDAddPlayerHandler) *PostRostersIDAddPlayer
NewPostRostersIDAddPlayer creates a new http.Handler for the post rosters ID add player operation
func (*PostRostersIDAddPlayer) ServeHTTP ¶
func (o *PostRostersIDAddPlayer) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type PostRostersIDAddPlayerCreated ¶
type PostRostersIDAddPlayerCreated struct { /* In: Body */ Payload *models.Player `json:"body,omitempty"` }
PostRostersIDAddPlayerCreated created
swagger:response postRostersIdAddPlayerCreated
func NewPostRostersIDAddPlayerCreated ¶
func NewPostRostersIDAddPlayerCreated() *PostRostersIDAddPlayerCreated
NewPostRostersIDAddPlayerCreated creates PostRostersIDAddPlayerCreated with default headers values
func (*PostRostersIDAddPlayerCreated) SetPayload ¶
func (o *PostRostersIDAddPlayerCreated) SetPayload(payload *models.Player)
SetPayload sets the payload to the post rosters Id add player created response
func (*PostRostersIDAddPlayerCreated) WithPayload ¶
func (o *PostRostersIDAddPlayerCreated) WithPayload(payload *models.Player) *PostRostersIDAddPlayerCreated
WithPayload adds the payload to the post rosters Id add player created response
func (*PostRostersIDAddPlayerCreated) WriteResponse ¶
func (o *PostRostersIDAddPlayerCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PostRostersIDAddPlayerForbidden ¶
type PostRostersIDAddPlayerForbidden struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
PostRostersIDAddPlayerForbidden forbidden
swagger:response postRostersIdAddPlayerForbidden
func NewPostRostersIDAddPlayerForbidden ¶
func NewPostRostersIDAddPlayerForbidden() *PostRostersIDAddPlayerForbidden
NewPostRostersIDAddPlayerForbidden creates PostRostersIDAddPlayerForbidden with default headers values
func (*PostRostersIDAddPlayerForbidden) SetPayload ¶
func (o *PostRostersIDAddPlayerForbidden) SetPayload(payload *models.Error)
SetPayload sets the payload to the post rosters Id add player forbidden response
func (*PostRostersIDAddPlayerForbidden) WithPayload ¶
func (o *PostRostersIDAddPlayerForbidden) WithPayload(payload *models.Error) *PostRostersIDAddPlayerForbidden
WithPayload adds the payload to the post rosters Id add player forbidden response
func (*PostRostersIDAddPlayerForbidden) WriteResponse ¶
func (o *PostRostersIDAddPlayerForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PostRostersIDAddPlayerHandler ¶
type PostRostersIDAddPlayerHandler interface {
Handle(PostRostersIDAddPlayerParams, interface{}) middleware.Responder
}
PostRostersIDAddPlayerHandler interface for that can handle valid post rosters ID add player params
type PostRostersIDAddPlayerHandlerFunc ¶
type PostRostersIDAddPlayerHandlerFunc func(PostRostersIDAddPlayerParams, interface{}) middleware.Responder
PostRostersIDAddPlayerHandlerFunc turns a function with the right signature into a post rosters ID add player handler
func (PostRostersIDAddPlayerHandlerFunc) Handle ¶
func (fn PostRostersIDAddPlayerHandlerFunc) Handle(params PostRostersIDAddPlayerParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type PostRostersIDAddPlayerInternalServerError ¶
type PostRostersIDAddPlayerInternalServerError struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
PostRostersIDAddPlayerInternalServerError internal server error
swagger:response postRostersIdAddPlayerInternalServerError
func NewPostRostersIDAddPlayerInternalServerError ¶
func NewPostRostersIDAddPlayerInternalServerError() *PostRostersIDAddPlayerInternalServerError
NewPostRostersIDAddPlayerInternalServerError creates PostRostersIDAddPlayerInternalServerError with default headers values
func (*PostRostersIDAddPlayerInternalServerError) SetPayload ¶
func (o *PostRostersIDAddPlayerInternalServerError) SetPayload(payload *models.Error)
SetPayload sets the payload to the post rosters Id add player internal server error response
func (*PostRostersIDAddPlayerInternalServerError) WithPayload ¶
func (o *PostRostersIDAddPlayerInternalServerError) WithPayload(payload *models.Error) *PostRostersIDAddPlayerInternalServerError
WithPayload adds the payload to the post rosters Id add player internal server error response
func (*PostRostersIDAddPlayerInternalServerError) WriteResponse ¶
func (o *PostRostersIDAddPlayerInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PostRostersIDAddPlayerNotFound ¶
type PostRostersIDAddPlayerNotFound struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
PostRostersIDAddPlayerNotFound not found
swagger:response postRostersIdAddPlayerNotFound
func NewPostRostersIDAddPlayerNotFound ¶
func NewPostRostersIDAddPlayerNotFound() *PostRostersIDAddPlayerNotFound
NewPostRostersIDAddPlayerNotFound creates PostRostersIDAddPlayerNotFound with default headers values
func (*PostRostersIDAddPlayerNotFound) SetPayload ¶
func (o *PostRostersIDAddPlayerNotFound) SetPayload(payload *models.Error)
SetPayload sets the payload to the post rosters Id add player not found response
func (*PostRostersIDAddPlayerNotFound) WithPayload ¶
func (o *PostRostersIDAddPlayerNotFound) WithPayload(payload *models.Error) *PostRostersIDAddPlayerNotFound
WithPayload adds the payload to the post rosters Id add player not found response
func (*PostRostersIDAddPlayerNotFound) WriteResponse ¶
func (o *PostRostersIDAddPlayerNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PostRostersIDAddPlayerParams ¶
type PostRostersIDAddPlayerParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Player Required: true In: body */ Body *models.PlayerRequest /* Required: true In: path */ ID int64 }
PostRostersIDAddPlayerParams contains all the bound params for the post rosters ID add player operation typically these are obtained from a http.Request
swagger:parameters PostRostersIDAddPlayer
func NewPostRostersIDAddPlayerParams ¶
func NewPostRostersIDAddPlayerParams() PostRostersIDAddPlayerParams
NewPostRostersIDAddPlayerParams creates a new PostRostersIDAddPlayerParams object no default values defined in spec.
func (*PostRostersIDAddPlayerParams) BindRequest ¶
func (o *PostRostersIDAddPlayerParams) 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 NewPostRostersIDAddPlayerParams() beforehand.
type PostRostersIDAddPlayerURL ¶
type PostRostersIDAddPlayerURL struct { ID int64 // contains filtered or unexported fields }
PostRostersIDAddPlayerURL generates an URL for the post rosters ID add player operation
func (*PostRostersIDAddPlayerURL) Build ¶
func (o *PostRostersIDAddPlayerURL) Build() (*url.URL, error)
Build a url path and query string
func (*PostRostersIDAddPlayerURL) BuildFull ¶
func (o *PostRostersIDAddPlayerURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*PostRostersIDAddPlayerURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*PostRostersIDAddPlayerURL) SetBasePath ¶
func (o *PostRostersIDAddPlayerURL) 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 (*PostRostersIDAddPlayerURL) String ¶
func (o *PostRostersIDAddPlayerURL) String() string
String returns the string representation of the path with query string
func (*PostRostersIDAddPlayerURL) StringFull ¶
func (o *PostRostersIDAddPlayerURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*PostRostersIDAddPlayerURL) WithBasePath ¶
func (o *PostRostersIDAddPlayerURL) WithBasePath(bp string) *PostRostersIDAddPlayerURL
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 PostRostersIDRearrange ¶
type PostRostersIDRearrange struct { Context *middleware.Context Handler PostRostersIDRearrangeHandler }
PostRostersIDRearrange swagger:route POST /rosters/{id}/rearrange player postRostersIdRearrange
Rearrange players ¶
Changes player group arrangement
func NewPostRostersIDRearrange ¶
func NewPostRostersIDRearrange(ctx *middleware.Context, handler PostRostersIDRearrangeHandler) *PostRostersIDRearrange
NewPostRostersIDRearrange creates a new http.Handler for the post rosters ID rearrange operation
func (*PostRostersIDRearrange) ServeHTTP ¶
func (o *PostRostersIDRearrange) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type PostRostersIDRearrangeBadRequest ¶
type PostRostersIDRearrangeBadRequest struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
PostRostersIDRearrangeBadRequest bad request
swagger:response postRostersIdRearrangeBadRequest
func NewPostRostersIDRearrangeBadRequest ¶
func NewPostRostersIDRearrangeBadRequest() *PostRostersIDRearrangeBadRequest
NewPostRostersIDRearrangeBadRequest creates PostRostersIDRearrangeBadRequest with default headers values
func (*PostRostersIDRearrangeBadRequest) SetPayload ¶
func (o *PostRostersIDRearrangeBadRequest) SetPayload(payload *models.Error)
SetPayload sets the payload to the post rosters Id rearrange bad request response
func (*PostRostersIDRearrangeBadRequest) WithPayload ¶
func (o *PostRostersIDRearrangeBadRequest) WithPayload(payload *models.Error) *PostRostersIDRearrangeBadRequest
WithPayload adds the payload to the post rosters Id rearrange bad request response
func (*PostRostersIDRearrangeBadRequest) WriteResponse ¶
func (o *PostRostersIDRearrangeBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PostRostersIDRearrangeForbidden ¶
type PostRostersIDRearrangeForbidden struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
PostRostersIDRearrangeForbidden forbidden
swagger:response postRostersIdRearrangeForbidden
func NewPostRostersIDRearrangeForbidden ¶
func NewPostRostersIDRearrangeForbidden() *PostRostersIDRearrangeForbidden
NewPostRostersIDRearrangeForbidden creates PostRostersIDRearrangeForbidden with default headers values
func (*PostRostersIDRearrangeForbidden) SetPayload ¶
func (o *PostRostersIDRearrangeForbidden) SetPayload(payload *models.Error)
SetPayload sets the payload to the post rosters Id rearrange forbidden response
func (*PostRostersIDRearrangeForbidden) WithPayload ¶
func (o *PostRostersIDRearrangeForbidden) WithPayload(payload *models.Error) *PostRostersIDRearrangeForbidden
WithPayload adds the payload to the post rosters Id rearrange forbidden response
func (*PostRostersIDRearrangeForbidden) WriteResponse ¶
func (o *PostRostersIDRearrangeForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PostRostersIDRearrangeHandler ¶
type PostRostersIDRearrangeHandler interface {
Handle(PostRostersIDRearrangeParams, interface{}) middleware.Responder
}
PostRostersIDRearrangeHandler interface for that can handle valid post rosters ID rearrange params
type PostRostersIDRearrangeHandlerFunc ¶
type PostRostersIDRearrangeHandlerFunc func(PostRostersIDRearrangeParams, interface{}) middleware.Responder
PostRostersIDRearrangeHandlerFunc turns a function with the right signature into a post rosters ID rearrange handler
func (PostRostersIDRearrangeHandlerFunc) Handle ¶
func (fn PostRostersIDRearrangeHandlerFunc) Handle(params PostRostersIDRearrangeParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type PostRostersIDRearrangeInternalServerError ¶
type PostRostersIDRearrangeInternalServerError struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
PostRostersIDRearrangeInternalServerError internal server error
swagger:response postRostersIdRearrangeInternalServerError
func NewPostRostersIDRearrangeInternalServerError ¶
func NewPostRostersIDRearrangeInternalServerError() *PostRostersIDRearrangeInternalServerError
NewPostRostersIDRearrangeInternalServerError creates PostRostersIDRearrangeInternalServerError with default headers values
func (*PostRostersIDRearrangeInternalServerError) SetPayload ¶
func (o *PostRostersIDRearrangeInternalServerError) SetPayload(payload *models.Error)
SetPayload sets the payload to the post rosters Id rearrange internal server error response
func (*PostRostersIDRearrangeInternalServerError) WithPayload ¶
func (o *PostRostersIDRearrangeInternalServerError) WithPayload(payload *models.Error) *PostRostersIDRearrangeInternalServerError
WithPayload adds the payload to the post rosters Id rearrange internal server error response
func (*PostRostersIDRearrangeInternalServerError) WriteResponse ¶
func (o *PostRostersIDRearrangeInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PostRostersIDRearrangeNotFound ¶
type PostRostersIDRearrangeNotFound struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
PostRostersIDRearrangeNotFound not found
swagger:response postRostersIdRearrangeNotFound
func NewPostRostersIDRearrangeNotFound ¶
func NewPostRostersIDRearrangeNotFound() *PostRostersIDRearrangeNotFound
NewPostRostersIDRearrangeNotFound creates PostRostersIDRearrangeNotFound with default headers values
func (*PostRostersIDRearrangeNotFound) SetPayload ¶
func (o *PostRostersIDRearrangeNotFound) SetPayload(payload *models.Error)
SetPayload sets the payload to the post rosters Id rearrange not found response
func (*PostRostersIDRearrangeNotFound) WithPayload ¶
func (o *PostRostersIDRearrangeNotFound) WithPayload(payload *models.Error) *PostRostersIDRearrangeNotFound
WithPayload adds the payload to the post rosters Id rearrange not found response
func (*PostRostersIDRearrangeNotFound) WriteResponse ¶
func (o *PostRostersIDRearrangeNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PostRostersIDRearrangeOK ¶
type PostRostersIDRearrangeOK struct { /* In: Body */ Payload *models.Roster `json:"body,omitempty"` }
PostRostersIDRearrangeOK successful operation
swagger:response postRostersIdRearrangeOK
func NewPostRostersIDRearrangeOK ¶
func NewPostRostersIDRearrangeOK() *PostRostersIDRearrangeOK
NewPostRostersIDRearrangeOK creates PostRostersIDRearrangeOK with default headers values
func (*PostRostersIDRearrangeOK) SetPayload ¶
func (o *PostRostersIDRearrangeOK) SetPayload(payload *models.Roster)
SetPayload sets the payload to the post rosters Id rearrange o k response
func (*PostRostersIDRearrangeOK) WithPayload ¶
func (o *PostRostersIDRearrangeOK) WithPayload(payload *models.Roster) *PostRostersIDRearrangeOK
WithPayload adds the payload to the post rosters Id rearrange o k response
func (*PostRostersIDRearrangeOK) WriteResponse ¶
func (o *PostRostersIDRearrangeOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PostRostersIDRearrangeParams ¶
type PostRostersIDRearrangeParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Player Required: true In: body */ Body *models.RearrangeRequest /* Required: true In: path */ ID int64 }
PostRostersIDRearrangeParams contains all the bound params for the post rosters ID rearrange operation typically these are obtained from a http.Request
swagger:parameters PostRostersIDRearrange
func NewPostRostersIDRearrangeParams ¶
func NewPostRostersIDRearrangeParams() PostRostersIDRearrangeParams
NewPostRostersIDRearrangeParams creates a new PostRostersIDRearrangeParams object no default values defined in spec.
func (*PostRostersIDRearrangeParams) BindRequest ¶
func (o *PostRostersIDRearrangeParams) 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 NewPostRostersIDRearrangeParams() beforehand.
type PostRostersIDRearrangeURL ¶
type PostRostersIDRearrangeURL struct { ID int64 // contains filtered or unexported fields }
PostRostersIDRearrangeURL generates an URL for the post rosters ID rearrange operation
func (*PostRostersIDRearrangeURL) Build ¶
func (o *PostRostersIDRearrangeURL) Build() (*url.URL, error)
Build a url path and query string
func (*PostRostersIDRearrangeURL) BuildFull ¶
func (o *PostRostersIDRearrangeURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*PostRostersIDRearrangeURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*PostRostersIDRearrangeURL) SetBasePath ¶
func (o *PostRostersIDRearrangeURL) 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 (*PostRostersIDRearrangeURL) String ¶
func (o *PostRostersIDRearrangeURL) String() string
String returns the string representation of the path with query string
func (*PostRostersIDRearrangeURL) StringFull ¶
func (o *PostRostersIDRearrangeURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*PostRostersIDRearrangeURL) WithBasePath ¶
func (o *PostRostersIDRearrangeURL) WithBasePath(bp string) *PostRostersIDRearrangeURL
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