client

package
v0.0.0-...-dca2783 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2023 License: BSD-3-Clause Imports: 13 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 BuildAddDataEventPayload

func BuildAddDataEventPayload(dataEventsAddDataEventBody string, dataEventsAddDataEventAuth string) (*dataevents.AddDataEventPayload, error)

BuildAddDataEventPayload builds the payload for the data events add data event endpoint from CLI flags.

func BuildDataEventsEndpointPayload

func BuildDataEventsEndpointPayload(dataEventsDataEventsBookmark string, dataEventsDataEventsAuth string) (*dataevents.DataEventsPayload, error)

BuildDataEventsEndpointPayload builds the payload for the data events data events endpoint from CLI flags.

func BuildDeleteDataEventPayload

func BuildDeleteDataEventPayload(dataEventsDeleteDataEventEventID string, dataEventsDeleteDataEventAuth string) (*dataevents.DeleteDataEventPayload, error)

BuildDeleteDataEventPayload builds the payload for the data events delete data event endpoint from CLI flags.

func BuildUpdateDataEventPayload

func BuildUpdateDataEventPayload(dataEventsUpdateDataEventBody string, dataEventsUpdateDataEventEventID string, dataEventsUpdateDataEventAuth string) (*dataevents.UpdateDataEventPayload, error)

BuildUpdateDataEventPayload builds the payload for the data events update data event endpoint from CLI flags.

func DataEventsEndpointDataEventsPath

func DataEventsEndpointDataEventsPath() string

DataEventsEndpointDataEventsPath returns the URL path to the data events service data events HTTP endpoint.

func DecodeAddDataEventResponse

func DecodeAddDataEventResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)

DecodeAddDataEventResponse returns a decoder for responses returned by the data events add data event endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeAddDataEventResponse may return the following errors:

  • "unauthorized" (type *goa.ServiceError): http.StatusUnauthorized
  • "forbidden" (type *goa.ServiceError): http.StatusForbidden
  • "not-found" (type *goa.ServiceError): http.StatusNotFound
  • "bad-request" (type *goa.ServiceError): http.StatusBadRequest
  • error: internal error

func DecodeDataEventsEndpointResponse

func DecodeDataEventsEndpointResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)

DecodeDataEventsEndpointResponse returns a decoder for responses returned by the data events data events endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeDataEventsEndpointResponse may return the following errors:

  • "unauthorized" (type *goa.ServiceError): http.StatusUnauthorized
  • "forbidden" (type *goa.ServiceError): http.StatusForbidden
  • "not-found" (type *goa.ServiceError): http.StatusNotFound
  • "bad-request" (type *goa.ServiceError): http.StatusBadRequest
  • error: internal error

func DecodeDeleteDataEventResponse

func DecodeDeleteDataEventResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)

DecodeDeleteDataEventResponse returns a decoder for responses returned by the data events delete data event endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeDeleteDataEventResponse may return the following errors:

  • "unauthorized" (type *goa.ServiceError): http.StatusUnauthorized
  • "forbidden" (type *goa.ServiceError): http.StatusForbidden
  • "not-found" (type *goa.ServiceError): http.StatusNotFound
  • "bad-request" (type *goa.ServiceError): http.StatusBadRequest
  • error: internal error

func DecodeUpdateDataEventResponse

func DecodeUpdateDataEventResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)

DecodeUpdateDataEventResponse returns a decoder for responses returned by the data events update data event endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeUpdateDataEventResponse may return the following errors:

  • "unauthorized" (type *goa.ServiceError): http.StatusUnauthorized
  • "forbidden" (type *goa.ServiceError): http.StatusForbidden
  • "not-found" (type *goa.ServiceError): http.StatusNotFound
  • "bad-request" (type *goa.ServiceError): http.StatusBadRequest
  • error: internal error

func DeleteDataEventDataEventsPath

func DeleteDataEventDataEventsPath(eventID int64) string

DeleteDataEventDataEventsPath returns the URL path to the data events service delete data event HTTP endpoint.

func EncodeAddDataEventRequest

func EncodeAddDataEventRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error

EncodeAddDataEventRequest returns an encoder for requests sent to the data events add data event server.

func EncodeDataEventsEndpointRequest

func EncodeDataEventsEndpointRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error

EncodeDataEventsEndpointRequest returns an encoder for requests sent to the data events data events server.

func EncodeDeleteDataEventRequest

func EncodeDeleteDataEventRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error

EncodeDeleteDataEventRequest returns an encoder for requests sent to the data events delete data event server.

func EncodeUpdateDataEventRequest

func EncodeUpdateDataEventRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error

EncodeUpdateDataEventRequest returns an encoder for requests sent to the data events update data event server.

func NewAddDataEventBadRequest

func NewAddDataEventBadRequest(body *AddDataEventBadRequestResponseBody) *goa.ServiceError

NewAddDataEventBadRequest builds a data events service add data event endpoint bad-request error.

func NewAddDataEventForbidden

func NewAddDataEventForbidden(body *AddDataEventForbiddenResponseBody) *goa.ServiceError

NewAddDataEventForbidden builds a data events service add data event endpoint forbidden error.

func NewAddDataEventNotFound

func NewAddDataEventNotFound(body *AddDataEventNotFoundResponseBody) *goa.ServiceError

NewAddDataEventNotFound builds a data events service add data event endpoint not-found error.

func NewAddDataEventResultOK

func NewAddDataEventResultOK(body *AddDataEventResponseBody) *dataevents.AddDataEventResult

NewAddDataEventResultOK builds a "data events" service "add data event" endpoint result from a HTTP "OK" response.

func NewAddDataEventUnauthorized

func NewAddDataEventUnauthorized(body *AddDataEventUnauthorizedResponseBody) *goa.ServiceError

NewAddDataEventUnauthorized builds a data events service add data event endpoint unauthorized error.

func NewDataEventsBadRequest

func NewDataEventsBadRequest(body *DataEventsBadRequestResponseBody) *goa.ServiceError

NewDataEventsBadRequest builds a data events service data events endpoint bad-request error.

func NewDataEventsForbidden

func NewDataEventsForbidden(body *DataEventsForbiddenResponseBody) *goa.ServiceError

NewDataEventsForbidden builds a data events service data events endpoint forbidden error.

func NewDataEventsNotFound

func NewDataEventsNotFound(body *DataEventsNotFoundResponseBody) *goa.ServiceError

NewDataEventsNotFound builds a data events service data events endpoint not-found error.

func NewDataEventsUnauthorized

func NewDataEventsUnauthorized(body *DataEventsUnauthorizedResponseBody) *goa.ServiceError

NewDataEventsUnauthorized builds a data events service data events endpoint unauthorized error.

func NewDataEventsViewOK

func NewDataEventsViewOK(body *DataEventsResponseBody) *dataeventsviews.DataEventsView

NewDataEventsViewOK builds a "data events" service "data events" endpoint result from a HTTP "OK" response.

func NewDeleteDataEventBadRequest

func NewDeleteDataEventBadRequest(body *DeleteDataEventBadRequestResponseBody) *goa.ServiceError

NewDeleteDataEventBadRequest builds a data events service delete data event endpoint bad-request error.

func NewDeleteDataEventForbidden

func NewDeleteDataEventForbidden(body *DeleteDataEventForbiddenResponseBody) *goa.ServiceError

NewDeleteDataEventForbidden builds a data events service delete data event endpoint forbidden error.

func NewDeleteDataEventNotFound

func NewDeleteDataEventNotFound(body *DeleteDataEventNotFoundResponseBody) *goa.ServiceError

NewDeleteDataEventNotFound builds a data events service delete data event endpoint not-found error.

func NewDeleteDataEventUnauthorized

func NewDeleteDataEventUnauthorized(body *DeleteDataEventUnauthorizedResponseBody) *goa.ServiceError

NewDeleteDataEventUnauthorized builds a data events service delete data event endpoint unauthorized error.

func NewUpdateDataEventBadRequest

func NewUpdateDataEventBadRequest(body *UpdateDataEventBadRequestResponseBody) *goa.ServiceError

NewUpdateDataEventBadRequest builds a data events service update data event endpoint bad-request error.

func NewUpdateDataEventForbidden

func NewUpdateDataEventForbidden(body *UpdateDataEventForbiddenResponseBody) *goa.ServiceError

NewUpdateDataEventForbidden builds a data events service update data event endpoint forbidden error.

func NewUpdateDataEventNotFound

func NewUpdateDataEventNotFound(body *UpdateDataEventNotFoundResponseBody) *goa.ServiceError

NewUpdateDataEventNotFound builds a data events service update data event endpoint not-found error.

func NewUpdateDataEventResultOK

