server

package
v0.0.0-...-b9360c4 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2023 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

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

func DeleteDataEventDataEventsPath(eventID int64) string

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 Mount

func Mount(mux goahttp.Muxer, h *Server)

Mount configures the mux to serve the data events endpoints.

func MountAddDataEventHandler

func MountAddDataEventHandler(mux goahttp.Muxer, h http.Handler)

MountAddDataEventHandler configures the mux to serve the "data events" service "add data event" endpoint.

func MountCORSHandler

func MountCORSHandler(mux goahttp.Muxer, h http.Handler)

MountCORSHandler configures the mux to serve the CORS endpoints for the service data events.

func MountDataEventsEndpointHandler

func MountDataEventsEndpointHandler(mux goahttp.Muxer, h http.Handler)

MountDataEventsEndpointHandler configures the mux to serve the "data events" service "data events" endpoint.

func MountDeleteDataEventHandler

func MountDeleteDataEventHandler(mux goahttp.Muxer, h http.Handler)

MountDeleteDataEventHandler configures the mux to serve the "data events" service "delete data event" endpoint.

func MountUpdateDataEventHandler

func MountUpdateDataEventHandler(mux goahttp.Muxer, h http.Handler)

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

func NewCORSHandler() http.Handler

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

func UpdateDataEventDataEventsPath(eventID int64) string

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 {
	// 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"`
}

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 {
	// 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"`
}

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 {
	// 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"`
}

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.

func (*Server) Service

func (s *Server) Service() string

Service returns the name of the service served.

func (*Server) Use

func (s *Server) Use(m func(http.Handler) http.Handler)

Use wraps the server handlers with the given middleware.

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 {
	// 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"`
}

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.

Jump to

Keyboard shortcuts

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