Documentation ¶
Index ¶
- type DeleteEventByID
- type DeleteEventByIDDefault
- type DeleteEventByIDHandler
- type DeleteEventByIDHandlerFunc
- type DeleteEventByIDNoContent
- type DeleteEventByIDParams
- type GetEventByID
- type GetEventByIDDefault
- type GetEventByIDHandler
- type GetEventByIDHandlerFunc
- type GetEventByIDOK
- type GetEventByIDParams
- type GetEvents
- type GetEventsDefault
- type GetEventsHandler
- type GetEventsHandlerFunc
- type GetEventsOK
- type PostEvent
- type PostEventCreated
- type PostEventDefault
- type PostEventHandler
- type PostEventHandlerFunc
- type PostEventParams
- type PutEventByID
- type PutEventByIDDefault
- type PutEventByIDHandler
- type PutEventByIDHandlerFunc
- type PutEventByIDNoContent
- type PutEventByIDParams
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 NewDeleteEventByIDDefault ¶ added in v0.2.0
func NewDeleteEventByIDDefault() DeleteEventByIDDefault
NewDeleteEventByIDDefault creates DeleteEventByIDDefault with default headers values
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 ¶
func (fn DeleteEventByIDHandlerFunc) Handle(params DeleteEventByIDParams) middleware.Responder
Handle executing the request and returning a response
type DeleteEventByIDNoContent ¶
type DeleteEventByIDNoContent struct { }
DeleteEventByIDNoContent Successful response
swagger:response deleteEventByIdNoContent
func NewDeleteEventByIDNoContent ¶ added in v0.2.0
func NewDeleteEventByIDNoContent() DeleteEventByIDNoContent
NewDeleteEventByIDNoContent creates DeleteEventByIDNoContent with default headers values
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 NewDeleteEventByIDParams ¶ added in v0.2.0
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 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 NewGetEventByIDDefault ¶ added in v0.2.0
func NewGetEventByIDDefault() GetEventByIDDefault
NewGetEventByIDDefault creates GetEventByIDDefault with default headers values
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 ¶
func (fn GetEventByIDHandlerFunc) Handle(params GetEventByIDParams) middleware.Responder
Handle executing the request and returning a response
type GetEventByIDOK ¶
GetEventByIDOK Successful response
swagger:response getEventByIdOK
func NewGetEventByIDOK ¶ added in v0.2.0
func NewGetEventByIDOK() GetEventByIDOK
NewGetEventByIDOK creates GetEventByIDOK with default headers values
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 NewGetEventByIDParams ¶ added in v0.2.0
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
type GetEventsDefault ¶
type GetEventsDefault struct { }
GetEventsDefault Generic Error
swagger:response getEventsDefault
func NewGetEventsDefault ¶ added in v0.2.0
func NewGetEventsDefault() GetEventsDefault
NewGetEventsDefault creates GetEventsDefault with default headers values
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 ¶
func (fn GetEventsHandlerFunc) Handle() middleware.Responder
Handle executing the request and returning a response
type GetEventsOK ¶
GetEventsOK Successful response
swagger:response getEventsOK
func NewGetEventsOK ¶ added in v0.2.0
func NewGetEventsOK() GetEventsOK
NewGetEventsOK creates GetEventsOK with default headers values
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
type PostEventCreated ¶
type PostEventCreated struct { }
PostEventCreated Successful response. 'Location' header with link to /events/{id} containing new ID.
swagger:response postEventCreated
func NewPostEventCreated ¶ added in v0.2.0
func NewPostEventCreated() PostEventCreated
NewPostEventCreated creates PostEventCreated with default headers values
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 NewPostEventDefault ¶ added in v0.2.0
func NewPostEventDefault() PostEventDefault
NewPostEventDefault creates PostEventDefault with default headers values
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 ¶
func (fn PostEventHandlerFunc) Handle(params PostEventParams) middleware.Responder
Handle executing the request and returning a response
type PostEventParams ¶
PostEventParams contains all the bound params for the post event operation typically these are obtained from a http.Request
swagger:parameters postEvent
func NewPostEventParams ¶ added in v0.2.0
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 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 NewPutEventByIDDefault ¶ added in v0.2.0
func NewPutEventByIDDefault() PutEventByIDDefault
NewPutEventByIDDefault creates PutEventByIDDefault with default headers values
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 ¶
func (fn PutEventByIDHandlerFunc) Handle(params PutEventByIDParams) middleware.Responder
Handle executing the request and returning a response
type PutEventByIDNoContent ¶
type PutEventByIDNoContent struct { }
PutEventByIDNoContent Successful response
swagger:response putEventByIdNoContent
func NewPutEventByIDNoContent ¶ added in v0.2.0
func NewPutEventByIDNoContent() PutEventByIDNoContent
NewPutEventByIDNoContent creates PutEventByIDNoContent with default headers values
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 NewPutEventByIDParams ¶ added in v0.2.0
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
Source Files ¶
- delete_event_by_id.go
- delete_event_by_id_parameters.go
- delete_event_by_id_responses.go
- get_event_by_id.go
- get_event_by_id_parameters.go
- get_event_by_id_responses.go
- get_events.go
- get_events_responses.go
- post_event.go
- post_event_parameters.go
- post_event_responses.go
- put_event_by_id.go
- put_event_by_id_parameters.go
- put_event_by_id_responses.go