func NewUpdateDataEventResultOK(body *UpdateDataEventResponseBody) *dataevents.UpdateDataEventResult

NewUpdateDataEventResultOK builds a "data events" service "update data event" endpoint result from a HTTP "OK" response.

func NewUpdateDataEventUnauthorized

func NewUpdateDataEventUnauthorized(body *UpdateDataEventUnauthorizedResponseBody) *goa.ServiceError

NewUpdateDataEventUnauthorized builds a data events service update data event endpoint unauthorized error.

func UpdateDataEventDataEventsPath

func UpdateDataEventDataEventsPath(eventID int64) string

UpdateDataEventDataEventsPath returns the URL path to the data events service update data event HTTP endpoint.

func ValidateAddDataEventBadRequestResponseBody

func ValidateAddDataEventBadRequestResponseBody(body *AddDataEventBadRequestResponseBody) (err error)

ValidateAddDataEventBadRequestResponseBody runs the validations defined on add data event_bad-request_response_body

func ValidateAddDataEventForbiddenResponseBody

func ValidateAddDataEventForbiddenResponseBody(body *AddDataEventForbiddenResponseBody) (err error)

ValidateAddDataEventForbiddenResponseBody runs the validations defined on add data event_forbidden_response_body

func ValidateAddDataEventNotFoundResponseBody

func ValidateAddDataEventNotFoundResponseBody(body *AddDataEventNotFoundResponseBody) (err error)

ValidateAddDataEventNotFoundResponseBody runs the validations defined on add data event_not-found_response_body

func ValidateAddDataEventResponseBody

func ValidateAddDataEventResponseBody(body *AddDataEventResponseBody) (err error)

ValidateAddDataEventResponseBody runs the validations defined on Add Data EventResponseBody

func ValidateAddDataEventUnauthorizedResponseBody

func ValidateAddDataEventUnauthorizedResponseBody(body *AddDataEventUnauthorizedResponseBody) (err error)

ValidateAddDataEventUnauthorizedResponseBody runs the validations defined on add data event_unauthorized_response_body

func ValidateAuthorPhotoResponseBody

func ValidateAuthorPhotoResponseBody(body *AuthorPhotoResponseBody) (err error)

ValidateAuthorPhotoResponseBody runs the validations defined on AuthorPhotoResponseBody

func ValidateDataEventResponseBody

func ValidateDataEventResponseBody(body *DataEventResponseBody) (err error)

ValidateDataEventResponseBody runs the validations defined on DataEventResponseBody

func ValidateDataEventsBadRequestResponseBody

func ValidateDataEventsBadRequestResponseBody(body *DataEventsBadRequestResponseBody) (err error)

ValidateDataEventsBadRequestResponseBody runs the validations defined on data events_bad-request_response_body

func ValidateDataEventsForbiddenResponseBody

func ValidateDataEventsForbiddenResponseBody(body *DataEventsForbiddenResponseBody) (err error)

ValidateDataEventsForbiddenResponseBody runs the validations defined on data events_forbidden_response_body

func ValidateDataEventsNotFoundResponseBody

func ValidateDataEventsNotFoundResponseBody(body *DataEventsNotFoundResponseBody) (err error)

ValidateDataEventsNotFoundResponseBody runs the validations defined on data events_not-found_response_body

func ValidateDataEventsUnauthorizedResponseBody

func ValidateDataEventsUnauthorizedResponseBody(body *DataEventsUnauthorizedResponseBody) (err error)

ValidateDataEventsUnauthorizedResponseBody runs the validations defined on data events_unauthorized_response_body

func ValidateDeleteDataEventBadRequestResponseBody

func ValidateDeleteDataEventBadRequestResponseBody(body *DeleteDataEventBadRequestResponseBody) (err error)

ValidateDeleteDataEventBadRequestResponseBody runs the validations defined on delete data event_bad-request_response_body

func ValidateDeleteDataEventForbiddenResponseBody

func ValidateDeleteDataEventForbiddenResponseBody(body *DeleteDataEventForbiddenResponseBody) (err error)

ValidateDeleteDataEventForbiddenResponseBody runs the validations defined on delete data event_forbidden_response_body

func ValidateDeleteDataEventNotFoundResponseBody

func ValidateDeleteDataEventNotFoundResponseBody(body *DeleteDataEventNotFoundResponseBody) (err error)

ValidateDeleteDataEventNotFoundResponseBody runs the validations defined on delete data event_not-found_response_body

