Documentation ¶
Index ¶
- func AddDataEventDataEventsPath() string
- func DataEventsEndpointDataEventsPath() string
- func DecodeAddDataEventRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (interface{}, error)
- func DecodeDataEventsEndpointRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (interface{}, error)
- func DecodeDeleteDataEventRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (interface{}, error)
- func DecodeUpdateDataEventRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (interface{}, error)
- func DeleteDataEventDataEventsPath(eventID int64) string
- func EncodeAddDataEventError(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, ...) func(context.Context, http.ResponseWriter, error) error
- func EncodeAddDataEventResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, interface{}) error
- func EncodeDataEventsEndpointError(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, ...) func(context.Context, http.ResponseWriter, error) error
- func EncodeDataEventsEndpointResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, interface{}) error
- func EncodeDeleteDataEventError(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, ...) func(context.Context, http.ResponseWriter, error) error
- func EncodeDeleteDataEventResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, interface{}) error
- func EncodeUpdateDataEventError(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, ...) func(context.Context, http.ResponseWriter, error) error
- func EncodeUpdateDataEventResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, interface{}) error
- func Mount(mux goahttp.Muxer, h *Server)
- func MountAddDataEventHandler(mux goahttp.Muxer, h http.Handler)
- func MountCORSHandler(mux goahttp.Muxer, h http.Handler)
- func MountDataEventsEndpointHandler(mux goahttp.Muxer, h http.Handler)
- func MountDeleteDataEventHandler(mux goahttp.Muxer, h http.Handler)
- func MountUpdateDataEventHandler(mux goahttp.Muxer, h http.Handler)
- func NewAddDataEventHandler(endpoint goa.Endpoint, mux goahttp.Muxer, ...) http.Handler
- func NewAddDataEventPayload(body *AddDataEventRequestBody, auth string) *dataevents.AddDataEventPayload
- func NewCORSHandler() http.Handler
- func NewDataEventsEndpointHandler(endpoint goa.Endpoint, mux goahttp.Muxer, ...) http.Handler
- func NewDataEventsPayload(bookmark string, auth *string) *dataevents.DataEventsPayload
- func NewDeleteDataEventHandler(endpoint goa.Endpoint, mux goahttp.Muxer, ...) http.Handler
- func NewDeleteDataEventPayload(eventID int64, auth string) *dataevents.DeleteDataEventPayload
- func NewUpdateDataEventHandler(endpoint goa.Endpoint, mux goahttp.Muxer, ...) http.Handler
- func NewUpdateDataEventPayload(body *UpdateDataEventRequestBody, eventID int64, auth string) *dataevents.UpdateDataEventPayload
- func UpdateDataEventDataEventsPath(eventID int64) string
- func ValidateAddDataEventRequestBody(body *AddDataEventRequestBody) (err error)
- func ValidateNewDataEventRequestBody(body *NewDataEventRequestBody) (err error)
- func ValidateUpdateDataEventRequestBody(body *UpdateDataEventRequestBody) (err error)
- type AddDataEventBadRequestResponseBody
- type AddDataEventForbiddenResponseBody
- type AddDataEventNotFoundResponseBody
- type AddDataEventRequestBody
- type AddDataEventResponseBody
- type AddDataEventUnauthorizedResponseBody
- type AuthorPhotoResponseBody
- type DataEventResponseBody
- type DataEventsBadRequestResponseBody
- type DataEventsForbiddenResponseBody
- type DataEventsNotFoundResponseBody
- type DataEventsResponseBody
- type DataEventsUnauthorizedResponseBody
- type DeleteDataEventBadRequestResponseBody
- type DeleteDataEventForbiddenResponseBody
- type DeleteDataEventNotFoundResponseBody
- type DeleteDataEventUnauthorizedResponseBody
- type ErrorNamer
- type MountPoint
- type NewDataEventRequestBody
- type PostAuthorResponseBody
- type Server
- type UpdateDataEventBadRequestResponseBody
- type UpdateDataEventForbiddenResponseBody
- type UpdateDataEventNotFoundResponseBody
- type UpdateDataEventRequestBody
- type UpdateDataEventResponseBody
- type UpdateDataEventUnauthorizedResponseBody
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddDataEventDataEventsPath ¶
func AddDataEventDataEventsPath() string
AddDataEventDataEventsPath returns the URL path to the data events service add data event HTTP endpoint.
func DataEventsEndpointDataEventsPath ¶
func DataEventsEndpointDataEventsPath() string
DataEventsEndpointDataEventsPath returns the URL path to the data events service data events HTTP endpoint.
func DecodeAddDataEventRequest ¶
func DecodeAddDataEventRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (interface{}, error)
DecodeAddDataEventRequest returns a decoder for requests sent to the data events add data event endpoint.
func DecodeDataEventsEndpointRequest ¶
func DecodeDataEventsEndpointRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (interface{}, error)
DecodeDataEventsEndpointRequest returns a decoder for requests sent to the data events data events endpoint.
func DecodeDeleteDataEventRequest ¶
func DecodeDeleteDataEventRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (interface{}, error)
DecodeDeleteDataEventRequest returns a decoder for requests sent to the data events delete data event endpoint.
func DecodeUpdateDataEventRequest ¶
func DecodeUpdateDataEventRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (interface{}, error)
DecodeUpdateDataEventRequest returns a decoder for requests sent to the data events update data event endpoint.
func DeleteDataEventDataEventsPath ¶
DeleteDataEventDataEventsPath returns the URL path to the data events service delete data event HTTP endpoint.
func EncodeAddDataEventError ¶
func EncodeAddDataEventError(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, formatter func(err error) goahttp.Statuser) func(context.Context, http.ResponseWriter, error) error
EncodeAddDataEventError returns an encoder for errors returned by the add data event data events endpoint.
func EncodeAddDataEventResponse ¶
func EncodeAddDataEventResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, interface{}) error
EncodeAddDataEventResponse returns an encoder for responses returned by the data events add data event endpoint.
func EncodeDataEventsEndpointError ¶
func EncodeDataEventsEndpointError(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, formatter func(err error) goahttp.Statuser) func(context.Context, http.ResponseWriter, error) error
EncodeDataEventsEndpointError returns an encoder for errors returned by the data events data events endpoint.
func EncodeDataEventsEndpointResponse ¶
func EncodeDataEventsEndpointResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, interface{}) error
EncodeDataEventsEndpointResponse returns an encoder for responses returned by the data events data events endpoint.
func EncodeDeleteDataEventError ¶
func EncodeDeleteDataEventError(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, formatter func(err error) goahttp.Statuser) func(context.Context, http.ResponseWriter, error) error
EncodeDeleteDataEventError returns an encoder for errors returned by the delete data event data events endpoint.
func EncodeDeleteDataEventResponse ¶
func EncodeDeleteDataEventResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, interface{}) error
EncodeDeleteDataEventResponse returns an encoder for responses returned by the data events delete data event endpoint.
func EncodeUpdateDataEventError ¶
func EncodeUpdateDataEventError(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, formatter func(err error) goahttp.Statuser) func(context.Context, http.ResponseWriter, error) error
EncodeUpdateDataEventError returns an encoder for errors returned by the update data event data events endpoint.
func EncodeUpdateDataEventResponse ¶
func EncodeUpdateDataEventResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, interface{}) error
EncodeUpdateDataEventResponse returns an encoder for responses returned by the data events update data event endpoint.
func MountAddDataEventHandler ¶
MountAddDataEventHandler configures the mux to serve the "data events" service "add data event" endpoint.
func MountCORSHandler ¶
MountCORSHandler configures the mux to serve the CORS endpoints for the service data events.
func MountDataEventsEndpointHandler ¶
MountDataEventsEndpointHandler configures the mux to serve the "data events" service "data events" endpoint.
func MountDeleteDataEventHandler ¶
MountDeleteDataEventHandler configures the mux to serve the "data events" service "delete data event" endpoint.
func MountUpdateDataEventHandler ¶
MountUpdateDataEventHandler configures the mux to serve the "data events" service "update data event" endpoint.
func NewAddDataEventHandler ¶
func NewAddDataEventHandler( endpoint goa.Endpoint, mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder, encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, errhandler func(context.Context, http.ResponseWriter, error), formatter func(err error) goahttp.Statuser, ) http.Handler
NewAddDataEventHandler creates a HTTP handler which loads the HTTP request and calls the "data events" service "add data event" endpoint.
func NewAddDataEventPayload ¶
func NewAddDataEventPayload(body *AddDataEventRequestBody, auth string) *dataevents.AddDataEventPayload
NewAddDataEventPayload builds a data events service add data event endpoint payload.
func NewCORSHandler ¶
NewCORSHandler creates a HTTP handler which returns a simple 200 response.
func NewDataEventsEndpointHandler ¶
func NewDataEventsEndpointHandler( endpoint goa.Endpoint, mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder, encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, errhandler func(context.Context, http.ResponseWriter, error), formatter func(err error) goahttp.Statuser, ) http.Handler
NewDataEventsEndpointHandler creates a HTTP handler which loads the HTTP request and calls the "data events" service "data events" endpoint.
func NewDataEventsPayload ¶
func NewDataEventsPayload(bookmark string, auth *string) *dataevents.DataEventsPayload
NewDataEventsPayload builds a data events service data events endpoint payload.
func NewDeleteDataEventHandler ¶
func NewDeleteDataEventHandler( endpoint goa.Endpoint, mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder, encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, errhandler func(context.Context, http.ResponseWriter, error), formatter func(err error) goahttp.Statuser, ) http.Handler
NewDeleteDataEventHandler creates a HTTP handler which loads the HTTP request and calls the "data events" service "delete data event" endpoint.
func NewDeleteDataEventPayload ¶
func NewDeleteDataEventPayload(eventID int64, auth string) *dataevents.DeleteDataEventPayload
NewDeleteDataEventPayload builds a data events service delete data event endpoint payload.
func NewUpdateDataEventHandler ¶
func NewUpdateDataEventHandler( endpoint goa.Endpoint, mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder, encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, errhandler func(context.Context, http.ResponseWriter, error), formatter func(err error) goahttp.Statuser, ) http.Handler
NewUpdateDataEventHandler creates a HTTP handler which loads the HTTP request and calls the "data events" service "update data event" endpoint.
func NewUpdateDataEventPayload ¶
func NewUpdateDataEventPayload(body *UpdateDataEventRequestBody, eventID int64, auth string) *dataevents.UpdateDataEventPayload
NewUpdateDataEventPayload builds a data events service update data event endpoint payload.
func UpdateDataEventDataEventsPath ¶
UpdateDataEventDataEventsPath returns the URL path to the data events service update data event HTTP endpoint.
func ValidateAddDataEventRequestBody ¶
func ValidateAddDataEventRequestBody(body *AddDataEventRequestBody) (err error)
ValidateAddDataEventRequestBody runs the validations defined on Add Data EventRequestBody
func ValidateNewDataEventRequestBody ¶
func ValidateNewDataEventRequestBody(body *NewDataEventRequestBody) (err error)
ValidateNewDataEventRequestBody runs the validations defined on NewDataEventRequestBody
func ValidateUpdateDataEventRequestBody ¶
func ValidateUpdateDataEventRequestBody(body *UpdateDataEventRequestBody) (err error)
ValidateUpdateDataEventRequestBody runs the validations defined on Update Data EventRequestBody
Types ¶
type AddDataEventBadRequestResponseBody ¶
type AddDataEventBadRequestResponseBody struct { // Name is the name of this class of errors. Name string `form:"name" json:"name" xml:"name"` // ID is a unique identifier for this particular occurrence of the problem. ID string `form:"id" json:"id" xml:"id"` // Message is a human-readable explanation specific to this occurrence of the // problem. Message string `form:"message" json:"message" xml:"message"` // Is the error temporary? Temporary bool `form:"temporary" json:"temporary" xml:"temporary"` // Is the error a timeout? Timeout bool `form:"timeout" json:"timeout" xml:"timeout"` // Is the error a server-side fault? Fault bool `form:"fault" json:"fault" xml:"fault"` }
AddDataEventBadRequestResponseBody is the type of the "data events" service "add data event" endpoint HTTP response body for the "bad-request" error.
func NewAddDataEventBadRequestResponseBody ¶
func NewAddDataEventBadRequestResponseBody(res *goa.ServiceError) *AddDataEventBadRequestResponseBody
NewAddDataEventBadRequestResponseBody builds the HTTP response body from the result of the "add data event" endpoint of the "data events" service.
type AddDataEventForbiddenResponseBody ¶
type AddDataEventForbiddenResponseBody struct { // Name is the name of this class of errors. Name string `form:"name" json:"name" xml:"name"` // ID is a unique identifier for this particular occurrence of the problem. ID string `form:"id" json:"id" xml:"id"` // Message is a human-readable explanation specific to this occurrence of the // problem. Message string `form:"message" json:"message" xml:"message"` // Is the error temporary? Temporary bool `form:"temporary" json:"temporary" xml:"temporary"` // Is the error a timeout? Timeout bool `form:"timeout" json:"timeout" xml:"timeout"` // Is the error a server-side fault? Fault bool `form:"fault" json:"fault" xml:"fault"` }
AddDataEventForbiddenResponseBody is the type of the "data events" service "add data event" endpoint HTTP response body for the "forbidden" error.
func NewAddDataEventForbiddenResponseBody ¶
func NewAddDataEventForbiddenResponseBody(res *goa.ServiceError) *AddDataEventForbiddenResponseBody
NewAddDataEventForbiddenResponseBody builds the HTTP response body from the result of the "add data event" endpoint of the "data events" service.
type AddDataEventNotFoundResponseBody ¶
type AddDataEventNotFoundResponseBody struct { // Name is the name of this class of errors. Name string `form:"name" json:"name" xml:"name"` // ID is a unique identifier for this particular occurrence of the problem. ID string `form:"id" json:"id" xml:"id"` // Message is a human-readable explanation specific to this occurrence of the // problem. Message string `form:"message" json:"message" xml:"message"` // Is the error temporary? Temporary bool `form:"temporary" json:"temporary" xml:"temporary"` // Is the error a timeout? Timeout bool `form:"timeout" json:"timeout" xml:"timeout"` // Is the error a server-side fault? Fault bool `form:"fault" json:"fault" xml:"fault"` }
AddDataEventNotFoundResponseBody is the type of the "data events" service "add data event" endpoint HTTP response body for the "not-found" error.
func NewAddDataEventNotFoundResponseBody ¶
func NewAddDataEventNotFoundResponseBody(res *goa.ServiceError) *AddDataEventNotFoundResponseBody
NewAddDataEventNotFoundResponseBody builds the HTTP response body from the result of the "add data event" endpoint of the "data events" service.
type AddDataEventRequestBody ¶
type AddDataEventRequestBody struct {
Event *NewDataEventRequestBody `form:"event,omitempty" json:"event,omitempty" xml:"event,omitempty"`
}
AddDataEventRequestBody is the type of the "data events" service "add data event" endpoint HTTP request body.
type AddDataEventResponseBody ¶
type AddDataEventResponseBody struct {
Event *DataEventResponseBody `form:"event" json:"event" xml:"event"`
}
AddDataEventResponseBody is the type of the "data events" service "add data event" endpoint HTTP response body.
func NewAddDataEventResponseBody ¶
func NewAddDataEventResponseBody(res *dataevents.AddDataEventResult) *AddDataEventResponseBody
NewAddDataEventResponseBody builds the HTTP response body from the result of the "add data event" endpoint of the "data events" service.
type AddDataEventUnauthorizedResponseBody ¶
type AddDataEventUnauthorizedResponseBody struct { string `form:"name" json:"name" xml:"name"` ID string `form:"id" json:"id" xml:"id"` // problem. Message string `form:"message" json:"message" xml:"message"` Temporary bool `form:"temporary" json:"temporary" xml:"temporary"` Timeout bool `form:"timeout" json:"timeout" xml:"timeout"` Fault bool `form:"fault" json:"fault" xml:"fault"` }Name
AddDataEventUnauthorizedResponseBody is the type of the "data events" service "add data event" endpoint HTTP response body for the "unauthorized" error.
func NewAddDataEventUnauthorizedResponseBody ¶
func NewAddDataEventUnauthorizedResponseBody(res *goa.ServiceError) *AddDataEventUnauthorizedResponseBody
NewAddDataEventUnauthorizedResponseBody builds the HTTP response body from the result of the "add data event" endpoint of the "data events" service.
type AuthorPhotoResponseBody ¶
type AuthorPhotoResponseBody struct {
URL string `form:"url" json:"url" xml:"url"`
}
AuthorPhotoResponseBody is used to define fields on response body types.
type DataEventResponseBody ¶
type DataEventResponseBody struct { ID int64 `form:"id" json:"id" xml:"id"` CreatedAt int64 `form:"createdAt" json:"createdAt" xml:"createdAt"` UpdatedAt int64 `form:"updatedAt" json:"updatedAt" xml:"updatedAt"` Author *PostAuthorResponseBody `form:"author" json:"author" xml:"author"` Title string `form:"title" json:"title" xml:"title"` Description string `form:"description" json:"description" xml:"description"` Bookmark *string `form:"bookmark,omitempty" json:"bookmark,omitempty" xml:"bookmark,omitempty"` Start int64 `form:"start" json:"start" xml:"start"` End int64 `form:"end" json:"end" xml:"end"` }
DataEventResponseBody is used to define fields on response body types.
type DataEventsBadRequestResponseBody ¶
type DataEventsBadRequestResponseBody struct { // Name is the name of this class of errors. Name string `form:"name" json:"name" xml:"name"` // ID is a unique identifier for this particular occurrence of the problem. ID string `form:"id" json:"id" xml:"id"` // Message is a human-readable explanation specific to this occurrence of the // problem. Message string `form:"message" json:"message" xml:"message"` // Is the error temporary? Temporary bool `form:"temporary" json:"temporary" xml:"temporary"` // Is the error a timeout? Timeout bool `form:"timeout" json:"timeout" xml:"timeout"` // Is the error a server-side fault? Fault bool `form:"fault" json:"fault" xml:"fault"` }
DataEventsBadRequestResponseBody is the type of the "data events" service "data events" endpoint HTTP response body for the "bad-request" error.
func NewDataEventsBadRequestResponseBody ¶
func NewDataEventsBadRequestResponseBody(res *goa.ServiceError) *DataEventsBadRequestResponseBody
NewDataEventsBadRequestResponseBody builds the HTTP response body from the result of the "data events" endpoint of the "data events" service.
type DataEventsForbiddenResponseBody ¶
type DataEventsForbiddenResponseBody struct { // Name is the name of this class of errors. Name string `form:"name" json:"name" xml:"name"` // ID is a unique identifier for this particular occurrence of the problem. ID string `form:"id" json:"id" xml:"id"` // Message is a human-readable explanation specific to this occurrence of the // problem. Message string `form:"message" json:"message" xml:"message"` // Is the error temporary? Temporary bool `form:"temporary" json:"temporary" xml:"temporary"` // Is the error a timeout? Timeout bool `form:"timeout" json:"timeout" xml:"timeout"` // Is the error a server-side fault? Fault bool `form:"fault" json:"fault" xml:"fault"` }
DataEventsForbiddenResponseBody is the type of the "data events" service "data events" endpoint HTTP response body for the "forbidden" error.
func NewDataEventsForbiddenResponseBody ¶
func NewDataEventsForbiddenResponseBody(res *goa.ServiceError) *DataEventsForbiddenResponseBody
NewDataEventsForbiddenResponseBody builds the HTTP response body from the result of the "data events" endpoint of the "data events" service.
type DataEventsNotFoundResponseBody ¶
type DataEventsNotFoundResponseBody struct { // Name is the name of this class of errors. Name string `form:"name" json:"name" xml:"name"` // ID is a unique identifier for this particular occurrence of the problem. ID string `form:"id" json:"id" xml:"id"` // Message is a human-readable explanation specific to this occurrence of the // problem. Message string `form:"message" json:"message" xml:"message"` // Is the error temporary? Temporary bool `form:"temporary" json:"temporary" xml:"temporary"` // Is the error a timeout? Timeout bool `form:"timeout" json:"timeout" xml:"timeout"` // Is the error a server-side fault? Fault bool `form:"fault" json:"fault" xml:"fault"` }
DataEventsNotFoundResponseBody is the type of the "data events" service "data events" endpoint HTTP response body for the "not-found" error.
func NewDataEventsNotFoundResponseBody ¶
func NewDataEventsNotFoundResponseBody(res *goa.ServiceError) *DataEventsNotFoundResponseBody
NewDataEventsNotFoundResponseBody builds the HTTP response body from the result of the "data events" endpoint of the "data events" service.
type DataEventsResponseBody ¶
type DataEventsResponseBody struct {
Events []*DataEventResponseBody `form:"events" json:"events" xml:"events"`
}
DataEventsResponseBody is the type of the "data events" service "data events" endpoint HTTP response body.
func NewDataEventsResponseBody ¶
func NewDataEventsResponseBody(res *dataeventsviews.DataEventsView) *DataEventsResponseBody
NewDataEventsResponseBody builds the HTTP response body from the result of the "data events" endpoint of the "data events" service.
type DataEventsUnauthorizedResponseBody ¶
type DataEventsUnauthorizedResponseBody struct { string `form:"name" json:"name" xml:"name"` ID string `form:"id" json:"id" xml:"id"` // problem. Message string `form:"message" json:"message" xml:"message"` Temporary bool `form:"temporary" json:"temporary" xml:"temporary"` Timeout bool `form:"timeout" json:"timeout" xml:"timeout"` Fault bool `form:"fault" json:"fault" xml:"fault"` }Name
DataEventsUnauthorizedResponseBody is the type of the "data events" service "data events" endpoint HTTP response body for the "unauthorized" error.
func NewDataEventsUnauthorizedResponseBody ¶
func NewDataEventsUnauthorizedResponseBody(res *goa.ServiceError) *DataEventsUnauthorizedResponseBody
NewDataEventsUnauthorizedResponseBody builds the HTTP response body from the result of the "data events" endpoint of the "data events" service.
type DeleteDataEventBadRequestResponseBody ¶
type DeleteDataEventBadRequestResponseBody struct { // Name is the name of this class of errors. Name string `form:"name" json:"name" xml:"name"` // ID is a unique identifier for this particular occurrence of the problem. ID string `form:"id" json:"id" xml:"id"` // Message is a human-readable explanation specific to this occurrence of the // problem. Message string `form:"message" json:"message" xml:"message"` // Is the error temporary? Temporary bool `form:"temporary" json:"temporary" xml:"temporary"` // Is the error a timeout? Timeout bool `form:"timeout" json:"timeout" xml:"timeout"` // Is the error a server-side fault? Fault bool `form:"fault" json:"fault" xml:"fault"` }
DeleteDataEventBadRequestResponseBody is the type of the "data events" service "delete data event" endpoint HTTP response body for the "bad-request" error.
func NewDeleteDataEventBadRequestResponseBody ¶
func NewDeleteDataEventBadRequestResponseBody(res *goa.ServiceError) *DeleteDataEventBadRequestResponseBody
NewDeleteDataEventBadRequestResponseBody builds the HTTP response body from the result of the "delete data event" endpoint of the "data events" service.
type DeleteDataEventForbiddenResponseBody ¶
type DeleteDataEventForbiddenResponseBody struct { // Name is the name of this class of errors. Name string `form:"name" json:"name" xml:"name"` // ID is a unique identifier for this particular occurrence of the problem. ID string `form:"id" json:"id" xml:"id"` // Message is a human-readable explanation specific to this occurrence of the // problem. Message string `form:"message" json:"message" xml:"message"` // Is the error temporary? Temporary bool `form:"temporary" json:"temporary" xml:"temporary"` // Is the error a timeout? Timeout bool `form:"timeout" json:"timeout" xml:"timeout"` // Is the error a server-side fault? Fault bool `form:"fault" json:"fault" xml:"fault"` }
DeleteDataEventForbiddenResponseBody is the type of the "data events" service "delete data event" endpoint HTTP response body for the "forbidden" error.
func NewDeleteDataEventForbiddenResponseBody ¶
func NewDeleteDataEventForbiddenResponseBody(res *goa.ServiceError) *DeleteDataEventForbiddenResponseBody
NewDeleteDataEventForbiddenResponseBody builds the HTTP response body from the result of the "delete data event" endpoint of the "data events" service.
type DeleteDataEventNotFoundResponseBody ¶
type DeleteDataEventNotFoundResponseBody struct { // Name is the name of this class of errors. Name string `form:"name" json:"name" xml:"name"` // ID is a unique identifier for this particular occurrence of the problem. ID string `form:"id" json:"id" xml:"id"` // Message is a human-readable explanation specific to this occurrence of the // problem. Message string `form:"message" json:"message" xml:"message"` // Is the error temporary? Temporary bool `form:"temporary" json:"temporary" xml:"temporary"` // Is the error a timeout? Timeout bool `form:"timeout" json:"timeout" xml:"timeout"` // Is the error a server-side fault? Fault bool `form:"fault" json:"fault" xml:"fault"` }
DeleteDataEventNotFoundResponseBody is the type of the "data events" service "delete data event" endpoint HTTP response body for the "not-found" error.
func NewDeleteDataEventNotFoundResponseBody ¶
func NewDeleteDataEventNotFoundResponseBody(res *goa.ServiceError) *DeleteDataEventNotFoundResponseBody
NewDeleteDataEventNotFoundResponseBody builds the HTTP response body from the result of the "delete data event" endpoint of the "data events" service.
type DeleteDataEventUnauthorizedResponseBody ¶
type DeleteDataEventUnauthorizedResponseBody struct { string `form:"name" json:"name" xml:"name"` ID string `form:"id" json:"id" xml:"id"` // problem. Message string `form:"message" json:"message" xml:"message"` Temporary bool `form:"temporary" json:"temporary" xml:"temporary"` Timeout bool `form:"timeout" json:"timeout" xml:"timeout"` Fault bool `form:"fault" json:"fault" xml:"fault"` }Name
DeleteDataEventUnauthorizedResponseBody is the type of the "data events" service "delete data event" endpoint HTTP response body for the "unauthorized" error.
func NewDeleteDataEventUnauthorizedResponseBody ¶
func NewDeleteDataEventUnauthorizedResponseBody(res *goa.ServiceError) *DeleteDataEventUnauthorizedResponseBody
NewDeleteDataEventUnauthorizedResponseBody builds the HTTP response body from the result of the "delete data event" endpoint of the "data events" service.
type ErrorNamer ¶
type ErrorNamer interface {
ErrorName() string
}
ErrorNamer is an interface implemented by generated error structs that exposes the name of the error as defined in the design.
type MountPoint ¶
type MountPoint struct { // Method is the name of the service method served by the mounted HTTP handler. Method string // Verb is the HTTP method used to match requests to the mounted handler. Verb string // Pattern is the HTTP request path pattern used to match requests to the // mounted handler. Pattern string }
MountPoint holds information about the mounted endpoints.
type NewDataEventRequestBody ¶
type NewDataEventRequestBody struct { AllProjectSensors *bool `form:"allProjectSensors,omitempty" json:"allProjectSensors,omitempty" xml:"allProjectSensors,omitempty"` Bookmark *string `form:"bookmark,omitempty" json:"bookmark,omitempty" xml:"bookmark,omitempty"` Title *string `form:"title,omitempty" json:"title,omitempty" xml:"title,omitempty"` Description *string `form:"description,omitempty" json:"description,omitempty" xml:"description,omitempty"` Start *int64 `form:"start,omitempty" json:"start,omitempty" xml:"start,omitempty"` End *int64 `form:"end,omitempty" json:"end,omitempty" xml:"end,omitempty"` }
NewDataEventRequestBody is used to define fields on request body types.
type PostAuthorResponseBody ¶
type PostAuthorResponseBody struct { ID int32 `form:"id" json:"id" xml:"id"` Name string `form:"name" json:"name" xml:"name"` Photo *AuthorPhotoResponseBody `form:"photo,omitempty" json:"photo,omitempty" xml:"photo,omitempty"` }
PostAuthorResponseBody is used to define fields on response body types.
type Server ¶
type Server struct { Mounts []*MountPoint DataEventsEndpoint http.Handler AddDataEvent http.Handler UpdateDataEvent http.Handler DeleteDataEvent http.Handler CORS http.Handler }
Server lists the data events service endpoint HTTP handlers.
func New ¶
func New( e *dataevents.Endpoints, mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder, encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, errhandler func(context.Context, http.ResponseWriter, error), formatter func(err error) goahttp.Statuser, ) *Server
New instantiates HTTP handlers for all the data events service endpoints using the provided encoder and decoder. The handlers are mounted on the given mux using the HTTP verb and path defined in the design. errhandler is called whenever a response fails to be encoded. formatter is used to format errors returned by the service methods prior to encoding. Both errhandler and formatter are optional and can be nil.
type UpdateDataEventBadRequestResponseBody ¶
type UpdateDataEventBadRequestResponseBody struct { // Name is the name of this class of errors. Name string `form:"name" json:"name" xml:"name"` // ID is a unique identifier for this particular occurrence of the problem. ID string `form:"id" json:"id" xml:"id"` // Message is a human-readable explanation specific to this occurrence of the // problem. Message string `form:"message" json:"message" xml:"message"` // Is the error temporary? Temporary bool `form:"temporary" json:"temporary" xml:"temporary"` // Is the error a timeout? Timeout bool `form:"timeout" json:"timeout" xml:"timeout"` // Is the error a server-side fault? Fault bool `form:"fault" json:"fault" xml:"fault"` }
UpdateDataEventBadRequestResponseBody is the type of the "data events" service "update data event" endpoint HTTP response body for the "bad-request" error.
func NewUpdateDataEventBadRequestResponseBody ¶
func NewUpdateDataEventBadRequestResponseBody(res *goa.ServiceError) *UpdateDataEventBadRequestResponseBody
NewUpdateDataEventBadRequestResponseBody builds the HTTP response body from the result of the "update data event" endpoint of the "data events" service.
type UpdateDataEventForbiddenResponseBody ¶
type UpdateDataEventForbiddenResponseBody struct { // Name is the name of this class of errors. Name string `form:"name" json:"name" xml:"name"` // ID is a unique identifier for this particular occurrence of the problem. ID string `form:"id" json:"id" xml:"id"` // Message is a human-readable explanation specific to this occurrence of the // problem. Message string `form:"message" json:"message" xml:"message"` // Is the error temporary? Temporary bool `form:"temporary" json:"temporary" xml:"temporary"` // Is the error a timeout? Timeout bool `form:"timeout" json:"timeout" xml:"timeout"` // Is the error a server-side fault? Fault bool `form:"fault" json:"fault" xml:"fault"` }
UpdateDataEventForbiddenResponseBody is the type of the "data events" service "update data event" endpoint HTTP response body for the "forbidden" error.
func NewUpdateDataEventForbiddenResponseBody ¶
func NewUpdateDataEventForbiddenResponseBody(res *goa.ServiceError) *UpdateDataEventForbiddenResponseBody
NewUpdateDataEventForbiddenResponseBody builds the HTTP response body from the result of the "update data event" endpoint of the "data events" service.
type UpdateDataEventNotFoundResponseBody ¶
type UpdateDataEventNotFoundResponseBody struct { // Name is the name of this class of errors. Name string `form:"name" json:"name" xml:"name"` // ID is a unique identifier for this particular occurrence of the problem. ID string `form:"id" json:"id" xml:"id"` // Message is a human-readable explanation specific to this occurrence of the // problem. Message string `form:"message" json:"message" xml:"message"` // Is the error temporary? Temporary bool `form:"temporary" json:"temporary" xml:"temporary"` // Is the error a timeout? Timeout bool `form:"timeout" json:"timeout" xml:"timeout"` // Is the error a server-side fault? Fault bool `form:"fault" json:"fault" xml:"fault"` }
UpdateDataEventNotFoundResponseBody is the type of the "data events" service "update data event" endpoint HTTP response body for the "not-found" error.
func NewUpdateDataEventNotFoundResponseBody ¶
func NewUpdateDataEventNotFoundResponseBody(res *goa.ServiceError) *UpdateDataEventNotFoundResponseBody
NewUpdateDataEventNotFoundResponseBody builds the HTTP response body from the result of the "update data event" endpoint of the "data events" service.
type UpdateDataEventRequestBody ¶
type UpdateDataEventRequestBody struct { Title *string `form:"title,omitempty" json:"title,omitempty" xml:"title,omitempty"` Description *string `form:"description,omitempty" json:"description,omitempty" xml:"description,omitempty"` Start *int64 `form:"start,omitempty" json:"start,omitempty" xml:"start,omitempty"` End *int64 `form:"end,omitempty" json:"end,omitempty" xml:"end,omitempty"` }
UpdateDataEventRequestBody is the type of the "data events" service "update data event" endpoint HTTP request body.
type UpdateDataEventResponseBody ¶
type UpdateDataEventResponseBody struct {
Event *DataEventResponseBody `form:"event" json:"event" xml:"event"`
}
UpdateDataEventResponseBody is the type of the "data events" service "update data event" endpoint HTTP response body.
func NewUpdateDataEventResponseBody ¶
func NewUpdateDataEventResponseBody(res *dataevents.UpdateDataEventResult) *UpdateDataEventResponseBody
NewUpdateDataEventResponseBody builds the HTTP response body from the result of the "update data event" endpoint of the "data events" service.
type UpdateDataEventUnauthorizedResponseBody ¶
type UpdateDataEventUnauthorizedResponseBody struct { string `form:"name" json:"name" xml:"name"` ID string `form:"id" json:"id" xml:"id"` // problem. Message string `form:"message" json:"message" xml:"message"` Temporary bool `form:"temporary" json:"temporary" xml:"temporary"` Timeout bool `form:"timeout" json:"timeout" xml:"timeout"` Fault bool `form:"fault" json:"fault" xml:"fault"` }Name
UpdateDataEventUnauthorizedResponseBody is the type of the "data events" service "update data event" endpoint HTTP response body for the "unauthorized" error.
func NewUpdateDataEventUnauthorizedResponseBody ¶
func NewUpdateDataEventUnauthorizedResponseBody(res *goa.ServiceError) *UpdateDataEventUnauthorizedResponseBody
NewUpdateDataEventUnauthorizedResponseBody builds the HTTP response body from the result of the "update data event" endpoint of the "data events" service.