player

package
v0.0.0-...-3b1adbd Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2019 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const PostRostersIDAddPlayerCreatedCode int = 201

PostRostersIDAddPlayerCreatedCode is the HTTP code returned for type PostRostersIDAddPlayerCreated

View Source
const PostRostersIDAddPlayerForbiddenCode int = 403

PostRostersIDAddPlayerForbiddenCode is the HTTP code returned for type PostRostersIDAddPlayerForbidden

View Source
const PostRostersIDAddPlayerInternalServerErrorCode int = 500

PostRostersIDAddPlayerInternalServerErrorCode is the HTTP code returned for type PostRostersIDAddPlayerInternalServerError

View Source
const PostRostersIDAddPlayerNotFoundCode int = 404

PostRostersIDAddPlayerNotFoundCode is the HTTP code returned for type PostRostersIDAddPlayerNotFound

View Source
const PostRostersIDRearrangeBadRequestCode int = 400

PostRostersIDRearrangeBadRequestCode is the HTTP code returned for type PostRostersIDRearrangeBadRequest

View Source
const PostRostersIDRearrangeForbiddenCode int = 403

PostRostersIDRearrangeForbiddenCode is the HTTP code returned for type PostRostersIDRearrangeForbidden

View Source
const PostRostersIDRearrangeInternalServerErrorCode int = 500

PostRostersIDRearrangeInternalServerErrorCode is the HTTP code returned for type PostRostersIDRearrangeInternalServerError

View Source
const PostRostersIDRearrangeNotFoundCode int = 404

PostRostersIDRearrangeNotFoundCode is the HTTP code returned for type PostRostersIDRearrangeNotFound

View Source
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

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

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

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

WithPayload adds the payload to the post rosters Id add player internal server error response

func (*PostRostersIDAddPlayerInternalServerError) WriteResponse

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

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

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

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

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

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

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

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

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

WithPayload adds the payload to the post rosters Id rearrange internal server error response

func (*PostRostersIDRearrangeInternalServerError) WriteResponse

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

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

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

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

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

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

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

Jump to

Keyboard shortcuts

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