func ValidateDeleteDataEventUnauthorizedResponseBody

func ValidateDeleteDataEventUnauthorizedResponseBody(body *DeleteDataEventUnauthorizedResponseBody) (err error)

ValidateDeleteDataEventUnauthorizedResponseBody runs the validations defined on delete data event_unauthorized_response_body

func ValidatePostAuthorResponseBody

func ValidatePostAuthorResponseBody(body *PostAuthorResponseBody) (err error)

ValidatePostAuthorResponseBody runs the validations defined on PostAuthorResponseBody

func ValidateUpdateDataEventBadRequestResponseBody

func ValidateUpdateDataEventBadRequestResponseBody(body *UpdateDataEventBadRequestResponseBody) (err error)

ValidateUpdateDataEventBadRequestResponseBody runs the validations defined on update data event_bad-request_response_body

func ValidateUpdateDataEventForbiddenResponseBody

func ValidateUpdateDataEventForbiddenResponseBody(body *UpdateDataEventForbiddenResponseBody) (err error)

ValidateUpdateDataEventForbiddenResponseBody runs the validations defined on update data event_forbidden_response_body

func ValidateUpdateDataEventNotFoundResponseBody

func ValidateUpdateDataEventNotFoundResponseBody(body *UpdateDataEventNotFoundResponseBody) (err error)

ValidateUpdateDataEventNotFoundResponseBody runs the validations defined on update data event_not-found_response_body

func ValidateUpdateDataEventResponseBody

func ValidateUpdateDataEventResponseBody(body *UpdateDataEventResponseBody) (err error)

ValidateUpdateDataEventResponseBody runs the validations defined on Update Data EventResponseBody

func ValidateUpdateDataEventUnauthorizedResponseBody

func ValidateUpdateDataEventUnauthorizedResponseBody(body *UpdateDataEventUnauthorizedResponseBody) (err error)

ValidateUpdateDataEventUnauthorizedResponseBody runs the validations defined on update data event_unauthorized_response_body

Types

type AddDataEventBadRequestResponseBody

type AddDataEventBadRequestResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

AddDataEventBadRequestResponseBody is the type of the "data events" service "add data event" endpoint HTTP response body for the "bad-request" error.

type AddDataEventForbiddenResponseBody

type AddDataEventForbiddenResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

AddDataEventForbiddenResponseBody is the type of the "data events" service "add data event" endpoint HTTP response body for the "forbidden" error.

type AddDataEventNotFoundResponseBody

type AddDataEventNotFoundResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

AddDataEventNotFoundResponseBody is the type of the "data events" service "add data event" endpoint HTTP response body for the "not-found" error.

type AddDataEventRequestBody

type AddDataEventRequestBody struct {
	Event *NewDataEventRequestBody `form:"event" json:"event" xml:"event"`
}

AddDataEventRequestBody is the type of the "data events" service "add data event" endpoint HTTP request body.

func NewAddDataEventRequestBody

func NewAddDataEventRequestBody(p *dataevents.AddDataEventPayload) *AddDataEventRequestBody

NewAddDataEventRequestBody builds the HTTP request body from the payload of the "add data event" endpoint of the "data events" service.

type AddDataEventResponseBody

type AddDataEventResponseBody struct {
	Event *DataEventResponseBody `form:"event,omitempty" json:"event,omitempty" xml:"event,omitempty"`
}

AddDataEventResponseBody is the type of the "data events" service "add data event" endpoint HTTP response body.

type AddDataEventUnauthorizedResponseBody

type AddDataEventUnauthorizedResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

AddDataEventUnauthorizedResponseBody is the type of the "data events" service "add data event" endpoint HTTP response body for the "unauthorized" error.

type AuthorPhotoResponseBody

type AuthorPhotoResponseBody struct {
	URL *string `form:"url,omitempty" json:"url,omitempty" xml:"url,omitempty"`
}

AuthorPhotoResponseBody is used to define fields on response body types.

type Client

