events

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2015 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeleteEventByID

type DeleteEventByID struct {
	Context *middleware.Context
	Params  DeleteEventByIDParams
	Handler DeleteEventByIDHandler
}

DeleteEventByID swagger:route DELETE /events/{id} events deleteEventById

Delete event by id.

func NewDeleteEventByID

func NewDeleteEventByID(ctx *middleware.Context, handler DeleteEventByIDHandler) *DeleteEventByID

NewDeleteEventByID creates a new http.Handler for the delete event by id operation

func (*DeleteEventByID) ServeHTTP

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

type DeleteEventByIDDefault

type DeleteEventByIDDefault struct {
}

DeleteEventByIDDefault Generic Error

swagger:response deleteEventByIdDefault

func (*DeleteEventByIDDefault) WriteResponse

func (o *DeleteEventByIDDefault) WriteResponse(rw http.ResponseWriter, producer httpkit.Producer)

WriteResponse to the client

type DeleteEventByIDHandler

type DeleteEventByIDHandler interface {
	Handle(DeleteEventByIDParams) middleware.Responder
}

DeleteEventByIDHandler interface for that can handle valid delete event by id params

type DeleteEventByIDHandlerFunc

type DeleteEventByIDHandlerFunc func(DeleteEventByIDParams) middleware.Responder

DeleteEventByIDHandlerFunc turns a function with the right signature into a delete event by id handler

func (DeleteEventByIDHandlerFunc) Handle

Handle executing the request and returning a response

type DeleteEventByIDNoContent

type DeleteEventByIDNoContent struct {
}

DeleteEventByIDNoContent Successful response

swagger:response deleteEventByIdNoContent

func (*DeleteEventByIDNoContent) WriteResponse

func (o *DeleteEventByIDNoContent) WriteResponse(rw http.ResponseWriter, producer httpkit.Producer)

WriteResponse to the client

type DeleteEventByIDParams

type DeleteEventByIDParams struct {
	/*Existing event id.
	  Required: true
	  In: path
	*/
	ID int64
}

DeleteEventByIDParams contains all the bound params for the delete event by id operation typically these are obtained from a http.Request

swagger:parameters deleteEventById

func (*DeleteEventByIDParams) BindRequest

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

type GetEventByID struct {
	Context *middleware.Context
	Params  GetEventByIDParams
	Handler GetEventByIDHandler
}

GetEventByID swagger:route GET /events/{id} events getEventById

Get event by id.

func NewGetEventByID

func NewGetEventByID(ctx *middleware.Context, handler GetEventByIDHandler) *GetEventByID

NewGetEventByID creates a new http.Handler for the get event by id operation

func (*GetEventByID) ServeHTTP

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

type GetEventByIDDefault

type GetEventByIDDefault struct {
}

GetEventByIDDefault Generic Error

swagger:response getEventByIdDefault

func (*GetEventByIDDefault) WriteResponse

func (o *GetEventByIDDefault) WriteResponse(rw http.ResponseWriter, producer httpkit.Producer)

WriteResponse to the client

type GetEventByIDHandler

type GetEventByIDHandler interface {
	Handle(GetEventByIDParams) middleware.Responder
}

GetEventByIDHandler interface for that can handle valid get event by id params

type GetEventByIDHandlerFunc

type GetEventByIDHandlerFunc func(GetEventByIDParams) middleware.Responder

GetEventByIDHandlerFunc turns a function with the right signature into a get event by id handler

func (GetEventByIDHandlerFunc) Handle

Handle executing the request and returning a response

type GetEventByIDOK

