game

package
v0.0.0-...-b618969 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2016 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeleteGameByUUID

type DeleteGameByUUID struct {
	Context *middleware.Context
	Handler DeleteGameByUUIDHandler
}

DeleteGameByUUID swagger:route DELETE /games/{UUID} Game deleteGameByUuid

删除比赛信息

根据uuid,删除一场比赛的信息

func NewDeleteGameByUUID

func NewDeleteGameByUUID(ctx *middleware.Context, handler DeleteGameByUUIDHandler) *DeleteGameByUUID

NewDeleteGameByUUID creates a new http.Handler for the delete game by UUID operation

func (*DeleteGameByUUID) ServeHTTP

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

type DeleteGameByUUIDDefault

type DeleteGameByUUIDDefault struct {

	// In: body
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

DeleteGameByUUIDDefault Unexpected error

swagger:response deleteGameByUuidDefault

func NewDeleteGameByUUIDDefault

func NewDeleteGameByUUIDDefault(code int) *DeleteGameByUUIDDefault

NewDeleteGameByUUIDDefault creates DeleteGameByUUIDDefault with default headers values

func (*DeleteGameByUUIDDefault) SetPayload

func (o *DeleteGameByUUIDDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the delete game by UUID default response

func (*DeleteGameByUUIDDefault) SetStatusCode

func (o *DeleteGameByUUIDDefault) SetStatusCode(code int)

SetStatusCode sets the status to the delete game by UUID default response

func (*DeleteGameByUUIDDefault) WithPayload

func (o *DeleteGameByUUIDDefault) WithPayload(payload *models.Error) *DeleteGameByUUIDDefault

WithPayload adds the payload to the delete game by UUID default response

func (*DeleteGameByUUIDDefault) WithStatusCode

func (o *DeleteGameByUUIDDefault) WithStatusCode(code int) *DeleteGameByUUIDDefault

WithStatusCode adds the status to the delete game by UUID default response

func (*DeleteGameByUUIDDefault) WriteResponse

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

WriteResponse to the client

type DeleteGameByUUIDHandler

type DeleteGameByUUIDHandler interface {
	Handle(DeleteGameByUUIDParams) middleware.Responder
}

DeleteGameByUUIDHandler interface for that can handle valid delete game by UUID params

type DeleteGameByUUIDHandlerFunc

type DeleteGameByUUIDHandlerFunc func(DeleteGameByUUIDParams) middleware.Responder

DeleteGameByUUIDHandlerFunc turns a function with the right signature into a delete game by UUID handler

func (DeleteGameByUUIDHandlerFunc) Handle

Handle executing the request and returning a response

type DeleteGameByUUIDOK

type DeleteGameByUUIDOK struct {
}

DeleteGameByUUIDOK 删除比赛成功

swagger:response deleteGameByUuidOK

func NewDeleteGameByUUIDOK

func NewDeleteGameByUUIDOK() *DeleteGameByUUIDOK

NewDeleteGameByUUIDOK creates DeleteGameByUUIDOK with default headers values

func (*DeleteGameByUUIDOK) WriteResponse

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

WriteResponse to the client

type DeleteGameByUUIDParams

type DeleteGameByUUIDParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request

	/*比赛标识id
	  Required: true
	  In: path
	*/
	UUID string
}

DeleteGameByUUIDParams contains all the bound params for the delete game by UUID operation typically these are obtained from a http.Request

swagger:parameters deleteGameByUUID

func NewDeleteGameByUUIDParams

func NewDeleteGameByUUIDParams() DeleteGameByUUIDParams

NewDeleteGameByUUIDParams creates a new DeleteGameByUUIDParams object with the default values initialized.

func (*DeleteGameByUUIDParams) BindRequest

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

type GetGameByUUID

type GetGameByUUID struct {
	Context *middleware.Context
	Handler GetGameByUUIDHandler
}

GetGameByUUID swagger:route GET /games/{UUID} Game getGameByUuid

比赛信息

获取特定场次比赛信息

func NewGetGameByUUID

func NewGetGameByUUID(ctx *middleware.Context, handler GetGameByUUIDHandler) *GetGameByUUID

NewGetGameByUUID creates a new http.Handler for the get game by UUID operation

func (*GetGameByUUID) ServeHTTP

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

type GetGameByUUIDDefault

type GetGameByUUIDDefault struct {

	// In: body
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

GetGameByUUIDDefault Unexpected error

swagger:response getGameByUuidDefault

func NewGetGameByUUIDDefault

func NewGetGameByUUIDDefault(code int) *GetGameByUUIDDefault

NewGetGameByUUIDDefault creates GetGameByUUIDDefault with default headers values

func (*GetGameByUUIDDefault) SetPayload

func (o *GetGameByUUIDDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the get game by UUID default response

func (*GetGameByUUIDDefault) SetStatusCode

func (o *GetGameByUUIDDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get game by UUID default response

func (*GetGameByUUIDDefault) WithPayload

func (o *GetGameByUUIDDefault) WithPayload(payload *models.Error) *GetGameByUUIDDefault

WithPayload adds the payload to the get game by UUID default response

func (*GetGameByUUIDDefault) WithStatusCode

func (o *GetGameByUUIDDefault) WithStatusCode(code int) *GetGameByUUIDDefault

WithStatusCode adds the status to the get game by UUID default response

func (*GetGameByUUIDDefault) WriteResponse

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

WriteResponse to the client

type GetGameByUUIDHandler

type GetGameByUUIDHandler interface {
	Handle(GetGameByUUIDParams) middleware.Responder
}

GetGameByUUIDHandler interface for that can handle valid get game by UUID params

type GetGameByUUIDHandlerFunc

type GetGameByUUIDHandlerFunc func(GetGameByUUIDParams) middleware.Responder

GetGameByUUIDHandlerFunc turns a function with the right signature into a get game by UUID handler

func (GetGameByUUIDHandlerFunc) Handle

Handle executing the request and returning a response

type GetGameByUUIDOK

type GetGameByUUIDOK struct {

	// In: body
	Payload *models.Game `json:"body,omitempty"`
}

GetGameByUUIDOK 比赛信息

swagger:response getGameByUuidOK

func NewGetGameByUUIDOK

func NewGetGameByUUIDOK() *GetGameByUUIDOK

NewGetGameByUUIDOK creates GetGameByUUIDOK with default headers values

func (*GetGameByUUIDOK) SetPayload

func (o *GetGameByUUIDOK) SetPayload(payload *models.Game)

SetPayload sets the payload to the get game by Uuid o k response

func (*GetGameByUUIDOK) WithPayload

func (o *GetGameByUUIDOK) WithPayload(payload *models.Game) *GetGameByUUIDOK

WithPayload adds the payload to the get game by Uuid o k response

func (*GetGameByUUIDOK) WriteResponse

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

WriteResponse to the client

type GetGameByUUIDParams

type GetGameByUUIDParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request

	/*比赛标识ID
	  Required: true
	  In: path
	*/
	UUID string
}

GetGameByUUIDParams contains all the bound params for the get game by UUID operation typically these are obtained from a http.Request

swagger:parameters getGameByUUID

func NewGetGameByUUIDParams

func NewGetGameByUUIDParams() GetGameByUUIDParams

NewGetGameByUUIDParams creates a new GetGameByUUIDParams object with the default values initialized.

func (*GetGameByUUIDParams) BindRequest

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

type GetGames

type GetGames struct {
	Context *middleware.Context
	Handler GetGamesHandler
}

GetGames swagger:route GET /games Game getGames

比赛列表

比赛列表

func NewGetGames

func NewGetGames(ctx *middleware.Context, handler GetGamesHandler) *GetGames

NewGetGames creates a new http.Handler for the get games operation

func (*GetGames) ServeHTTP

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

type GetGamesDefault

type GetGamesDefault struct {

	// In: body
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

GetGamesDefault Unexpected error

swagger:response getGamesDefault

func NewGetGamesDefault

func NewGetGamesDefault(code int) *GetGamesDefault

NewGetGamesDefault creates GetGamesDefault with default headers values

func (*GetGamesDefault) SetPayload

func (o *GetGamesDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the get games default response

func (*GetGamesDefault) SetStatusCode

func (o *GetGamesDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get games default response

func (*GetGamesDefault) WithPayload

func (o *GetGamesDefault) WithPayload(payload *models.Error) *GetGamesDefault

WithPayload adds the payload to the get games default response

func (*GetGamesDefault) WithStatusCode

func (o *GetGamesDefault) WithStatusCode(code int) *GetGamesDefault

WithStatusCode adds the status to the get games default response

func (*GetGamesDefault) WriteResponse

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

WriteResponse to the client

type GetGamesHandler

type GetGamesHandler interface {
	Handle(GetGamesParams) middleware.Responder
}

GetGamesHandler interface for that can handle valid get games params

type GetGamesHandlerFunc

type GetGamesHandlerFunc func(GetGamesParams) middleware.Responder

GetGamesHandlerFunc turns a function with the right signature into a get games handler

func (GetGamesHandlerFunc) Handle

Handle executing the request and returning a response

type GetGamesOK

type GetGamesOK struct {

	// In: body
	Payload []*models.Game `json:"body,omitempty"`
}

GetGamesOK 比赛列表

swagger:response getGamesOK

func NewGetGamesOK

func NewGetGamesOK() *GetGamesOK

NewGetGamesOK creates GetGamesOK with default headers values

func (*GetGamesOK) SetPayload

func (o *GetGamesOK) SetPayload(payload []*models.Game)

SetPayload sets the payload to the get games o k response

func (*GetGamesOK) WithPayload

func (o *GetGamesOK) WithPayload(payload []*models.Game) *GetGamesOK

WithPayload adds the payload to the get games o k response

func (*GetGamesOK) WriteResponse

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

WriteResponse to the client

type GetGamesParams

type GetGamesParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request

	/*League identity
	  In: query
	*/
	Luuid *string
	/*League season identity
	  In: query
	*/
	Suuid *string
	/*timestamp, 默认为当前服务器时间
	  In: query
	*/
	Ts *int64
}

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

swagger:parameters getGames

func NewGetGamesParams

func NewGetGamesParams() GetGamesParams

NewGetGamesParams creates a new GetGamesParams object with the default values initialized.

func (*GetGamesParams) BindRequest

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

type PostGames

type PostGames struct {
	Context *middleware.Context
	Handler PostGamesHandler
}

PostGames swagger:route POST /games Game postGames

新增比赛

新增一场比赛

func NewPostGames

func NewPostGames(ctx *middleware.Context, handler PostGamesHandler) *PostGames

NewPostGames creates a new http.Handler for the post games operation

func (*PostGames) ServeHTTP

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

type PostGamesCreated

type PostGamesCreated struct {

	// In: body
	Payload []*models.Game `json:"body,omitempty"`
}

PostGamesCreated 新增比赛成功

swagger:response postGamesCreated

func NewPostGamesCreated

func NewPostGamesCreated() *PostGamesCreated

NewPostGamesCreated creates PostGamesCreated with default headers values

func (*PostGamesCreated) SetPayload

func (o *PostGamesCreated) SetPayload(payload []*models.Game)

SetPayload sets the payload to the post games created response

func (*PostGamesCreated) WithPayload

func (o *PostGamesCreated) WithPayload(payload []*models.Game) *PostGamesCreated

WithPayload adds the payload to the post games created response

func (*PostGamesCreated) WriteResponse

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

WriteResponse to the client

type PostGamesDefault

type PostGamesDefault struct {

	// In: body
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

PostGamesDefault Unexpected error

swagger:response postGamesDefault

func NewPostGamesDefault

func NewPostGamesDefault(code int) *PostGamesDefault

NewPostGamesDefault creates PostGamesDefault with default headers values

func (*PostGamesDefault) SetPayload

func (o *PostGamesDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the post games default response

func (*PostGamesDefault) SetStatusCode

func (o *PostGamesDefault) SetStatusCode(code int)

SetStatusCode sets the status to the post games default response

func (*PostGamesDefault) WithPayload

func (o *PostGamesDefault) WithPayload(payload *models.Error) *PostGamesDefault

WithPayload adds the payload to the post games default response

func (*PostGamesDefault) WithStatusCode

func (o *PostGamesDefault) WithStatusCode(code int) *PostGamesDefault

WithStatusCode adds the status to the post games default response

func (*PostGamesDefault) WriteResponse

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

WriteResponse to the client

type PostGamesHandler

type PostGamesHandler interface {
	Handle(PostGamesParams) middleware.Responder
}

PostGamesHandler interface for that can handle valid post games params

type PostGamesHandlerFunc

type PostGamesHandlerFunc func(PostGamesParams) middleware.Responder

PostGamesHandlerFunc turns a function with the right signature into a post games handler

func (PostGamesHandlerFunc) Handle

Handle executing the request and returning a response

type PostGamesParams

type PostGamesParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request

	/*新增比赛的信息
	  Required: true
	  In: body
	*/
	Game []*models.Game
}

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

swagger:parameters postGames

func NewPostGamesParams

func NewPostGamesParams() PostGamesParams

NewPostGamesParams creates a new PostGamesParams object with the default values initialized.

func (*PostGamesParams) BindRequest

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

type PutGameByUUID

type PutGameByUUID struct {
	Context *middleware.Context
	Handler PutGameByUUIDHandler
}

PutGameByUUID swagger:route PUT /games/{UUID} Game putGameByUuid

更新比赛信息

根据uuid,替换一场比赛的信息

func NewPutGameByUUID

func NewPutGameByUUID(ctx *middleware.Context, handler PutGameByUUIDHandler) *PutGameByUUID

NewPutGameByUUID creates a new http.Handler for the put game by UUID operation

func (*PutGameByUUID) ServeHTTP

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

type PutGameByUUIDDefault

type PutGameByUUIDDefault struct {

	// In: body
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

PutGameByUUIDDefault Unexpected error

swagger:response putGameByUuidDefault

func NewPutGameByUUIDDefault

func NewPutGameByUUIDDefault(code int) *PutGameByUUIDDefault

NewPutGameByUUIDDefault creates PutGameByUUIDDefault with default headers values

func (*PutGameByUUIDDefault) SetPayload

func (o *PutGameByUUIDDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the put game by UUID default response

func (*PutGameByUUIDDefault) SetStatusCode

func (o *PutGameByUUIDDefault) SetStatusCode(code int)

SetStatusCode sets the status to the put game by UUID default response

func (*PutGameByUUIDDefault) WithPayload

func (o *PutGameByUUIDDefault) WithPayload(payload *models.Error) *PutGameByUUIDDefault

WithPayload adds the payload to the put game by UUID default response

func (*PutGameByUUIDDefault) WithStatusCode

func (o *PutGameByUUIDDefault) WithStatusCode(code int) *PutGameByUUIDDefault

WithStatusCode adds the status to the put game by UUID default response

func (*PutGameByUUIDDefault) WriteResponse

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

WriteResponse to the client

type PutGameByUUIDHandler

type PutGameByUUIDHandler interface {
	Handle(PutGameByUUIDParams) middleware.Responder
}

PutGameByUUIDHandler interface for that can handle valid put game by UUID params

type PutGameByUUIDHandlerFunc

type PutGameByUUIDHandlerFunc func(PutGameByUUIDParams) middleware.Responder

PutGameByUUIDHandlerFunc turns a function with the right signature into a put game by UUID handler

func (PutGameByUUIDHandlerFunc) Handle

Handle executing the request and returning a response

type PutGameByUUIDOK

type PutGameByUUIDOK struct {

	// In: body
	Payload *models.Game `json:"body,omitempty"`
}

PutGameByUUIDOK 更新比赛成功

swagger:response putGameByUuidOK

func NewPutGameByUUIDOK

func NewPutGameByUUIDOK() *PutGameByUUIDOK

NewPutGameByUUIDOK creates PutGameByUUIDOK with default headers values

func (*PutGameByUUIDOK) SetPayload

func (o *PutGameByUUIDOK) SetPayload(payload *models.Game)

SetPayload sets the payload to the put game by Uuid o k response

func (*PutGameByUUIDOK) WithPayload

func (o *PutGameByUUIDOK) WithPayload(payload *models.Game) *PutGameByUUIDOK

WithPayload adds the payload to the put game by Uuid o k response

func (*PutGameByUUIDOK) WriteResponse

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

WriteResponse to the client

type PutGameByUUIDParams

type PutGameByUUIDParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request

	/*比赛标识id
	  Required: true
	  In: path
	*/
	UUID string
	/*比赛的信息
	  Required: true
	  In: body
	*/
	Game *models.Game
}

PutGameByUUIDParams contains all the bound params for the put game by UUID operation typically these are obtained from a http.Request

swagger:parameters putGameByUUID

func NewPutGameByUUIDParams

func NewPutGameByUUIDParams() PutGameByUUIDParams

NewPutGameByUUIDParams creates a new PutGameByUUIDParams object with the default values initialized.

func (*PutGameByUUIDParams) BindRequest

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

Jump to

Keyboard shortcuts

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