type Client struct {
	// DataEventsEndpoint Doer is the HTTP client used to make requests to the data
	// events endpoint.
	DataEventsEndpointDoer goahttp.Doer

	// AddDataEvent Doer is the HTTP client used to make requests to the add data
	// event endpoint.
	AddDataEventDoer goahttp.Doer

	// UpdateDataEvent Doer is the HTTP client used to make requests to the update
	// data event endpoint.
	UpdateDataEventDoer goahttp.Doer

	// DeleteDataEvent Doer is the HTTP client used to make requests to the delete
	// data event endpoint.
	DeleteDataEventDoer goahttp.Doer

	// CORS Doer is the HTTP client used to make requests to the  endpoint.
	CORSDoer goahttp.Doer

	// RestoreResponseBody controls whether the response bodies are reset after
	// decoding so they can be read again.
	RestoreResponseBody bool
	// contains filtered or unexported fields
}

Client lists the data events service endpoint HTTP clients.

func NewClient

func NewClient(
	scheme string,
	host string,
	doer goahttp.Doer,
	enc func(*http.Request) goahttp.Encoder,
	dec func(*http.Response) goahttp.Decoder,
	restoreBody bool,
) *Client

NewClient instantiates HTTP clients for all the data events service servers.

func (*Client) AddDataEvent

func (c *Client) AddDataEvent() goa.Endpoint

AddDataEvent returns an endpoint that makes HTTP requests to the data events service add data event server.

func (*Client) BuildAddDataEventRequest

func (c *Client) BuildAddDataEventRequest(ctx context.Context, v interface{}) (*http.Request, error)

BuildAddDataEventRequest instantiates a HTTP request object with method and path set to call the "data events" service "add data event" endpoint

func (*Client) BuildDataEventsEndpointRequest

func (c *Client) BuildDataEventsEndpointRequest(ctx context.Context, v interface{}) (*http.Request, error)

BuildDataEventsEndpointRequest instantiates a HTTP request object with method and path set to call the "data events" service "data events" endpoint

func (*Client) BuildDeleteDataEventRequest

func (c *Client) BuildDeleteDataEventRequest(ctx context.Context, v interface{}) (*http.Request, error)

BuildDeleteDataEventRequest instantiates a HTTP request object with method and path set to call the "data events" service "delete data event" endpoint

func (*Client) BuildUpdateDataEventRequest

func (c *Client) BuildUpdateDataEventRequest(ctx context.Context, v interface{}) (*http.Request, error)

BuildUpdateDataEventRequest instantiates a HTTP request object with method and path set to call the "data events" service "update data event" endpoint

func (*Client) DataEventsEndpoint

func (c *Client) DataEventsEndpoint() goa.Endpoint

DataEventsEndpoint returns an endpoint that makes HTTP requests to the data events service data events server.

func (*Client) DeleteDataEvent

func (c *Client) DeleteDataEvent() goa.Endpoint

DeleteDataEvent returns an endpoint that makes HTTP requests to the data events service delete data event server.

func (*Client) UpdateDataEvent

func (c *Client) UpdateDataEvent() goa.Endpoint

UpdateDataEvent returns an endpoint that makes HTTP requests to the data events service update data event server.

type DataEventResponseBody