type GetEventByIDOK struct {

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

GetEventByIDOK Successful response

swagger:response getEventByIdOK

func (*GetEventByIDOK) WriteResponse

func (o *GetEventByIDOK) WriteResponse(rw http.ResponseWriter, producer httpkit.Producer)

WriteResponse to the client

type GetEventByIDParams

type GetEventByIDParams struct {
	/*Existing event id.
	  Required: true
	  In: path
	*/
	ID int64
}

GetEventByIDParams contains all the bound params for the get event by id operation typically these are obtained from a http.Request

swagger:parameters getEventById

func (*GetEventByIDParams) BindRequest

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

type GetEvents struct {
	Context *middleware.Context
	Handler GetEventsHandler
}

GetEvents swagger:route GET /events events getEvents

Get events.

func NewGetEvents

func NewGetEvents(ctx *middleware.Context, handler GetEventsHandler) *GetEvents

NewGetEvents creates a new http.Handler for the get events operation

func (*GetEvents) ServeHTTP

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

type GetEventsDefault

type GetEventsDefault struct {
}

GetEventsDefault Generic Error

swagger:response getEventsDefault

func (*GetEventsDefault) WriteResponse

func (o *GetEventsDefault) WriteResponse(rw http.ResponseWriter, producer httpkit.Producer)

WriteResponse to the client

type GetEventsHandler

type GetEventsHandler interface {
	Handle() middleware.Responder
}

GetEventsHandler interface for that can handle valid get events params

type GetEventsHandlerFunc

type GetEventsHandlerFunc func() middleware.Responder

GetEventsHandlerFunc turns a function with the right signature into a get events handler

func (GetEventsHandlerFunc) Handle

Handle executing the request and returning a response

type GetEventsOK

type GetEventsOK struct {

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

GetEventsOK Successful response

swagger:response getEventsOK

func (*GetEventsOK) WriteResponse

func (o *GetEventsOK) WriteResponse(rw http.ResponseWriter, producer httpkit.Producer)

WriteResponse to the client

type PostEvent

type PostEvent struct {
	Context *middleware.Context
	Params  PostEventParams
	Handler PostEventHandler
}

PostEvent swagger:route POST /events events postEvent

Create new event.

func NewPostEvent

func NewPostEvent(ctx *middleware.Context, handler PostEventHandler) *PostEvent

NewPostEvent creates a new http.Handler for the post event operation

func (*PostEvent) ServeHTTP

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

type PostEventCreated

type PostEventCreated struct {
}

PostEventCreated Successful response. 'Location' header with link to /events/{id} containing new ID.

swagger:response postEventCreated

func (*PostEventCreated) WriteResponse

func (o *PostEventCreated) WriteResponse(rw http.ResponseWriter, producer httpkit.Producer)

WriteResponse to the client

type PostEventDefault

type PostEventDefault struct {
}

PostEventDefault Generic Error

swagger:response postEventDefault

func (*PostEventDefault) WriteResponse

func (o *PostEventDefault) WriteResponse(rw http.ResponseWriter, producer httpkit.Producer)

WriteResponse to the client

type PostEventHandler

type PostEventHandler interface {
	Handle(PostEventParams) middleware.Responder
}

PostEventHandler interface for that can handle valid post event params

type PostEventHandlerFunc

type PostEventHandlerFunc func(PostEventParams) middleware.Responder

PostEventHandlerFunc turns a function with the right signature into a post event handler

func (PostEventHandlerFunc) Handle

Handle executing the request and returning a response

type PostEventParams

type PostEventParams struct {
	/*New events
	  Required: true
	  In: body
	*/
	Event *models.Event
}

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

swagger:parameters postEvent

func (*PostEventParams) BindRequest

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

type PutEventByID struct {
	Context *middleware.Context
	Params  PutEventByIDParams
	Handler PutEventByIDHandler
}

PutEventByID swagger:route PUT /events/{id} events putEventById

Update existing event.

func NewPutEventByID

func NewPutEventByID(ctx *middleware.Context, handler PutEventByIDHandler) *PutEventByID

NewPutEventByID creates a new http.Handler for the put event by id operation

func (*PutEventByID) ServeHTTP

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

type PutEventByIDDefault

type PutEventByIDDefault struct {
}

PutEventByIDDefault Generic Error

swagger:response putEventByIdDefault

func (*PutEventByIDDefault) WriteResponse

func (o *PutEventByIDDefault) WriteResponse(rw http.ResponseWriter, producer httpkit.Producer)

WriteResponse to the client

type PutEventByIDHandler

type PutEventByIDHandler interface {
	Handle(PutEventByIDParams) middleware.Responder
}

PutEventByIDHandler interface for that can handle valid put event by id params

type PutEventByIDHandlerFunc

type PutEventByIDHandlerFunc func(PutEventByIDParams) middleware.Responder

PutEventByIDHandlerFunc turns a function with the right signature into a put event by id handler

func (PutEventByIDHandlerFunc) Handle

Handle executing the request and returning a response

type PutEventByIDNoContent

type PutEventByIDNoContent struct {
}

PutEventByIDNoContent Successful response

swagger:response putEventByIdNoContent

func (*PutEventByIDNoContent) WriteResponse

func (o *PutEventByIDNoContent) WriteResponse(rw http.ResponseWriter, producer httpkit.Producer)

WriteResponse to the client

type PutEventByIDParams

type PutEventByIDParams struct {
	/*Existing event
	  Required: true
	  In: body
	*/
	Event *models.Event
	/*Existing event id.
	  Required: true
	  In: path
	*/
	ID int64
}

PutEventByIDParams contains all the bound params for the put event by id operation typically these are obtained from a http.Request

swagger:parameters putEventById

func (*PutEventByIDParams) BindRequest

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