events

package
Version: v0.0.0-...-8602d06 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 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 DeleteEventByID

type DeleteEventByID struct {
	Context *middleware.Context
	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 {
	// contains filtered or unexported fields
}

DeleteEventByIDDefault Generic Error

swagger:response deleteEventByIdDefault

func NewDeleteEventByIDDefault

func NewDeleteEventByIDDefault(code int) *DeleteEventByIDDefault

NewDeleteEventByIDDefault creates DeleteEventByIDDefault with default headers values

func (*DeleteEventByIDDefault) SetStatusCode

func (o *DeleteEventByIDDefault) SetStatusCode(code int)

SetStatusCode sets the status to the delete event by Id default response

func (*DeleteEventByIDDefault) WithStatusCode

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

WithStatusCode adds the status to the delete event by Id default response

func (*DeleteEventByIDDefault) WriteResponse

func (o *DeleteEventByIDDefault) WriteResponse(rw http.ResponseWriter, producer runtime.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 NewDeleteEventByIDNoContent

func NewDeleteEventByIDNoContent() *DeleteEventByIDNoContent

NewDeleteEventByIDNoContent creates DeleteEventByIDNoContent with default headers values

func (*DeleteEventByIDNoContent) WriteResponse

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

WriteResponse to the client

type DeleteEventByIDParams

type DeleteEventByIDParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request

	/*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 NewDeleteEventByIDParams

func NewDeleteEventByIDParams() DeleteEventByIDParams

NewDeleteEventByIDParams creates a new DeleteEventByIDParams object with the default values initialized.

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
	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 {
	// contains filtered or unexported fields
}

GetEventByIDDefault Generic Error

swagger:response getEventByIdDefault

func NewGetEventByIDDefault

func NewGetEventByIDDefault(code int) *GetEventByIDDefault

NewGetEventByIDDefault creates GetEventByIDDefault with default headers values

func (*GetEventByIDDefault) SetStatusCode

func (o *GetEventByIDDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get event by Id default response

func (*GetEventByIDDefault) WithStatusCode

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

WithStatusCode adds the status to the get event by Id default response

func (*GetEventByIDDefault) WriteResponse

func (o *GetEventByIDDefault) WriteResponse(rw http.ResponseWriter, producer runtime.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 NewGetEventByIDOK

func NewGetEventByIDOK() *GetEventByIDOK

NewGetEventByIDOK creates GetEventByIDOK with default headers values

func (*GetEventByIDOK) SetPayload

func (o *GetEventByIDOK) SetPayload(payload *models.Event)

SetPayload sets the payload to the get event by Id o k response

func (*GetEventByIDOK) WithPayload

func (o *GetEventByIDOK) WithPayload(payload *models.Event) *GetEventByIDOK

WithPayload adds the payload to the get event by Id o k response

func (*GetEventByIDOK) WriteResponse

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

WriteResponse to the client

type GetEventByIDParams

type GetEventByIDParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request

	/*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 NewGetEventByIDParams

func NewGetEventByIDParams() GetEventByIDParams

NewGetEventByIDParams creates a new GetEventByIDParams object with the default values initialized.

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 {
	// contains filtered or unexported fields
}

GetEventsDefault Generic Error

swagger:response getEventsDefault

func NewGetEventsDefault

func NewGetEventsDefault(code int) *GetEventsDefault

NewGetEventsDefault creates GetEventsDefault with default headers values

func (*GetEventsDefault) SetStatusCode

func (o *GetEventsDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get events default response

func (*GetEventsDefault) WithStatusCode

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

WithStatusCode adds the status to the get events default response

func (*GetEventsDefault) WriteResponse

func (o *GetEventsDefault) WriteResponse(rw http.ResponseWriter, producer runtime.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 NewGetEventsOK

func NewGetEventsOK() *GetEventsOK

NewGetEventsOK creates GetEventsOK with default headers values

func (*GetEventsOK) SetPayload

func (o *GetEventsOK) SetPayload(payload []*models.Event)

SetPayload sets the payload to the get events o k response

func (*GetEventsOK) WithPayload

func (o *GetEventsOK) WithPayload(payload []*models.Event) *GetEventsOK

WithPayload adds the payload to the get events o k response

func (*GetEventsOK) WriteResponse

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

WriteResponse to the client

type PostEvent

type PostEvent struct {
	Context *middleware.Context
	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 NewPostEventCreated

func NewPostEventCreated() *PostEventCreated

NewPostEventCreated creates PostEventCreated with default headers values

func (*PostEventCreated) WriteResponse

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

WriteResponse to the client

type PostEventDefault

type PostEventDefault struct {
	// contains filtered or unexported fields
}

PostEventDefault Generic Error

swagger:response postEventDefault

func NewPostEventDefault

func NewPostEventDefault(code int) *PostEventDefault

NewPostEventDefault creates PostEventDefault with default headers values

func (*PostEventDefault) SetStatusCode

func (o *PostEventDefault) SetStatusCode(code int)

SetStatusCode sets the status to the post event default response

func (*PostEventDefault) WithStatusCode

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

WithStatusCode adds the status to the post event default response

func (*PostEventDefault) WriteResponse

func (o *PostEventDefault) WriteResponse(rw http.ResponseWriter, producer runtime.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 {

	// HTTP Request Object
	HTTPRequest *http.Request

	/*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 NewPostEventParams

func NewPostEventParams() PostEventParams

NewPostEventParams creates a new PostEventParams object with the default values initialized.

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
	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 {
	// contains filtered or unexported fields
}

PutEventByIDDefault Generic Error

swagger:response putEventByIdDefault

func NewPutEventByIDDefault

func NewPutEventByIDDefault(code int) *PutEventByIDDefault

NewPutEventByIDDefault creates PutEventByIDDefault with default headers values

func (*PutEventByIDDefault) SetStatusCode

func (o *PutEventByIDDefault) SetStatusCode(code int)

SetStatusCode sets the status to the put event by Id default response

func (*PutEventByIDDefault) WithStatusCode

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

WithStatusCode adds the status to the put event by Id default response

func (*PutEventByIDDefault) WriteResponse

func (o *PutEventByIDDefault) WriteResponse(rw http.ResponseWriter, producer runtime.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 NewPutEventByIDNoContent

func NewPutEventByIDNoContent() *PutEventByIDNoContent

NewPutEventByIDNoContent creates PutEventByIDNoContent with default headers values

func (*PutEventByIDNoContent) WriteResponse

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

WriteResponse to the client

type PutEventByIDParams

type PutEventByIDParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request

	/*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 NewPutEventByIDParams

func NewPutEventByIDParams() PutEventByIDParams

NewPutEventByIDParams creates a new PutEventByIDParams object with the default values initialized.

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