type DataEventResponseBody struct {
	ID          *int64                  `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	CreatedAt   *int64                  `form:"createdAt,omitempty" json:"createdAt,omitempty" xml:"createdAt,omitempty"`
	UpdatedAt   *int64                  `form:"updatedAt,omitempty" json:"updatedAt,omitempty" xml:"updatedAt,omitempty"`
	Author      *PostAuthorResponseBody `form:"author,omitempty" json:"author,omitempty" xml:"author,omitempty"`
	Title       *string                 `form:"title,omitempty" json:"title,omitempty" xml:"title,omitempty"`
	Description *string                 `form:"description,omitempty" json:"description,omitempty" xml:"description,omitempty"`
	Bookmark    *string                 `form:"bookmark,omitempty" json:"bookmark,omitempty" xml:"bookmark,omitempty"`
	Start       *int64                  `form:"start,omitempty" json:"start,omitempty" xml:"start,omitempty"`
	End         *int64                  `form:"end,omitempty" json:"end,omitempty" xml:"end,omitempty"`
}

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,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

DataEventsBadRequestResponseBody is the type of the "data events" service "data events" endpoint HTTP response body for the "bad-request" error.

type DataEventsForbiddenResponseBody

type DataEventsForbiddenResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

DataEventsForbiddenResponseBody is the type of the "data events" service "data events" endpoint HTTP response body for the "forbidden" error.

type DataEventsNotFoundResponseBody

type DataEventsNotFoundResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

DataEventsNotFoundResponseBody is the type of the "data events" service "data events" endpoint HTTP response body for the "not-found" error.

type DataEventsResponseBody

type DataEventsResponseBody struct {
	Events []*DataEventResponseBody `form:"events,omitempty" json:"events,omitempty" xml:"events,omitempty"`
}

DataEventsResponseBody is the type of the "data events" service "data events" endpoint HTTP response body.

type DataEventsUnauthorizedResponseBody

type DataEventsUnauthorizedResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

DataEventsUnauthorizedResponseBody is the type of the "data events" service "data events" endpoint HTTP response body for the "unauthorized" error.

type DeleteDataEventBadRequestResponseBody

type DeleteDataEventBadRequestResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

DeleteDataEventBadRequestResponseBody is the type of the "data events" service "delete data event" endpoint HTTP response body for the "bad-request" error.

type DeleteDataEventForbiddenResponseBody

type DeleteDataEventForbiddenResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

DeleteDataEventForbiddenResponseBody is the type of the "data events" service "delete data event" endpoint HTTP response body for the "forbidden" error.

type DeleteDataEventNotFoundResponseBody

type DeleteDataEventNotFoundResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

DeleteDataEventNotFoundResponseBody is the type of the "data events" service "delete data event" endpoint HTTP response body for the "not-found" error.

type DeleteDataEventUnauthorizedResponseBody

type DeleteDataEventUnauthorizedResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

DeleteDataEventUnauthorizedResponseBody is the type of the "data events" service "delete data event" endpoint HTTP response body for the "unauthorized" error.

type NewDataEventRequestBody

type NewDataEventRequestBody struct {
	AllProjectSensors bool    `form:"allProjectSensors" json:"allProjectSensors" xml:"allProjectSensors"`
	Bookmark          *string `form:"bookmark,omitempty" json:"bookmark,omitempty" xml:"bookmark,omitempty"`
	Title             string  `form:"title" json:"title" xml:"title"`
	Description       string  `form:"description" json:"description" xml:"description"`
	Start             int64   `form:"start" json:"start" xml:"start"`
	End               int64   `form:"end" json:"end" xml:"end"`
}

NewDataEventRequestBody is used to define fields on request body types.

type PostAuthorResponseBody

type PostAuthorResponseBody struct {
	ID    *int32                   `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	Name  *string                  `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	Photo *AuthorPhotoResponseBody `form:"photo,omitempty" json:"photo,omitempty" xml:"photo,omitempty"`
}

PostAuthorResponseBody is used to define fields on response body types.

type UpdateDataEventBadRequestResponseBody

type UpdateDataEventBadRequestResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

UpdateDataEventBadRequestResponseBody is the type of the "data events" service "update data event" endpoint HTTP response body for the "bad-request" error.

type UpdateDataEventForbiddenResponseBody

type UpdateDataEventForbiddenResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

UpdateDataEventForbiddenResponseBody is the type of the "data events" service "update data event" endpoint HTTP response body for the "forbidden" error.

type UpdateDataEventNotFoundResponseBody

type UpdateDataEventNotFoundResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

UpdateDataEventNotFoundResponseBody is the type of the "data events" service "update data event" endpoint HTTP response body for the "not-found" error.

type UpdateDataEventRequestBody

type UpdateDataEventRequestBody struct {
	Title       string `form:"title" json:"title" xml:"title"`
	Description string `form:"description" json:"description" xml:"description"`
	Start       int64  `form:"start" json:"start" xml:"start"`
	End         int64  `form:"end" json:"end" xml:"end"`
}

UpdateDataEventRequestBody is the type of the "data events" service "update data event" endpoint HTTP request body.

func NewUpdateDataEventRequestBody

func NewUpdateDataEventRequestBody(p *dataevents.UpdateDataEventPayload) *UpdateDataEventRequestBody

NewUpdateDataEventRequestBody builds the HTTP request body from the payload of the "update data event" endpoint of the "data events" service.

type UpdateDataEventResponseBody

type UpdateDataEventResponseBody struct {
	Event *DataEventResponseBody `form:"event,omitempty" json:"event,omitempty" xml:"event,omitempty"`
}

UpdateDataEventResponseBody is the type of the "data events" service "update data event" endpoint HTTP response body.

type UpdateDataEventUnauthorizedResponseBody

type UpdateDataEventUnauthorizedResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

UpdateDataEventUnauthorizedResponseBody is the type of the "data events" service "update data event" endpoint HTTP response body for the "unauthorized" error.

Jump to

Keyboard shortcuts

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