Documentation ¶
Index ¶
- func AddStationPath() string
- func AdminSearchStationPath() string
- func DecodeAddRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (interface{}, error)
- func DecodeAdminSearchRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (interface{}, error)
- func DecodeDefaultPhotoRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (interface{}, error)
- func DecodeDeleteRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (interface{}, error)
- func DecodeDownloadPhotoRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (interface{}, error)
- func DecodeGetRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (interface{}, error)
- func DecodeListAllRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (interface{}, error)
- func DecodeListAssociatedRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (interface{}, error)
- func DecodeListMineRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (interface{}, error)
- func DecodeListProjectAssociatedRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (interface{}, error)
- func DecodeListProjectRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (interface{}, error)
- func DecodeProgressRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (interface{}, error)
- func DecodeTransferRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (interface{}, error)
- func DecodeUpdateModuleRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (interface{}, error)
- func DecodeUpdateRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (interface{}, error)
- func DefaultPhotoStationPath(id int32, photoID int32) string
- func DeleteStationPath(stationID int32) string
- func DownloadPhotoStationPath(stationID int32) string
- func EncodeAddError(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, ...) func(context.Context, http.ResponseWriter, error) error
- func EncodeAddResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, interface{}) error
- func EncodeAdminSearchError(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, ...) func(context.Context, http.ResponseWriter, error) error
- func EncodeAdminSearchResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, interface{}) error
- func EncodeDefaultPhotoError(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, ...) func(context.Context, http.ResponseWriter, error) error
- func EncodeDefaultPhotoResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, interface{}) error
- func EncodeDeleteError(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, ...) func(context.Context, http.ResponseWriter, error) error
- func EncodeDeleteResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, interface{}) error
- func EncodeDownloadPhotoError(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, ...) func(context.Context, http.ResponseWriter, error) error
- func EncodeDownloadPhotoResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, interface{}) error
- func EncodeGetError(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, ...) func(context.Context, http.ResponseWriter, error) error
- func EncodeGetResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, interface{}) error
- func EncodeListAllError(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, ...) func(context.Context, http.ResponseWriter, error) error
- func EncodeListAllResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, interface{}) error
- func EncodeListAssociatedError(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, ...) func(context.Context, http.ResponseWriter, error) error
- func EncodeListAssociatedResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, interface{}) error
- func EncodeListMineError(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, ...) func(context.Context, http.ResponseWriter, error) error
- func EncodeListMineResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, interface{}) error
- func EncodeListProjectAssociatedError(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, ...) func(context.Context, http.ResponseWriter, error) error
- func EncodeListProjectAssociatedResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, interface{}) error
- func EncodeListProjectError(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, ...) func(context.Context, http.ResponseWriter, error) error
- func EncodeListProjectResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, interface{}) error
- func EncodeProgressError(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, ...) func(context.Context, http.ResponseWriter, error) error
- func EncodeProgressResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, interface{}) error
- func EncodeTransferError(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, ...) func(context.Context, http.ResponseWriter, error) error
- func EncodeTransferResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, interface{}) error
- func EncodeUpdateError(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, ...) func(context.Context, http.ResponseWriter, error) error
- func EncodeUpdateModuleError(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, ...) func(context.Context, http.ResponseWriter, error) error
- func EncodeUpdateModuleResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, interface{}) error
- func EncodeUpdateResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, interface{}) error
- func GetStationPath(id int32) string
- func ListAllStationPath() string
- func ListAssociatedStationPath(id int32) string
- func ListMineStationPath() string
- func ListProjectAssociatedStationPath(projectID int32) string
- func ListProjectStationPath(id int32) string
- func Mount(mux goahttp.Muxer, h *Server)
- func MountAddHandler(mux goahttp.Muxer, h http.Handler)
- func MountAdminSearchHandler(mux goahttp.Muxer, h http.Handler)
- func MountCORSHandler(mux goahttp.Muxer, h http.Handler)
- func MountDefaultPhotoHandler(mux goahttp.Muxer, h http.Handler)
- func MountDeleteHandler(mux goahttp.Muxer, h http.Handler)
- func MountDownloadPhotoHandler(mux goahttp.Muxer, h http.Handler)
- func MountGetHandler(mux goahttp.Muxer, h http.Handler)
- func MountListAllHandler(mux goahttp.Muxer, h http.Handler)
- func MountListAssociatedHandler(mux goahttp.Muxer, h http.Handler)
- func MountListMineHandler(mux goahttp.Muxer, h http.Handler)
- func MountListProjectAssociatedHandler(mux goahttp.Muxer, h http.Handler)
- func MountListProjectHandler(mux goahttp.Muxer, h http.Handler)
- func MountProgressHandler(mux goahttp.Muxer, h http.Handler)
- func MountTransferHandler(mux goahttp.Muxer, h http.Handler)
- func MountUpdateHandler(mux goahttp.Muxer, h http.Handler)
- func MountUpdateModuleHandler(mux goahttp.Muxer, h http.Handler)
- func NewAddHandler(endpoint goa.Endpoint, mux goahttp.Muxer, ...) http.Handler
- func NewAddPayload(body *AddRequestBody, auth string) *station.AddPayload
- func NewAdminSearchHandler(endpoint goa.Endpoint, mux goahttp.Muxer, ...) http.Handler
- func NewAdminSearchPayload(query string, auth string) *station.AdminSearchPayload
- func NewCORSHandler() http.Handler
- func NewDefaultPhotoHandler(endpoint goa.Endpoint, mux goahttp.Muxer, ...) http.Handler
- func NewDefaultPhotoPayload(id int32, photoID int32, auth *string) *station.DefaultPhotoPayload
- func NewDeleteHandler(endpoint goa.Endpoint, mux goahttp.Muxer, ...) http.Handler
- func NewDeletePayload(stationID int32, auth string) *station.DeletePayload
- func NewDownloadPhotoHandler(endpoint goa.Endpoint, mux goahttp.Muxer, ...) http.Handler
- func NewDownloadPhotoPayload(stationID int32, size *int32, ifNoneMatch *string, auth *string) *station.DownloadPhotoPayload
- func NewGetHandler(endpoint goa.Endpoint, mux goahttp.Muxer, ...) http.Handler
- func NewGetPayload(id int32, auth *string) *station.GetPayload
- func NewListAllHandler(endpoint goa.Endpoint, mux goahttp.Muxer, ...) http.Handler
- func NewListAllPayload(page *int32, pageSize *int32, ownerID *int32, query *string, sortBy *string, ...) *station.ListAllPayload
- func NewListAssociatedHandler(endpoint goa.Endpoint, mux goahttp.Muxer, ...) http.Handler
- func NewListAssociatedPayload(id int32, auth *string) *station.ListAssociatedPayload
- func NewListMineHandler(endpoint goa.Endpoint, mux goahttp.Muxer, ...) http.Handler
- func NewListMinePayload(auth string) *station.ListMinePayload
- func NewListProjectAssociatedHandler(endpoint goa.Endpoint, mux goahttp.Muxer, ...) http.Handler
- func NewListProjectAssociatedPayload(projectID int32, auth *string) *station.ListProjectAssociatedPayload
- func NewListProjectHandler(endpoint goa.Endpoint, mux goahttp.Muxer, ...) http.Handler
- func NewListProjectPayload(id int32, disableFiltering *bool, auth *string) *station.ListProjectPayload
- func NewProgressHandler(endpoint goa.Endpoint, mux goahttp.Muxer, ...) http.Handler
- func NewProgressPayload(stationID int32, auth string) *station.ProgressPayload
- func NewTransferHandler(endpoint goa.Endpoint, mux goahttp.Muxer, ...) http.Handler
- func NewTransferPayload(id int32, ownerID int32, auth string) *station.TransferPayload
- func NewUpdateHandler(endpoint goa.Endpoint, mux goahttp.Muxer, ...) http.Handler
- func NewUpdateModuleHandler(endpoint goa.Endpoint, mux goahttp.Muxer, ...) http.Handler
- func NewUpdateModulePayload(body *UpdateModuleRequestBody, id int32, moduleID int32, auth string) *station.UpdateModulePayload
- func NewUpdatePayload(body *UpdateRequestBody, id int32, auth string) *station.UpdatePayload
- func ProgressStationPath(stationID int32) string
- func TransferStationPath(id int32, ownerID int32) string
- func UpdateModuleStationPath(id int32, moduleID int32) string
- func UpdateStationPath(id int32) string
- func ValidateAddRequestBody(body *AddRequestBody) (err error)
- func ValidateUpdateModuleRequestBody(body *UpdateModuleRequestBody) (err error)
- func ValidateUpdateRequestBody(body *UpdateRequestBody) (err error)
- type AddBadRequestResponseBody
- type AddForbiddenResponseBody
- type AddNotFoundResponseBody
- type AddRequestBody
- type AddResponseBody
- type AddStationOwnerConflictResponseBody
- type AddUnauthorizedResponseBody
- type AdminSearchBadRequestResponseBody
- type AdminSearchForbiddenResponseBody
- type AdminSearchNotFoundResponseBody
- type AdminSearchResponseBody
- type AdminSearchUnauthorizedResponseBody
- type AssociatedStationResponseBody
- type AssociatedStationResponseBodyCollection
- type AssociatedViaLocationResponseBody
- type AssociatedViaManualResponseBody
- type AssociatedViaProjectResponseBody
- type DefaultPhotoBadRequestResponseBody
- type DefaultPhotoForbiddenResponseBody
- type DefaultPhotoNotFoundResponseBody
- type DefaultPhotoUnauthorizedResponseBody
- type DeleteBadRequestResponseBody
- type DeleteForbiddenResponseBody
- type DeleteNotFoundResponseBody
- type DeleteUnauthorizedResponseBody
- type DownloadPhotoBadRequestResponseBody
- type DownloadPhotoForbiddenResponseBody
- type DownloadPhotoNotFoundResponseBody
- type DownloadPhotoResponseBody
- type DownloadPhotoUnauthorizedResponseBody
- type ErrorNamer
- type EssentialStationResponseBody
- type GetBadRequestResponseBody
- type GetForbiddenResponseBody
- type GetNotFoundResponseBody
- type GetResponseBody
- type GetUnauthorizedResponseBody
- type ListAllBadRequestResponseBody
- type ListAllForbiddenResponseBody
- type ListAllNotFoundResponseBody
- type ListAllResponseBody
- type ListAllUnauthorizedResponseBody
- type ListAssociatedBadRequestResponseBody
- type ListAssociatedForbiddenResponseBody
- type ListAssociatedNotFoundResponseBody
- type ListAssociatedResponseBody
- type ListAssociatedUnauthorizedResponseBody
- type ListMineBadRequestResponseBody
- type ListMineForbiddenResponseBody
- type ListMineNotFoundResponseBody
- type ListMineResponseBody
- type ListMineUnauthorizedResponseBody
- type ListProjectAssociatedBadRequestResponseBody
- type ListProjectAssociatedForbiddenResponseBody
- type ListProjectAssociatedNotFoundResponseBody
- type ListProjectAssociatedResponseBody
- type ListProjectAssociatedUnauthorizedResponseBody
- type ListProjectBadRequestResponseBody
- type ListProjectForbiddenResponseBody
- type ListProjectNotFoundResponseBody
- type ListProjectResponseBody
- type ListProjectUnauthorizedResponseBody
- type MountPoint
- type ProgressBadRequestResponseBody
- type ProgressForbiddenResponseBody
- type ProgressNotFoundResponseBody
- type ProgressResponseBody
- type ProgressUnauthorizedResponseBody
- type SensorRangeResponseBody
- type SensorReadingResponseBody
- type Server
- type StationConfigurationResponseBody
- type StationConfigurationsResponseBody
- type StationDataSummaryResponseBody
- type StationFullModelResponseBody
- type StationFullResponseBody
- type StationFullResponseBodyCollection
- type StationInterestingnessResponseBody
- type StationInterestingnessWindowResponseBody
- type StationJobResponseBody
- type StationLocationResponseBody
- type StationModuleResponseBody
- type StationOwnerResponseBody
- type StationPhotosResponseBody
- type StationProjectAttributeResponseBody
- type StationProjectAttributesResponseBody
- type StationRegionResponseBody
- type StationSensorResponseBody
- type StationUploadResponseBody
- type TransferBadRequestResponseBody
- type TransferForbiddenResponseBody
- type TransferNotFoundResponseBody
- type TransferUnauthorizedResponseBody
- type UpdateBadRequestResponseBody
- type UpdateForbiddenResponseBody
- type UpdateModuleBadRequestResponseBody
- type UpdateModuleForbiddenResponseBody
- type UpdateModuleNotFoundResponseBody
- type UpdateModuleRequestBody
- type UpdateModuleResponseBody
- type UpdateModuleUnauthorizedResponseBody
- type UpdateNotFoundResponseBody
- type UpdateRequestBody
- type UpdateResponseBody
- type UpdateUnauthorizedResponseBody
- type UserPhotoResponseBody
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddStationPath ¶
func AddStationPath() string
AddStationPath returns the URL path to the station service add HTTP endpoint.
func AdminSearchStationPath ¶
func AdminSearchStationPath() string
AdminSearchStationPath returns the URL path to the station service admin search HTTP endpoint.
func DecodeAddRequest ¶
func DecodeAddRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (interface{}, error)
DecodeAddRequest returns a decoder for requests sent to the station add endpoint.
func DecodeAdminSearchRequest ¶
func DecodeAdminSearchRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (interface{}, error)
DecodeAdminSearchRequest returns a decoder for requests sent to the station admin search endpoint.
func DecodeDefaultPhotoRequest ¶
func DecodeDefaultPhotoRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (interface{}, error)
DecodeDefaultPhotoRequest returns a decoder for requests sent to the station default photo endpoint.
func DecodeDeleteRequest ¶
func DecodeDeleteRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (interface{}, error)
DecodeDeleteRequest returns a decoder for requests sent to the station delete endpoint.
func DecodeDownloadPhotoRequest ¶
func DecodeDownloadPhotoRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (interface{}, error)
DecodeDownloadPhotoRequest returns a decoder for requests sent to the station download photo endpoint.
func DecodeGetRequest ¶
func DecodeGetRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (interface{}, error)
DecodeGetRequest returns a decoder for requests sent to the station get endpoint.
func DecodeListAllRequest ¶
func DecodeListAllRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (interface{}, error)
DecodeListAllRequest returns a decoder for requests sent to the station list all endpoint.
func DecodeListAssociatedRequest ¶
func DecodeListAssociatedRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (interface{}, error)
DecodeListAssociatedRequest returns a decoder for requests sent to the station list associated endpoint.
func DecodeListMineRequest ¶
func DecodeListMineRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (interface{}, error)
DecodeListMineRequest returns a decoder for requests sent to the station list mine endpoint.
func DecodeListProjectAssociatedRequest ¶
func DecodeListProjectAssociatedRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (interface{}, error)
DecodeListProjectAssociatedRequest returns a decoder for requests sent to the station list project associated endpoint.
func DecodeListProjectRequest ¶
func DecodeListProjectRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (interface{}, error)
DecodeListProjectRequest returns a decoder for requests sent to the station list project endpoint.
func DecodeProgressRequest ¶
func DecodeProgressRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (interface{}, error)
DecodeProgressRequest returns a decoder for requests sent to the station progress endpoint.
func DecodeTransferRequest ¶
func DecodeTransferRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (interface{}, error)
DecodeTransferRequest returns a decoder for requests sent to the station transfer endpoint.
func DecodeUpdateModuleRequest ¶
func DecodeUpdateModuleRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (interface{}, error)
DecodeUpdateModuleRequest returns a decoder for requests sent to the station update module endpoint.
func DecodeUpdateRequest ¶
func DecodeUpdateRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (interface{}, error)
DecodeUpdateRequest returns a decoder for requests sent to the station update endpoint.
func DefaultPhotoStationPath ¶
DefaultPhotoStationPath returns the URL path to the station service default photo HTTP endpoint.
func DeleteStationPath ¶
DeleteStationPath returns the URL path to the station service delete HTTP endpoint.
func DownloadPhotoStationPath ¶
DownloadPhotoStationPath returns the URL path to the station service download photo HTTP endpoint.
func EncodeAddError ¶
func EncodeAddError(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, formatter func(err error) goahttp.Statuser) func(context.Context, http.ResponseWriter, error) error
EncodeAddError returns an encoder for errors returned by the add station endpoint.
func EncodeAddResponse ¶
func EncodeAddResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, interface{}) error
EncodeAddResponse returns an encoder for responses returned by the station add endpoint.
func EncodeAdminSearchError ¶
func EncodeAdminSearchError(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, formatter func(err error) goahttp.Statuser) func(context.Context, http.ResponseWriter, error) error
EncodeAdminSearchError returns an encoder for errors returned by the admin search station endpoint.
func EncodeAdminSearchResponse ¶
func EncodeAdminSearchResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, interface{}) error
EncodeAdminSearchResponse returns an encoder for responses returned by the station admin search endpoint.
func EncodeDefaultPhotoError ¶
func EncodeDefaultPhotoError(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, formatter func(err error) goahttp.Statuser) func(context.Context, http.ResponseWriter, error) error
EncodeDefaultPhotoError returns an encoder for errors returned by the default photo station endpoint.
func EncodeDefaultPhotoResponse ¶
func EncodeDefaultPhotoResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, interface{}) error
EncodeDefaultPhotoResponse returns an encoder for responses returned by the station default photo endpoint.
func EncodeDeleteError ¶
func EncodeDeleteError(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, formatter func(err error) goahttp.Statuser) func(context.Context, http.ResponseWriter, error) error
EncodeDeleteError returns an encoder for errors returned by the delete station endpoint.
func EncodeDeleteResponse ¶
func EncodeDeleteResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, interface{}) error
EncodeDeleteResponse returns an encoder for responses returned by the station delete endpoint.
func EncodeDownloadPhotoError ¶
func EncodeDownloadPhotoError(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, formatter func(err error) goahttp.Statuser) func(context.Context, http.ResponseWriter, error) error
EncodeDownloadPhotoError returns an encoder for errors returned by the download photo station endpoint.
func EncodeDownloadPhotoResponse ¶
func EncodeDownloadPhotoResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, interface{}) error
EncodeDownloadPhotoResponse returns an encoder for responses returned by the station download photo endpoint.
func EncodeGetError ¶
func EncodeGetError(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, formatter func(err error) goahttp.Statuser) func(context.Context, http.ResponseWriter, error) error
EncodeGetError returns an encoder for errors returned by the get station endpoint.
func EncodeGetResponse ¶
func EncodeGetResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, interface{}) error
EncodeGetResponse returns an encoder for responses returned by the station get endpoint.
func EncodeListAllError ¶
func EncodeListAllError(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, formatter func(err error) goahttp.Statuser) func(context.Context, http.ResponseWriter, error) error
EncodeListAllError returns an encoder for errors returned by the list all station endpoint.
func EncodeListAllResponse ¶
func EncodeListAllResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, interface{}) error
EncodeListAllResponse returns an encoder for responses returned by the station list all endpoint.
func EncodeListAssociatedError ¶
func EncodeListAssociatedError(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, formatter func(err error) goahttp.Statuser) func(context.Context, http.ResponseWriter, error) error
EncodeListAssociatedError returns an encoder for errors returned by the list associated station endpoint.
func EncodeListAssociatedResponse ¶
func EncodeListAssociatedResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, interface{}) error
EncodeListAssociatedResponse returns an encoder for responses returned by the station list associated endpoint.
func EncodeListMineError ¶
func EncodeListMineError(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, formatter func(err error) goahttp.Statuser) func(context.Context, http.ResponseWriter, error) error
EncodeListMineError returns an encoder for errors returned by the list mine station endpoint.
func EncodeListMineResponse ¶
func EncodeListMineResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, interface{}) error
EncodeListMineResponse returns an encoder for responses returned by the station list mine endpoint.
func EncodeListProjectAssociatedError ¶
func EncodeListProjectAssociatedError(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, formatter func(err error) goahttp.Statuser) func(context.Context, http.ResponseWriter, error) error
EncodeListProjectAssociatedError returns an encoder for errors returned by the list project associated station endpoint.
func EncodeListProjectAssociatedResponse ¶
func EncodeListProjectAssociatedResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, interface{}) error
EncodeListProjectAssociatedResponse returns an encoder for responses returned by the station list project associated endpoint.
func EncodeListProjectError ¶
func EncodeListProjectError(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, formatter func(err error) goahttp.Statuser) func(context.Context, http.ResponseWriter, error) error
EncodeListProjectError returns an encoder for errors returned by the list project station endpoint.
func EncodeListProjectResponse ¶
func EncodeListProjectResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, interface{}) error
EncodeListProjectResponse returns an encoder for responses returned by the station list project endpoint.
func EncodeProgressError ¶
func EncodeProgressError(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, formatter func(err error) goahttp.Statuser) func(context.Context, http.ResponseWriter, error) error
EncodeProgressError returns an encoder for errors returned by the progress station endpoint.
func EncodeProgressResponse ¶
func EncodeProgressResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, interface{}) error
EncodeProgressResponse returns an encoder for responses returned by the station progress endpoint.
func EncodeTransferError ¶
func EncodeTransferError(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, formatter func(err error) goahttp.Statuser) func(context.Context, http.ResponseWriter, error) error
EncodeTransferError returns an encoder for errors returned by the transfer station endpoint.
func EncodeTransferResponse ¶
func EncodeTransferResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, interface{}) error
EncodeTransferResponse returns an encoder for responses returned by the station transfer endpoint.
func EncodeUpdateError ¶
func EncodeUpdateError(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, formatter func(err error) goahttp.Statuser) func(context.Context, http.ResponseWriter, error) error
EncodeUpdateError returns an encoder for errors returned by the update station endpoint.
func EncodeUpdateModuleError ¶
func EncodeUpdateModuleError(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, formatter func(err error) goahttp.Statuser) func(context.Context, http.ResponseWriter, error) error
EncodeUpdateModuleError returns an encoder for errors returned by the update module station endpoint.
func EncodeUpdateModuleResponse ¶
func EncodeUpdateModuleResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, interface{}) error
EncodeUpdateModuleResponse returns an encoder for responses returned by the station update module endpoint.
func EncodeUpdateResponse ¶
func EncodeUpdateResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, interface{}) error
EncodeUpdateResponse returns an encoder for responses returned by the station update endpoint.
func GetStationPath ¶
GetStationPath returns the URL path to the station service get HTTP endpoint.
func ListAllStationPath ¶
func ListAllStationPath() string
ListAllStationPath returns the URL path to the station service list all HTTP endpoint.
func ListAssociatedStationPath ¶
ListAssociatedStationPath returns the URL path to the station service list associated HTTP endpoint.
func ListMineStationPath ¶
func ListMineStationPath() string
ListMineStationPath returns the URL path to the station service list mine HTTP endpoint.
func ListProjectAssociatedStationPath ¶
ListProjectAssociatedStationPath returns the URL path to the station service list project associated HTTP endpoint.
func ListProjectStationPath ¶
ListProjectStationPath returns the URL path to the station service list project HTTP endpoint.
func MountAddHandler ¶
MountAddHandler configures the mux to serve the "station" service "add" endpoint.
func MountAdminSearchHandler ¶
MountAdminSearchHandler configures the mux to serve the "station" service "admin search" endpoint.
func MountCORSHandler ¶
MountCORSHandler configures the mux to serve the CORS endpoints for the service station.
func MountDefaultPhotoHandler ¶
MountDefaultPhotoHandler configures the mux to serve the "station" service "default photo" endpoint.
func MountDeleteHandler ¶
MountDeleteHandler configures the mux to serve the "station" service "delete" endpoint.
func MountDownloadPhotoHandler ¶
MountDownloadPhotoHandler configures the mux to serve the "station" service "download photo" endpoint.
func MountGetHandler ¶
MountGetHandler configures the mux to serve the "station" service "get" endpoint.
func MountListAllHandler ¶
MountListAllHandler configures the mux to serve the "station" service "list all" endpoint.
func MountListAssociatedHandler ¶
MountListAssociatedHandler configures the mux to serve the "station" service "list associated" endpoint.
func MountListMineHandler ¶
MountListMineHandler configures the mux to serve the "station" service "list mine" endpoint.
func MountListProjectAssociatedHandler ¶
MountListProjectAssociatedHandler configures the mux to serve the "station" service "list project associated" endpoint.
func MountListProjectHandler ¶
MountListProjectHandler configures the mux to serve the "station" service "list project" endpoint.
func MountProgressHandler ¶
MountProgressHandler configures the mux to serve the "station" service "progress" endpoint.
func MountTransferHandler ¶
MountTransferHandler configures the mux to serve the "station" service "transfer" endpoint.
func MountUpdateHandler ¶
MountUpdateHandler configures the mux to serve the "station" service "update" endpoint.
func MountUpdateModuleHandler ¶
MountUpdateModuleHandler configures the mux to serve the "station" service "update module" endpoint.
func NewAddHandler ¶
func NewAddHandler( 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
NewAddHandler creates a HTTP handler which loads the HTTP request and calls the "station" service "add" endpoint.
func NewAddPayload ¶
func NewAddPayload(body *AddRequestBody, auth string) *station.AddPayload
NewAddPayload builds a station service add endpoint payload.
func NewAdminSearchHandler ¶
func NewAdminSearchHandler( 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
NewAdminSearchHandler creates a HTTP handler which loads the HTTP request and calls the "station" service "admin search" endpoint.
func NewAdminSearchPayload ¶
func NewAdminSearchPayload(query string, auth string) *station.AdminSearchPayload
NewAdminSearchPayload builds a station service admin search endpoint payload.
func NewCORSHandler ¶
NewCORSHandler creates a HTTP handler which returns a simple 200 response.
func NewDefaultPhotoHandler ¶
func NewDefaultPhotoHandler( 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
NewDefaultPhotoHandler creates a HTTP handler which loads the HTTP request and calls the "station" service "default photo" endpoint.
func NewDefaultPhotoPayload ¶
func NewDefaultPhotoPayload(id int32, photoID int32, auth *string) *station.DefaultPhotoPayload
NewDefaultPhotoPayload builds a station service default photo endpoint payload.
func NewDeleteHandler ¶
func NewDeleteHandler( 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
NewDeleteHandler creates a HTTP handler which loads the HTTP request and calls the "station" service "delete" endpoint.
func NewDeletePayload ¶
func NewDeletePayload(stationID int32, auth string) *station.DeletePayload
NewDeletePayload builds a station service delete endpoint payload.
func NewDownloadPhotoHandler ¶
func NewDownloadPhotoHandler( 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
NewDownloadPhotoHandler creates a HTTP handler which loads the HTTP request and calls the "station" service "download photo" endpoint.
func NewDownloadPhotoPayload ¶
func NewDownloadPhotoPayload(stationID int32, size *int32, ifNoneMatch *string, auth *string) *station.DownloadPhotoPayload
NewDownloadPhotoPayload builds a station service download photo endpoint payload.
func NewGetHandler ¶
func NewGetHandler( 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
NewGetHandler creates a HTTP handler which loads the HTTP request and calls the "station" service "get" endpoint.
func NewGetPayload ¶
func NewGetPayload(id int32, auth *string) *station.GetPayload
NewGetPayload builds a station service get endpoint payload.
func NewListAllHandler ¶
func NewListAllHandler( 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
NewListAllHandler creates a HTTP handler which loads the HTTP request and calls the "station" service "list all" endpoint.
func NewListAllPayload ¶
func NewListAllPayload(page *int32, pageSize *int32, ownerID *int32, query *string, sortBy *string, auth string) *station.ListAllPayload
NewListAllPayload builds a station service list all endpoint payload.
func NewListAssociatedHandler ¶
func NewListAssociatedHandler( 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
NewListAssociatedHandler creates a HTTP handler which loads the HTTP request and calls the "station" service "list associated" endpoint.
func NewListAssociatedPayload ¶
func NewListAssociatedPayload(id int32, auth *string) *station.ListAssociatedPayload
NewListAssociatedPayload builds a station service list associated endpoint payload.
func NewListMineHandler ¶
func NewListMineHandler( 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
NewListMineHandler creates a HTTP handler which loads the HTTP request and calls the "station" service "list mine" endpoint.
func NewListMinePayload ¶
func NewListMinePayload(auth string) *station.ListMinePayload
NewListMinePayload builds a station service list mine endpoint payload.
func NewListProjectAssociatedHandler ¶
func NewListProjectAssociatedHandler( 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
NewListProjectAssociatedHandler creates a HTTP handler which loads the HTTP request and calls the "station" service "list project associated" endpoint.
func NewListProjectAssociatedPayload ¶
func NewListProjectAssociatedPayload(projectID int32, auth *string) *station.ListProjectAssociatedPayload
NewListProjectAssociatedPayload builds a station service list project associated endpoint payload.
func NewListProjectHandler ¶
func NewListProjectHandler( 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
NewListProjectHandler creates a HTTP handler which loads the HTTP request and calls the "station" service "list project" endpoint.
func NewListProjectPayload ¶
func NewListProjectPayload(id int32, disableFiltering *bool, auth *string) *station.ListProjectPayload
NewListProjectPayload builds a station service list project endpoint payload.
func NewProgressHandler ¶
func NewProgressHandler( 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
NewProgressHandler creates a HTTP handler which loads the HTTP request and calls the "station" service "progress" endpoint.
func NewProgressPayload ¶
func NewProgressPayload(stationID int32, auth string) *station.ProgressPayload
NewProgressPayload builds a station service progress endpoint payload.
func NewTransferHandler ¶
func NewTransferHandler( 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
NewTransferHandler creates a HTTP handler which loads the HTTP request and calls the "station" service "transfer" endpoint.
func NewTransferPayload ¶
func NewTransferPayload(id int32, ownerID int32, auth string) *station.TransferPayload
NewTransferPayload builds a station service transfer endpoint payload.
func NewUpdateHandler ¶
func NewUpdateHandler( 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
NewUpdateHandler creates a HTTP handler which loads the HTTP request and calls the "station" service "update" endpoint.
func NewUpdateModuleHandler ¶
func NewUpdateModuleHandler( 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
NewUpdateModuleHandler creates a HTTP handler which loads the HTTP request and calls the "station" service "update module" endpoint.
func NewUpdateModulePayload ¶
func NewUpdateModulePayload(body *UpdateModuleRequestBody, id int32, moduleID int32, auth string) *station.UpdateModulePayload
NewUpdateModulePayload builds a station service update module endpoint payload.
func NewUpdatePayload ¶
func NewUpdatePayload(body *UpdateRequestBody, id int32, auth string) *station.UpdatePayload
NewUpdatePayload builds a station service update endpoint payload.
func ProgressStationPath ¶
ProgressStationPath returns the URL path to the station service progress HTTP endpoint.
func TransferStationPath ¶
TransferStationPath returns the URL path to the station service transfer HTTP endpoint.
func UpdateModuleStationPath ¶
UpdateModuleStationPath returns the URL path to the station service update module HTTP endpoint.
func UpdateStationPath ¶
UpdateStationPath returns the URL path to the station service update HTTP endpoint.
func ValidateAddRequestBody ¶
func ValidateAddRequestBody(body *AddRequestBody) (err error)
ValidateAddRequestBody runs the validations defined on AddRequestBody
func ValidateUpdateModuleRequestBody ¶
func ValidateUpdateModuleRequestBody(body *UpdateModuleRequestBody) (err error)
ValidateUpdateModuleRequestBody runs the validations defined on Update ModuleRequestBody
func ValidateUpdateRequestBody ¶
func ValidateUpdateRequestBody(body *UpdateRequestBody) (err error)
ValidateUpdateRequestBody runs the validations defined on UpdateRequestBody
Types ¶
type AddBadRequestResponseBody ¶
type AddBadRequestResponseBody 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"` }
AddBadRequestResponseBody is the type of the "station" service "add" endpoint HTTP response body for the "bad-request" error.
func NewAddBadRequestResponseBody ¶
func NewAddBadRequestResponseBody(res *goa.ServiceError) *AddBadRequestResponseBody
NewAddBadRequestResponseBody builds the HTTP response body from the result of the "add" endpoint of the "station" service.
type AddForbiddenResponseBody ¶
type AddForbiddenResponseBody 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"` }
AddForbiddenResponseBody is the type of the "station" service "add" endpoint HTTP response body for the "forbidden" error.
func NewAddForbiddenResponseBody ¶
func NewAddForbiddenResponseBody(res *goa.ServiceError) *AddForbiddenResponseBody
NewAddForbiddenResponseBody builds the HTTP response body from the result of the "add" endpoint of the "station" service.
type AddNotFoundResponseBody ¶
type AddNotFoundResponseBody 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"` }
AddNotFoundResponseBody is the type of the "station" service "add" endpoint HTTP response body for the "not-found" error.
func NewAddNotFoundResponseBody ¶
func NewAddNotFoundResponseBody(res *goa.ServiceError) *AddNotFoundResponseBody
NewAddNotFoundResponseBody builds the HTTP response body from the result of the "add" endpoint of the "station" service.
type AddRequestBody ¶
type AddRequestBody struct { Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` DeviceID *string `form:"deviceId,omitempty" json:"deviceId,omitempty" xml:"deviceId,omitempty"` LocationName *string `form:"locationName,omitempty" json:"locationName,omitempty" xml:"locationName,omitempty"` StatusPb *string `form:"statusPb,omitempty" json:"statusPb,omitempty" xml:"statusPb,omitempty"` Description *string `form:"description,omitempty" json:"description,omitempty" xml:"description,omitempty"` }
AddRequestBody is the type of the "station" service "add" endpoint HTTP request body.
type AddResponseBody ¶
type AddResponseBody struct { ID int32 `form:"id" json:"id" xml:"id"` Name string `form:"name" json:"name" xml:"name"` Model *StationFullModelResponseBody `form:"model" json:"model" xml:"model"` Owner *StationOwnerResponseBody `form:"owner" json:"owner" xml:"owner"` DeviceID string `form:"deviceId" json:"deviceId" xml:"deviceId"` Interestingness *StationInterestingnessResponseBody `form:"interestingness" json:"interestingness" xml:"interestingness"` Attributes *StationProjectAttributesResponseBody `form:"attributes" json:"attributes" xml:"attributes"` Uploads []*StationUploadResponseBody `form:"uploads" json:"uploads" xml:"uploads"` Photos *StationPhotosResponseBody `form:"photos" json:"photos" xml:"photos"` ReadOnly bool `form:"readOnly" json:"readOnly" xml:"readOnly"` Hidden *bool `form:"hidden,omitempty" json:"hidden,omitempty" xml:"hidden,omitempty"` Description *string `form:"description,omitempty" json:"description,omitempty" xml:"description,omitempty"` Status *string `form:"status,omitempty" json:"status,omitempty" xml:"status,omitempty"` Battery *float32 `form:"battery,omitempty" json:"battery,omitempty" xml:"battery,omitempty"` RecordingStartedAt *int64 `form:"recordingStartedAt,omitempty" json:"recordingStartedAt,omitempty" xml:"recordingStartedAt,omitempty"` MemoryUsed *int32 `form:"memoryUsed,omitempty" json:"memoryUsed,omitempty" xml:"memoryUsed,omitempty"` MemoryAvailable *int32 `form:"memoryAvailable,omitempty" json:"memoryAvailable,omitempty" xml:"memoryAvailable,omitempty"` FirmwareNumber *int32 `form:"firmwareNumber,omitempty" json:"firmwareNumber,omitempty" xml:"firmwareNumber,omitempty"` FirmwareTime *int64 `form:"firmwareTime,omitempty" json:"firmwareTime,omitempty" xml:"firmwareTime,omitempty"` Configurations *StationConfigurationsResponseBody `form:"configurations" json:"configurations" xml:"configurations"` UpdatedAt int64 `form:"updatedAt" json:"updatedAt" xml:"updatedAt"` LastReadingAt *int64 `form:"lastReadingAt,omitempty" json:"lastReadingAt,omitempty" xml:"lastReadingAt,omitempty"` Location *StationLocationResponseBody `form:"location,omitempty" json:"location,omitempty" xml:"location,omitempty"` LocationName *string `form:"locationName,omitempty" json:"locationName,omitempty" xml:"locationName,omitempty"` PlaceNameOther *string `form:"placeNameOther,omitempty" json:"placeNameOther,omitempty" xml:"placeNameOther,omitempty"` PlaceNameNative *string `form:"placeNameNative,omitempty" json:"placeNameNative,omitempty" xml:"placeNameNative,omitempty"` SyncedAt *int64 `form:"syncedAt,omitempty" json:"syncedAt,omitempty" xml:"syncedAt,omitempty"` IngestionAt *int64 `form:"ingestionAt,omitempty" json:"ingestionAt,omitempty" xml:"ingestionAt,omitempty"` Data *StationDataSummaryResponseBody `form:"data,omitempty" json:"data,omitempty" xml:"data,omitempty"` }
AddResponseBody is the type of the "station" service "add" endpoint HTTP response body.
func NewAddResponseBody ¶
func NewAddResponseBody(res *stationviews.StationFullView) *AddResponseBody
NewAddResponseBody builds the HTTP response body from the result of the "add" endpoint of the "station" service.
type AddStationOwnerConflictResponseBody ¶
type AddStationOwnerConflictResponseBody 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"` }
AddStationOwnerConflictResponseBody is the type of the "station" service "add" endpoint HTTP response body for the "station-owner-conflict" error.
func NewAddStationOwnerConflictResponseBody ¶
func NewAddStationOwnerConflictResponseBody(res *goa.ServiceError) *AddStationOwnerConflictResponseBody
NewAddStationOwnerConflictResponseBody builds the HTTP response body from the result of the "add" endpoint of the "station" service.
type AddUnauthorizedResponseBody ¶
type AddUnauthorizedResponseBody 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
AddUnauthorizedResponseBody is the type of the "station" service "add" endpoint HTTP response body for the "unauthorized" error.
func NewAddUnauthorizedResponseBody ¶
func NewAddUnauthorizedResponseBody(res *goa.ServiceError) *AddUnauthorizedResponseBody
NewAddUnauthorizedResponseBody builds the HTTP response body from the result of the "add" endpoint of the "station" service.
type AdminSearchBadRequestResponseBody ¶
type AdminSearchBadRequestResponseBody 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"` }
AdminSearchBadRequestResponseBody is the type of the "station" service "admin search" endpoint HTTP response body for the "bad-request" error.
func NewAdminSearchBadRequestResponseBody ¶
func NewAdminSearchBadRequestResponseBody(res *goa.ServiceError) *AdminSearchBadRequestResponseBody
NewAdminSearchBadRequestResponseBody builds the HTTP response body from the result of the "admin search" endpoint of the "station" service.
type AdminSearchForbiddenResponseBody ¶
type AdminSearchForbiddenResponseBody 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"` }
AdminSearchForbiddenResponseBody is the type of the "station" service "admin search" endpoint HTTP response body for the "forbidden" error.
func NewAdminSearchForbiddenResponseBody ¶
func NewAdminSearchForbiddenResponseBody(res *goa.ServiceError) *AdminSearchForbiddenResponseBody
NewAdminSearchForbiddenResponseBody builds the HTTP response body from the result of the "admin search" endpoint of the "station" service.
type AdminSearchNotFoundResponseBody ¶
type AdminSearchNotFoundResponseBody 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"` }
AdminSearchNotFoundResponseBody is the type of the "station" service "admin search" endpoint HTTP response body for the "not-found" error.
func NewAdminSearchNotFoundResponseBody ¶
func NewAdminSearchNotFoundResponseBody(res *goa.ServiceError) *AdminSearchNotFoundResponseBody
NewAdminSearchNotFoundResponseBody builds the HTTP response body from the result of the "admin search" endpoint of the "station" service.
type AdminSearchResponseBody ¶
type AdminSearchResponseBody struct { Stations []*EssentialStationResponseBody `form:"stations" json:"stations" xml:"stations"` Total int32 `form:"total" json:"total" xml:"total"` }
AdminSearchResponseBody is the type of the "station" service "admin search" endpoint HTTP response body.
func NewAdminSearchResponseBody ¶
func NewAdminSearchResponseBody(res *stationviews.PageOfStationsView) *AdminSearchResponseBody
NewAdminSearchResponseBody builds the HTTP response body from the result of the "admin search" endpoint of the "station" service.
type AdminSearchUnauthorizedResponseBody ¶
type AdminSearchUnauthorizedResponseBody 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
AdminSearchUnauthorizedResponseBody is the type of the "station" service "admin search" endpoint HTTP response body for the "unauthorized" error.
func NewAdminSearchUnauthorizedResponseBody ¶
func NewAdminSearchUnauthorizedResponseBody(res *goa.ServiceError) *AdminSearchUnauthorizedResponseBody
NewAdminSearchUnauthorizedResponseBody builds the HTTP response body from the result of the "admin search" endpoint of the "station" service.
type AssociatedStationResponseBody ¶
type AssociatedStationResponseBody struct { Station *StationFullResponseBody `form:"station" json:"station" xml:"station"` Project []*AssociatedViaProjectResponseBody `form:"project,omitempty" json:"project,omitempty" xml:"project,omitempty"` Location []*AssociatedViaLocationResponseBody `form:"location,omitempty" json:"location,omitempty" xml:"location,omitempty"` Manual []*AssociatedViaManualResponseBody `form:"manual,omitempty" json:"manual,omitempty" xml:"manual,omitempty"` Hidden bool `form:"hidden" json:"hidden" xml:"hidden"` }
AssociatedStationResponseBody is used to define fields on response body types.
type AssociatedStationResponseBodyCollection ¶
type AssociatedStationResponseBodyCollection []*AssociatedStationResponseBody
AssociatedStationResponseBodyCollection is used to define fields on response body types.
type AssociatedViaLocationResponseBody ¶
type AssociatedViaLocationResponseBody struct { StationID int32 `form:"stationID" json:"stationID" xml:"stationID"` Distance float32 `form:"distance" json:"distance" xml:"distance"` }
AssociatedViaLocationResponseBody is used to define fields on response body types.
type AssociatedViaManualResponseBody ¶
type AssociatedViaManualResponseBody struct { OtherStationID int32 `form:"otherStationID" json:"otherStationID" xml:"otherStationID"` Priority int32 `form:"priority" json:"priority" xml:"priority"` }
AssociatedViaManualResponseBody is used to define fields on response body types.
type AssociatedViaProjectResponseBody ¶
type AssociatedViaProjectResponseBody struct {
ID int32 `form:"id" json:"id" xml:"id"`
}
AssociatedViaProjectResponseBody is used to define fields on response body types.
type DefaultPhotoBadRequestResponseBody ¶
type DefaultPhotoBadRequestResponseBody 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"` }
DefaultPhotoBadRequestResponseBody is the type of the "station" service "default photo" endpoint HTTP response body for the "bad-request" error.
func NewDefaultPhotoBadRequestResponseBody ¶
func NewDefaultPhotoBadRequestResponseBody(res *goa.ServiceError) *DefaultPhotoBadRequestResponseBody
NewDefaultPhotoBadRequestResponseBody builds the HTTP response body from the result of the "default photo" endpoint of the "station" service.
type DefaultPhotoForbiddenResponseBody ¶
type DefaultPhotoForbiddenResponseBody 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"` }
DefaultPhotoForbiddenResponseBody is the type of the "station" service "default photo" endpoint HTTP response body for the "forbidden" error.
func NewDefaultPhotoForbiddenResponseBody ¶
func NewDefaultPhotoForbiddenResponseBody(res *goa.ServiceError) *DefaultPhotoForbiddenResponseBody
NewDefaultPhotoForbiddenResponseBody builds the HTTP response body from the result of the "default photo" endpoint of the "station" service.
type DefaultPhotoNotFoundResponseBody ¶
type DefaultPhotoNotFoundResponseBody 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"` }
DefaultPhotoNotFoundResponseBody is the type of the "station" service "default photo" endpoint HTTP response body for the "not-found" error.
func NewDefaultPhotoNotFoundResponseBody ¶
func NewDefaultPhotoNotFoundResponseBody(res *goa.ServiceError) *DefaultPhotoNotFoundResponseBody
NewDefaultPhotoNotFoundResponseBody builds the HTTP response body from the result of the "default photo" endpoint of the "station" service.
type DefaultPhotoUnauthorizedResponseBody ¶
type DefaultPhotoUnauthorizedResponseBody 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
DefaultPhotoUnauthorizedResponseBody is the type of the "station" service "default photo" endpoint HTTP response body for the "unauthorized" error.
func NewDefaultPhotoUnauthorizedResponseBody ¶
func NewDefaultPhotoUnauthorizedResponseBody(res *goa.ServiceError) *DefaultPhotoUnauthorizedResponseBody
NewDefaultPhotoUnauthorizedResponseBody builds the HTTP response body from the result of the "default photo" endpoint of the "station" service.
type DeleteBadRequestResponseBody ¶
type DeleteBadRequestResponseBody 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"` }
DeleteBadRequestResponseBody is the type of the "station" service "delete" endpoint HTTP response body for the "bad-request" error.
func NewDeleteBadRequestResponseBody ¶
func NewDeleteBadRequestResponseBody(res *goa.ServiceError) *DeleteBadRequestResponseBody
NewDeleteBadRequestResponseBody builds the HTTP response body from the result of the "delete" endpoint of the "station" service.
type DeleteForbiddenResponseBody ¶
type DeleteForbiddenResponseBody 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"` }
DeleteForbiddenResponseBody is the type of the "station" service "delete" endpoint HTTP response body for the "forbidden" error.
func NewDeleteForbiddenResponseBody ¶
func NewDeleteForbiddenResponseBody(res *goa.ServiceError) *DeleteForbiddenResponseBody
NewDeleteForbiddenResponseBody builds the HTTP response body from the result of the "delete" endpoint of the "station" service.
type DeleteNotFoundResponseBody ¶
type DeleteNotFoundResponseBody 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"` }
DeleteNotFoundResponseBody is the type of the "station" service "delete" endpoint HTTP response body for the "not-found" error.
func NewDeleteNotFoundResponseBody ¶
func NewDeleteNotFoundResponseBody(res *goa.ServiceError) *DeleteNotFoundResponseBody
NewDeleteNotFoundResponseBody builds the HTTP response body from the result of the "delete" endpoint of the "station" service.
type DeleteUnauthorizedResponseBody ¶
type DeleteUnauthorizedResponseBody 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
DeleteUnauthorizedResponseBody is the type of the "station" service "delete" endpoint HTTP response body for the "unauthorized" error.
func NewDeleteUnauthorizedResponseBody ¶
func NewDeleteUnauthorizedResponseBody(res *goa.ServiceError) *DeleteUnauthorizedResponseBody
NewDeleteUnauthorizedResponseBody builds the HTTP response body from the result of the "delete" endpoint of the "station" service.
type DownloadPhotoBadRequestResponseBody ¶
type DownloadPhotoBadRequestResponseBody 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"` }
DownloadPhotoBadRequestResponseBody is the type of the "station" service "download photo" endpoint HTTP response body for the "bad-request" error.
func NewDownloadPhotoBadRequestResponseBody ¶
func NewDownloadPhotoBadRequestResponseBody(res *goa.ServiceError) *DownloadPhotoBadRequestResponseBody
NewDownloadPhotoBadRequestResponseBody builds the HTTP response body from the result of the "download photo" endpoint of the "station" service.
type DownloadPhotoForbiddenResponseBody ¶
type DownloadPhotoForbiddenResponseBody 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"` }
DownloadPhotoForbiddenResponseBody is the type of the "station" service "download photo" endpoint HTTP response body for the "forbidden" error.
func NewDownloadPhotoForbiddenResponseBody ¶
func NewDownloadPhotoForbiddenResponseBody(res *goa.ServiceError) *DownloadPhotoForbiddenResponseBody
NewDownloadPhotoForbiddenResponseBody builds the HTTP response body from the result of the "download photo" endpoint of the "station" service.
type DownloadPhotoNotFoundResponseBody ¶
type DownloadPhotoNotFoundResponseBody 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"` }
DownloadPhotoNotFoundResponseBody is the type of the "station" service "download photo" endpoint HTTP response body for the "not-found" error.
func NewDownloadPhotoNotFoundResponseBody ¶
func NewDownloadPhotoNotFoundResponseBody(res *goa.ServiceError) *DownloadPhotoNotFoundResponseBody
NewDownloadPhotoNotFoundResponseBody builds the HTTP response body from the result of the "download photo" endpoint of the "station" service.
type DownloadPhotoResponseBody ¶
type DownloadPhotoResponseBody struct { Length int64 `form:"length" json:"length" xml:"length"` Body []byte `form:"body,omitempty" json:"body,omitempty" xml:"body,omitempty"` ContentType string `form:"contentType" json:"contentType" xml:"contentType"` Etag string `form:"etag" json:"etag" xml:"etag"` }
DownloadPhotoResponseBody is the type of the "station" service "download photo" endpoint HTTP response body.
func NewDownloadPhotoResponseBody ¶
func NewDownloadPhotoResponseBody(res *stationviews.DownloadedPhotoView) *DownloadPhotoResponseBody
NewDownloadPhotoResponseBody builds the HTTP response body from the result of the "download photo" endpoint of the "station" service.
type DownloadPhotoUnauthorizedResponseBody ¶
type DownloadPhotoUnauthorizedResponseBody 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
DownloadPhotoUnauthorizedResponseBody is the type of the "station" service "download photo" endpoint HTTP response body for the "unauthorized" error.
func NewDownloadPhotoUnauthorizedResponseBody ¶
func NewDownloadPhotoUnauthorizedResponseBody(res *goa.ServiceError) *DownloadPhotoUnauthorizedResponseBody
NewDownloadPhotoUnauthorizedResponseBody builds the HTTP response body from the result of the "download photo" endpoint of the "station" 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 EssentialStationResponseBody ¶
type EssentialStationResponseBody struct { ID int64 `form:"id" json:"id" xml:"id"` DeviceID string `form:"deviceId" json:"deviceId" xml:"deviceId"` Name string `form:"name" json:"name" xml:"name"` Owner *StationOwnerResponseBody `form:"owner" json:"owner" xml:"owner"` CreatedAt int64 `form:"createdAt" json:"createdAt" xml:"createdAt"` UpdatedAt int64 `form:"updatedAt" json:"updatedAt" xml:"updatedAt"` RecordingStartedAt *int64 `form:"recordingStartedAt,omitempty" json:"recordingStartedAt,omitempty" xml:"recordingStartedAt,omitempty"` MemoryUsed *int32 `form:"memoryUsed,omitempty" json:"memoryUsed,omitempty" xml:"memoryUsed,omitempty"` MemoryAvailable *int32 `form:"memoryAvailable,omitempty" json:"memoryAvailable,omitempty" xml:"memoryAvailable,omitempty"` FirmwareNumber *int32 `form:"firmwareNumber,omitempty" json:"firmwareNumber,omitempty" xml:"firmwareNumber,omitempty"` FirmwareTime *int64 `form:"firmwareTime,omitempty" json:"firmwareTime,omitempty" xml:"firmwareTime,omitempty"` Location *StationLocationResponseBody `form:"location,omitempty" json:"location,omitempty" xml:"location,omitempty"` LastIngestionAt *int64 `form:"lastIngestionAt,omitempty" json:"lastIngestionAt,omitempty" xml:"lastIngestionAt,omitempty"` }
EssentialStationResponseBody is used to define fields on response body types.
type GetBadRequestResponseBody ¶
type GetBadRequestResponseBody 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"` }
GetBadRequestResponseBody is the type of the "station" service "get" endpoint HTTP response body for the "bad-request" error.
func NewGetBadRequestResponseBody ¶
func NewGetBadRequestResponseBody(res *goa.ServiceError) *GetBadRequestResponseBody
NewGetBadRequestResponseBody builds the HTTP response body from the result of the "get" endpoint of the "station" service.
type GetForbiddenResponseBody ¶
type GetForbiddenResponseBody 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"` }
GetForbiddenResponseBody is the type of the "station" service "get" endpoint HTTP response body for the "forbidden" error.
func NewGetForbiddenResponseBody ¶
func NewGetForbiddenResponseBody(res *goa.ServiceError) *GetForbiddenResponseBody
NewGetForbiddenResponseBody builds the HTTP response body from the result of the "get" endpoint of the "station" service.
type GetNotFoundResponseBody ¶
type GetNotFoundResponseBody 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"` }
GetNotFoundResponseBody is the type of the "station" service "get" endpoint HTTP response body for the "not-found" error.
func NewGetNotFoundResponseBody ¶
func NewGetNotFoundResponseBody(res *goa.ServiceError) *GetNotFoundResponseBody
NewGetNotFoundResponseBody builds the HTTP response body from the result of the "get" endpoint of the "station" service.
type GetResponseBody ¶
type GetResponseBody struct { ID int32 `form:"id" json:"id" xml:"id"` Name string `form:"name" json:"name" xml:"name"` Model *StationFullModelResponseBody `form:"model" json:"model" xml:"model"` Owner *StationOwnerResponseBody `form:"owner" json:"owner" xml:"owner"` DeviceID string `form:"deviceId" json:"deviceId" xml:"deviceId"` Interestingness *StationInterestingnessResponseBody `form:"interestingness" json:"interestingness" xml:"interestingness"` Attributes *StationProjectAttributesResponseBody `form:"attributes" json:"attributes" xml:"attributes"` Uploads []*StationUploadResponseBody `form:"uploads" json:"uploads" xml:"uploads"` Photos *StationPhotosResponseBody `form:"photos" json:"photos" xml:"photos"` ReadOnly bool `form:"readOnly" json:"readOnly" xml:"readOnly"` Hidden *bool `form:"hidden,omitempty" json:"hidden,omitempty" xml:"hidden,omitempty"` Description *string `form:"description,omitempty" json:"description,omitempty" xml:"description,omitempty"` Status *string `form:"status,omitempty" json:"status,omitempty" xml:"status,omitempty"` Battery *float32 `form:"battery,omitempty" json:"battery,omitempty" xml:"battery,omitempty"` RecordingStartedAt *int64 `form:"recordingStartedAt,omitempty" json:"recordingStartedAt,omitempty" xml:"recordingStartedAt,omitempty"` MemoryUsed *int32 `form:"memoryUsed,omitempty" json:"memoryUsed,omitempty" xml:"memoryUsed,omitempty"` MemoryAvailable *int32 `form:"memoryAvailable,omitempty" json:"memoryAvailable,omitempty" xml:"memoryAvailable,omitempty"` FirmwareNumber *int32 `form:"firmwareNumber,omitempty" json:"firmwareNumber,omitempty" xml:"firmwareNumber,omitempty"` FirmwareTime *int64 `form:"firmwareTime,omitempty" json:"firmwareTime,omitempty" xml:"firmwareTime,omitempty"` Configurations *StationConfigurationsResponseBody `form:"configurations" json:"configurations" xml:"configurations"` UpdatedAt int64 `form:"updatedAt" json:"updatedAt" xml:"updatedAt"` LastReadingAt *int64 `form:"lastReadingAt,omitempty" json:"lastReadingAt,omitempty" xml:"lastReadingAt,omitempty"` Location *StationLocationResponseBody `form:"location,omitempty" json:"location,omitempty" xml:"location,omitempty"` LocationName *string `form:"locationName,omitempty" json:"locationName,omitempty" xml:"locationName,omitempty"` PlaceNameOther *string `form:"placeNameOther,omitempty" json:"placeNameOther,omitempty" xml:"placeNameOther,omitempty"` PlaceNameNative *string `form:"placeNameNative,omitempty" json:"placeNameNative,omitempty" xml:"placeNameNative,omitempty"` SyncedAt *int64 `form:"syncedAt,omitempty" json:"syncedAt,omitempty" xml:"syncedAt,omitempty"` IngestionAt *int64 `form:"ingestionAt,omitempty" json:"ingestionAt,omitempty" xml:"ingestionAt,omitempty"` Data *StationDataSummaryResponseBody `form:"data,omitempty" json:"data,omitempty" xml:"data,omitempty"` }
GetResponseBody is the type of the "station" service "get" endpoint HTTP response body.
func NewGetResponseBody ¶
func NewGetResponseBody(res *stationviews.StationFullView) *GetResponseBody
NewGetResponseBody builds the HTTP response body from the result of the "get" endpoint of the "station" service.
type GetUnauthorizedResponseBody ¶
type GetUnauthorizedResponseBody 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
GetUnauthorizedResponseBody is the type of the "station" service "get" endpoint HTTP response body for the "unauthorized" error.
func NewGetUnauthorizedResponseBody ¶
func NewGetUnauthorizedResponseBody(res *goa.ServiceError) *GetUnauthorizedResponseBody
NewGetUnauthorizedResponseBody builds the HTTP response body from the result of the "get" endpoint of the "station" service.
type ListAllBadRequestResponseBody ¶
type ListAllBadRequestResponseBody 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"` }
ListAllBadRequestResponseBody is the type of the "station" service "list all" endpoint HTTP response body for the "bad-request" error.
func NewListAllBadRequestResponseBody ¶
func NewListAllBadRequestResponseBody(res *goa.ServiceError) *ListAllBadRequestResponseBody
NewListAllBadRequestResponseBody builds the HTTP response body from the result of the "list all" endpoint of the "station" service.
type ListAllForbiddenResponseBody ¶
type ListAllForbiddenResponseBody 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"` }
ListAllForbiddenResponseBody is the type of the "station" service "list all" endpoint HTTP response body for the "forbidden" error.
func NewListAllForbiddenResponseBody ¶
func NewListAllForbiddenResponseBody(res *goa.ServiceError) *ListAllForbiddenResponseBody
NewListAllForbiddenResponseBody builds the HTTP response body from the result of the "list all" endpoint of the "station" service.
type ListAllNotFoundResponseBody ¶
type ListAllNotFoundResponseBody 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"` }
ListAllNotFoundResponseBody is the type of the "station" service "list all" endpoint HTTP response body for the "not-found" error.
func NewListAllNotFoundResponseBody ¶
func NewListAllNotFoundResponseBody(res *goa.ServiceError) *ListAllNotFoundResponseBody
NewListAllNotFoundResponseBody builds the HTTP response body from the result of the "list all" endpoint of the "station" service.
type ListAllResponseBody ¶
type ListAllResponseBody struct { Stations []*EssentialStationResponseBody `form:"stations" json:"stations" xml:"stations"` Total int32 `form:"total" json:"total" xml:"total"` }
ListAllResponseBody is the type of the "station" service "list all" endpoint HTTP response body.
func NewListAllResponseBody ¶
func NewListAllResponseBody(res *stationviews.PageOfStationsView) *ListAllResponseBody
NewListAllResponseBody builds the HTTP response body from the result of the "list all" endpoint of the "station" service.
type ListAllUnauthorizedResponseBody ¶
type ListAllUnauthorizedResponseBody 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
ListAllUnauthorizedResponseBody is the type of the "station" service "list all" endpoint HTTP response body for the "unauthorized" error.
func NewListAllUnauthorizedResponseBody ¶
func NewListAllUnauthorizedResponseBody(res *goa.ServiceError) *ListAllUnauthorizedResponseBody
NewListAllUnauthorizedResponseBody builds the HTTP response body from the result of the "list all" endpoint of the "station" service.
type ListAssociatedBadRequestResponseBody ¶
type ListAssociatedBadRequestResponseBody 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"` }
ListAssociatedBadRequestResponseBody is the type of the "station" service "list associated" endpoint HTTP response body for the "bad-request" error.
func NewListAssociatedBadRequestResponseBody ¶
func NewListAssociatedBadRequestResponseBody(res *goa.ServiceError) *ListAssociatedBadRequestResponseBody
NewListAssociatedBadRequestResponseBody builds the HTTP response body from the result of the "list associated" endpoint of the "station" service.
type ListAssociatedForbiddenResponseBody ¶
type ListAssociatedForbiddenResponseBody 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"` }
ListAssociatedForbiddenResponseBody is the type of the "station" service "list associated" endpoint HTTP response body for the "forbidden" error.
func NewListAssociatedForbiddenResponseBody ¶
func NewListAssociatedForbiddenResponseBody(res *goa.ServiceError) *ListAssociatedForbiddenResponseBody
NewListAssociatedForbiddenResponseBody builds the HTTP response body from the result of the "list associated" endpoint of the "station" service.
type ListAssociatedNotFoundResponseBody ¶
type ListAssociatedNotFoundResponseBody 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"` }
ListAssociatedNotFoundResponseBody is the type of the "station" service "list associated" endpoint HTTP response body for the "not-found" error.
func NewListAssociatedNotFoundResponseBody ¶
func NewListAssociatedNotFoundResponseBody(res *goa.ServiceError) *ListAssociatedNotFoundResponseBody
NewListAssociatedNotFoundResponseBody builds the HTTP response body from the result of the "list associated" endpoint of the "station" service.
type ListAssociatedResponseBody ¶
type ListAssociatedResponseBody struct {
Stations AssociatedStationResponseBodyCollection `form:"stations" json:"stations" xml:"stations"`
}
ListAssociatedResponseBody is the type of the "station" service "list associated" endpoint HTTP response body.
func NewListAssociatedResponseBody ¶
func NewListAssociatedResponseBody(res *stationviews.AssociatedStationsView) *ListAssociatedResponseBody
NewListAssociatedResponseBody builds the HTTP response body from the result of the "list associated" endpoint of the "station" service.
type ListAssociatedUnauthorizedResponseBody ¶
type ListAssociatedUnauthorizedResponseBody 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
ListAssociatedUnauthorizedResponseBody is the type of the "station" service "list associated" endpoint HTTP response body for the "unauthorized" error.
func NewListAssociatedUnauthorizedResponseBody ¶
func NewListAssociatedUnauthorizedResponseBody(res *goa.ServiceError) *ListAssociatedUnauthorizedResponseBody
NewListAssociatedUnauthorizedResponseBody builds the HTTP response body from the result of the "list associated" endpoint of the "station" service.
type ListMineBadRequestResponseBody ¶
type ListMineBadRequestResponseBody 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"` }
ListMineBadRequestResponseBody is the type of the "station" service "list mine" endpoint HTTP response body for the "bad-request" error.
func NewListMineBadRequestResponseBody ¶
func NewListMineBadRequestResponseBody(res *goa.ServiceError) *ListMineBadRequestResponseBody
NewListMineBadRequestResponseBody builds the HTTP response body from the result of the "list mine" endpoint of the "station" service.
type ListMineForbiddenResponseBody ¶
type ListMineForbiddenResponseBody 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"` }
ListMineForbiddenResponseBody is the type of the "station" service "list mine" endpoint HTTP response body for the "forbidden" error.
func NewListMineForbiddenResponseBody ¶
func NewListMineForbiddenResponseBody(res *goa.ServiceError) *ListMineForbiddenResponseBody
NewListMineForbiddenResponseBody builds the HTTP response body from the result of the "list mine" endpoint of the "station" service.
type ListMineNotFoundResponseBody ¶
type ListMineNotFoundResponseBody 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"` }
ListMineNotFoundResponseBody is the type of the "station" service "list mine" endpoint HTTP response body for the "not-found" error.
func NewListMineNotFoundResponseBody ¶
func NewListMineNotFoundResponseBody(res *goa.ServiceError) *ListMineNotFoundResponseBody
NewListMineNotFoundResponseBody builds the HTTP response body from the result of the "list mine" endpoint of the "station" service.
type ListMineResponseBody ¶
type ListMineResponseBody struct {
Stations StationFullResponseBodyCollection `form:"stations" json:"stations" xml:"stations"`
}
ListMineResponseBody is the type of the "station" service "list mine" endpoint HTTP response body.
func NewListMineResponseBody ¶
func NewListMineResponseBody(res *stationviews.StationsFullView) *ListMineResponseBody
NewListMineResponseBody builds the HTTP response body from the result of the "list mine" endpoint of the "station" service.
type ListMineUnauthorizedResponseBody ¶
type ListMineUnauthorizedResponseBody 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
ListMineUnauthorizedResponseBody is the type of the "station" service "list mine" endpoint HTTP response body for the "unauthorized" error.
func NewListMineUnauthorizedResponseBody ¶
func NewListMineUnauthorizedResponseBody(res *goa.ServiceError) *ListMineUnauthorizedResponseBody
NewListMineUnauthorizedResponseBody builds the HTTP response body from the result of the "list mine" endpoint of the "station" service.
type ListProjectAssociatedBadRequestResponseBody ¶
type ListProjectAssociatedBadRequestResponseBody 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"` }
ListProjectAssociatedBadRequestResponseBody is the type of the "station" service "list project associated" endpoint HTTP response body for the "bad-request" error.
func NewListProjectAssociatedBadRequestResponseBody ¶
func NewListProjectAssociatedBadRequestResponseBody(res *goa.ServiceError) *ListProjectAssociatedBadRequestResponseBody
NewListProjectAssociatedBadRequestResponseBody builds the HTTP response body from the result of the "list project associated" endpoint of the "station" service.
type ListProjectAssociatedForbiddenResponseBody ¶
type ListProjectAssociatedForbiddenResponseBody 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"` }
ListProjectAssociatedForbiddenResponseBody is the type of the "station" service "list project associated" endpoint HTTP response body for the "forbidden" error.
func NewListProjectAssociatedForbiddenResponseBody ¶
func NewListProjectAssociatedForbiddenResponseBody(res *goa.ServiceError) *ListProjectAssociatedForbiddenResponseBody
NewListProjectAssociatedForbiddenResponseBody builds the HTTP response body from the result of the "list project associated" endpoint of the "station" service.
type ListProjectAssociatedNotFoundResponseBody ¶
type ListProjectAssociatedNotFoundResponseBody 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"` }
ListProjectAssociatedNotFoundResponseBody is the type of the "station" service "list project associated" endpoint HTTP response body for the "not-found" error.
func NewListProjectAssociatedNotFoundResponseBody ¶
func NewListProjectAssociatedNotFoundResponseBody(res *goa.ServiceError) *ListProjectAssociatedNotFoundResponseBody
NewListProjectAssociatedNotFoundResponseBody builds the HTTP response body from the result of the "list project associated" endpoint of the "station" service.
type ListProjectAssociatedResponseBody ¶
type ListProjectAssociatedResponseBody struct {
Stations AssociatedStationResponseBodyCollection `form:"stations" json:"stations" xml:"stations"`
}
ListProjectAssociatedResponseBody is the type of the "station" service "list project associated" endpoint HTTP response body.
func NewListProjectAssociatedResponseBody ¶
func NewListProjectAssociatedResponseBody(res *stationviews.AssociatedStationsView) *ListProjectAssociatedResponseBody
NewListProjectAssociatedResponseBody builds the HTTP response body from the result of the "list project associated" endpoint of the "station" service.
type ListProjectAssociatedUnauthorizedResponseBody ¶
type ListProjectAssociatedUnauthorizedResponseBody 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
ListProjectAssociatedUnauthorizedResponseBody is the type of the "station" service "list project associated" endpoint HTTP response body for the "unauthorized" error.
func NewListProjectAssociatedUnauthorizedResponseBody ¶
func NewListProjectAssociatedUnauthorizedResponseBody(res *goa.ServiceError) *ListProjectAssociatedUnauthorizedResponseBody
NewListProjectAssociatedUnauthorizedResponseBody builds the HTTP response body from the result of the "list project associated" endpoint of the "station" service.
type ListProjectBadRequestResponseBody ¶
type ListProjectBadRequestResponseBody 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"` }
ListProjectBadRequestResponseBody is the type of the "station" service "list project" endpoint HTTP response body for the "bad-request" error.
func NewListProjectBadRequestResponseBody ¶
func NewListProjectBadRequestResponseBody(res *goa.ServiceError) *ListProjectBadRequestResponseBody
NewListProjectBadRequestResponseBody builds the HTTP response body from the result of the "list project" endpoint of the "station" service.
type ListProjectForbiddenResponseBody ¶
type ListProjectForbiddenResponseBody 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"` }
ListProjectForbiddenResponseBody is the type of the "station" service "list project" endpoint HTTP response body for the "forbidden" error.
func NewListProjectForbiddenResponseBody ¶
func NewListProjectForbiddenResponseBody(res *goa.ServiceError) *ListProjectForbiddenResponseBody
NewListProjectForbiddenResponseBody builds the HTTP response body from the result of the "list project" endpoint of the "station" service.
type ListProjectNotFoundResponseBody ¶
type ListProjectNotFoundResponseBody 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"` }
ListProjectNotFoundResponseBody is the type of the "station" service "list project" endpoint HTTP response body for the "not-found" error.
func NewListProjectNotFoundResponseBody ¶
func NewListProjectNotFoundResponseBody(res *goa.ServiceError) *ListProjectNotFoundResponseBody
NewListProjectNotFoundResponseBody builds the HTTP response body from the result of the "list project" endpoint of the "station" service.
type ListProjectResponseBody ¶
type ListProjectResponseBody struct {
Stations StationFullResponseBodyCollection `form:"stations" json:"stations" xml:"stations"`
}
ListProjectResponseBody is the type of the "station" service "list project" endpoint HTTP response body.
func NewListProjectResponseBody ¶
func NewListProjectResponseBody(res *stationviews.StationsFullView) *ListProjectResponseBody
NewListProjectResponseBody builds the HTTP response body from the result of the "list project" endpoint of the "station" service.
type ListProjectUnauthorizedResponseBody ¶
type ListProjectUnauthorizedResponseBody 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
ListProjectUnauthorizedResponseBody is the type of the "station" service "list project" endpoint HTTP response body for the "unauthorized" error.
func NewListProjectUnauthorizedResponseBody ¶
func NewListProjectUnauthorizedResponseBody(res *goa.ServiceError) *ListProjectUnauthorizedResponseBody
NewListProjectUnauthorizedResponseBody builds the HTTP response body from the result of the "list project" endpoint of the "station" service.
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 ProgressBadRequestResponseBody ¶
type ProgressBadRequestResponseBody 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"` }
ProgressBadRequestResponseBody is the type of the "station" service "progress" endpoint HTTP response body for the "bad-request" error.
func NewProgressBadRequestResponseBody ¶
func NewProgressBadRequestResponseBody(res *goa.ServiceError) *ProgressBadRequestResponseBody
NewProgressBadRequestResponseBody builds the HTTP response body from the result of the "progress" endpoint of the "station" service.
type ProgressForbiddenResponseBody ¶
type ProgressForbiddenResponseBody 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"` }
ProgressForbiddenResponseBody is the type of the "station" service "progress" endpoint HTTP response body for the "forbidden" error.
func NewProgressForbiddenResponseBody ¶
func NewProgressForbiddenResponseBody(res *goa.ServiceError) *ProgressForbiddenResponseBody
NewProgressForbiddenResponseBody builds the HTTP response body from the result of the "progress" endpoint of the "station" service.
type ProgressNotFoundResponseBody ¶
type ProgressNotFoundResponseBody 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"` }
ProgressNotFoundResponseBody is the type of the "station" service "progress" endpoint HTTP response body for the "not-found" error.
func NewProgressNotFoundResponseBody ¶
func NewProgressNotFoundResponseBody(res *goa.ServiceError) *ProgressNotFoundResponseBody
NewProgressNotFoundResponseBody builds the HTTP response body from the result of the "progress" endpoint of the "station" service.
type ProgressResponseBody ¶
type ProgressResponseBody struct {
Jobs []*StationJobResponseBody `form:"jobs" json:"jobs" xml:"jobs"`
}
ProgressResponseBody is the type of the "station" service "progress" endpoint HTTP response body.
func NewProgressResponseBody ¶
func NewProgressResponseBody(res *stationviews.StationProgressView) *ProgressResponseBody
NewProgressResponseBody builds the HTTP response body from the result of the "progress" endpoint of the "station" service.
type ProgressUnauthorizedResponseBody ¶
type ProgressUnauthorizedResponseBody 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
ProgressUnauthorizedResponseBody is the type of the "station" service "progress" endpoint HTTP response body for the "unauthorized" error.
func NewProgressUnauthorizedResponseBody ¶
func NewProgressUnauthorizedResponseBody(res *goa.ServiceError) *ProgressUnauthorizedResponseBody
NewProgressUnauthorizedResponseBody builds the HTTP response body from the result of the "progress" endpoint of the "station" service.
type SensorRangeResponseBody ¶
type SensorRangeResponseBody struct { Minimum float32 `form:"minimum" json:"minimum" xml:"minimum"` Maximum float32 `form:"maximum" json:"maximum" xml:"maximum"` }
SensorRangeResponseBody is used to define fields on response body types.
type SensorReadingResponseBody ¶
type SensorReadingResponseBody struct { Last float32 `form:"last" json:"last" xml:"last"` Time int64 `form:"time" json:"time" xml:"time"` }
SensorReadingResponseBody is used to define fields on response body types.
type Server ¶
type Server struct { Mounts []*MountPoint Add http.Handler Get http.Handler Transfer http.Handler DefaultPhoto http.Handler Update http.Handler ListMine http.Handler ListProject http.Handler ListAssociated http.Handler ListProjectAssociated http.Handler DownloadPhoto http.Handler ListAll http.Handler Delete http.Handler AdminSearch http.Handler Progress http.Handler UpdateModule http.Handler CORS http.Handler }
Server lists the station service endpoint HTTP handlers.
func New ¶
func New( e *station.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 station 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 StationConfigurationResponseBody ¶
type StationConfigurationResponseBody struct { ID int64 `form:"id" json:"id" xml:"id"` Time int64 `form:"time" json:"time" xml:"time"` ProvisionID int64 `form:"provisionId" json:"provisionId" xml:"provisionId"` MetaRecordID *int64 `form:"metaRecordId,omitempty" json:"metaRecordId,omitempty" xml:"metaRecordId,omitempty"` SourceID *int32 `form:"sourceId,omitempty" json:"sourceId,omitempty" xml:"sourceId,omitempty"` Modules []*StationModuleResponseBody `form:"modules" json:"modules" xml:"modules"` }
StationConfigurationResponseBody is used to define fields on response body types.
type StationConfigurationsResponseBody ¶
type StationConfigurationsResponseBody struct {
All []*StationConfigurationResponseBody `form:"all" json:"all" xml:"all"`
}
StationConfigurationsResponseBody is used to define fields on response body types.
type StationDataSummaryResponseBody ¶
type StationDataSummaryResponseBody struct { Start int64 `form:"start" json:"start" xml:"start"` End int64 `form:"end" json:"end" xml:"end"` NumberOfSamples int64 `form:"numberOfSamples" json:"numberOfSamples" xml:"numberOfSamples"` }
StationDataSummaryResponseBody is used to define fields on response body types.
type StationFullModelResponseBody ¶
type StationFullModelResponseBody struct { Name string `form:"name" json:"name" xml:"name"` OnlyVisibleViaAssociation bool `form:"only_visible_via_association" json:"only_visible_via_association" xml:"only_visible_via_association"` }
StationFullModelResponseBody is used to define fields on response body types.
type StationFullResponseBody ¶
type StationFullResponseBody struct { ID int32 `form:"id" json:"id" xml:"id"` Name string `form:"name" json:"name" xml:"name"` Model *StationFullModelResponseBody `form:"model" json:"model" xml:"model"` Owner *StationOwnerResponseBody `form:"owner" json:"owner" xml:"owner"` DeviceID string `form:"deviceId" json:"deviceId" xml:"deviceId"` Interestingness *StationInterestingnessResponseBody `form:"interestingness" json:"interestingness" xml:"interestingness"` Attributes *StationProjectAttributesResponseBody `form:"attributes" json:"attributes" xml:"attributes"` Uploads []*StationUploadResponseBody `form:"uploads" json:"uploads" xml:"uploads"` Photos *StationPhotosResponseBody `form:"photos" json:"photos" xml:"photos"` ReadOnly bool `form:"readOnly" json:"readOnly" xml:"readOnly"` Hidden *bool `form:"hidden,omitempty" json:"hidden,omitempty" xml:"hidden,omitempty"` Description *string `form:"description,omitempty" json:"description,omitempty" xml:"description,omitempty"` Status *string `form:"status,omitempty" json:"status,omitempty" xml:"status,omitempty"` Battery *float32 `form:"battery,omitempty" json:"battery,omitempty" xml:"battery,omitempty"` RecordingStartedAt *int64 `form:"recordingStartedAt,omitempty" json:"recordingStartedAt,omitempty" xml:"recordingStartedAt,omitempty"` MemoryUsed *int32 `form:"memoryUsed,omitempty" json:"memoryUsed,omitempty" xml:"memoryUsed,omitempty"` MemoryAvailable *int32 `form:"memoryAvailable,omitempty" json:"memoryAvailable,omitempty" xml:"memoryAvailable,omitempty"` FirmwareNumber *int32 `form:"firmwareNumber,omitempty" json:"firmwareNumber,omitempty" xml:"firmwareNumber,omitempty"` FirmwareTime *int64 `form:"firmwareTime,omitempty" json:"firmwareTime,omitempty" xml:"firmwareTime,omitempty"` Configurations *StationConfigurationsResponseBody `form:"configurations" json:"configurations" xml:"configurations"` UpdatedAt int64 `form:"updatedAt" json:"updatedAt" xml:"updatedAt"` LastReadingAt *int64 `form:"lastReadingAt,omitempty" json:"lastReadingAt,omitempty" xml:"lastReadingAt,omitempty"` Location *StationLocationResponseBody `form:"location,omitempty" json:"location,omitempty" xml:"location,omitempty"` LocationName *string `form:"locationName,omitempty" json:"locationName,omitempty" xml:"locationName,omitempty"` PlaceNameOther *string `form:"placeNameOther,omitempty" json:"placeNameOther,omitempty" xml:"placeNameOther,omitempty"` PlaceNameNative *string `form:"placeNameNative,omitempty" json:"placeNameNative,omitempty" xml:"placeNameNative,omitempty"` SyncedAt *int64 `form:"syncedAt,omitempty" json:"syncedAt,omitempty" xml:"syncedAt,omitempty"` IngestionAt *int64 `form:"ingestionAt,omitempty" json:"ingestionAt,omitempty" xml:"ingestionAt,omitempty"` Data *StationDataSummaryResponseBody `form:"data,omitempty" json:"data,omitempty" xml:"data,omitempty"` }
StationFullResponseBody is used to define fields on response body types.
type StationFullResponseBodyCollection ¶
type StationFullResponseBodyCollection []*StationFullResponseBody
StationFullResponseBodyCollection is used to define fields on response body types.
type StationInterestingnessResponseBody ¶
type StationInterestingnessResponseBody struct {
Windows []*StationInterestingnessWindowResponseBody `form:"windows" json:"windows" xml:"windows"`
}
StationInterestingnessResponseBody is used to define fields on response body types.
type StationInterestingnessWindowResponseBody ¶
type StationInterestingnessWindowResponseBody struct { Seconds int32 `form:"seconds" json:"seconds" xml:"seconds"` Interestingness float64 `form:"interestingness" json:"interestingness" xml:"interestingness"` Value float64 `form:"value" json:"value" xml:"value"` Time int64 `form:"time" json:"time" xml:"time"` }
StationInterestingnessWindowResponseBody is used to define fields on response body types.
type StationJobResponseBody ¶
type StationJobResponseBody struct { StartedAt int64 `form:"startedAt" json:"startedAt" xml:"startedAt"` CompletedAt *int64 `form:"completedAt,omitempty" json:"completedAt,omitempty" xml:"completedAt,omitempty"` Progress float32 `form:"progress" json:"progress" xml:"progress"` Title string `form:"title" json:"title" xml:"title"` }
StationJobResponseBody is used to define fields on response body types.
type StationLocationResponseBody ¶
type StationLocationResponseBody struct { Precise []float64 `form:"precise,omitempty" json:"precise,omitempty" xml:"precise,omitempty"` Regions []*StationRegionResponseBody `form:"regions,omitempty" json:"regions,omitempty" xml:"regions,omitempty"` URL *string `form:"url,omitempty" json:"url,omitempty" xml:"url,omitempty"` }
StationLocationResponseBody is used to define fields on response body types.
type StationModuleResponseBody ¶
type StationModuleResponseBody struct { ID int64 `form:"id" json:"id" xml:"id"` HardwareID *string `form:"hardwareId,omitempty" json:"hardwareId,omitempty" xml:"hardwareId,omitempty"` HardwareIDBase64 *string `form:"hardwareIdBase64,omitempty" json:"hardwareIdBase64,omitempty" xml:"hardwareIdBase64,omitempty"` MetaRecordID *int64 `form:"metaRecordId,omitempty" json:"metaRecordId,omitempty" xml:"metaRecordId,omitempty"` Name string `form:"name" json:"name" xml:"name"` Label *string `form:"label,omitempty" json:"label,omitempty" xml:"label,omitempty"` Position int32 `form:"position" json:"position" xml:"position"` Flags int32 `form:"flags" json:"flags" xml:"flags"` Internal bool `form:"internal" json:"internal" xml:"internal"` FullKey string `form:"fullKey" json:"fullKey" xml:"fullKey"` Sensors []*StationSensorResponseBody `form:"sensors" json:"sensors" xml:"sensors"` Meta map[string]interface{} `form:"meta,omitempty" json:"meta,omitempty" xml:"meta,omitempty"` }
StationModuleResponseBody is used to define fields on response body types.
type StationOwnerResponseBody ¶
type StationOwnerResponseBody struct { ID int32 `form:"id" json:"id" xml:"id"` Name string `form:"name" json:"name" xml:"name"` Email *string `form:"email,omitempty" json:"email,omitempty" xml:"email,omitempty"` Photo *UserPhotoResponseBody `form:"photo,omitempty" json:"photo,omitempty" xml:"photo,omitempty"` }
StationOwnerResponseBody is used to define fields on response body types.
type StationPhotosResponseBody ¶
type StationPhotosResponseBody struct {
Small string `form:"small" json:"small" xml:"small"`
}
StationPhotosResponseBody is used to define fields on response body types.
type StationProjectAttributeResponseBody ¶
type StationProjectAttributeResponseBody struct { ProjectID int32 `form:"projectId" json:"projectId" xml:"projectId"` AttributeID int64 `form:"attributeId" json:"attributeId" xml:"attributeId"` Name string `form:"name" json:"name" xml:"name"` StringValue string `form:"stringValue" json:"stringValue" xml:"stringValue"` Priority int32 `form:"priority" json:"priority" xml:"priority"` }
StationProjectAttributeResponseBody is used to define fields on response body types.
type StationProjectAttributesResponseBody ¶
type StationProjectAttributesResponseBody struct {
Attributes []*StationProjectAttributeResponseBody `form:"attributes" json:"attributes" xml:"attributes"`
}
StationProjectAttributesResponseBody is used to define fields on response body types.
type StationRegionResponseBody ¶
type StationRegionResponseBody struct { Name string `form:"name" json:"name" xml:"name"` Shape [][][]float64 `form:"shape" json:"shape" xml:"shape"` }
StationRegionResponseBody is used to define fields on response body types.
type StationSensorResponseBody ¶
type StationSensorResponseBody struct { Name string `form:"name" json:"name" xml:"name"` UnitOfMeasure string `form:"unitOfMeasure" json:"unitOfMeasure" xml:"unitOfMeasure"` Reading *SensorReadingResponseBody `form:"reading,omitempty" json:"reading,omitempty" xml:"reading,omitempty"` Key string `form:"key" json:"key" xml:"key"` FullKey string `form:"fullKey" json:"fullKey" xml:"fullKey"` Ranges []*SensorRangeResponseBody `form:"ranges" json:"ranges" xml:"ranges"` Meta map[string]interface{} `form:"meta,omitempty" json:"meta,omitempty" xml:"meta,omitempty"` }
StationSensorResponseBody is used to define fields on response body types.
type StationUploadResponseBody ¶
type StationUploadResponseBody struct { ID int64 `form:"id" json:"id" xml:"id"` Time int64 `form:"time" json:"time" xml:"time"` UploadID string `form:"uploadId" json:"uploadId" xml:"uploadId"` Size int64 `form:"size" json:"size" xml:"size"` URL string `form:"url" json:"url" xml:"url"` Type string `form:"type" json:"type" xml:"type"` Blocks []int64 `form:"blocks" json:"blocks" xml:"blocks"` }
StationUploadResponseBody is used to define fields on response body types.
type TransferBadRequestResponseBody ¶
type TransferBadRequestResponseBody 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"` }
TransferBadRequestResponseBody is the type of the "station" service "transfer" endpoint HTTP response body for the "bad-request" error.
func NewTransferBadRequestResponseBody ¶
func NewTransferBadRequestResponseBody(res *goa.ServiceError) *TransferBadRequestResponseBody
NewTransferBadRequestResponseBody builds the HTTP response body from the result of the "transfer" endpoint of the "station" service.
type TransferForbiddenResponseBody ¶
type TransferForbiddenResponseBody 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"` }
TransferForbiddenResponseBody is the type of the "station" service "transfer" endpoint HTTP response body for the "forbidden" error.
func NewTransferForbiddenResponseBody ¶
func NewTransferForbiddenResponseBody(res *goa.ServiceError) *TransferForbiddenResponseBody
NewTransferForbiddenResponseBody builds the HTTP response body from the result of the "transfer" endpoint of the "station" service.
type TransferNotFoundResponseBody ¶
type TransferNotFoundResponseBody 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"` }
TransferNotFoundResponseBody is the type of the "station" service "transfer" endpoint HTTP response body for the "not-found" error.
func NewTransferNotFoundResponseBody ¶
func NewTransferNotFoundResponseBody(res *goa.ServiceError) *TransferNotFoundResponseBody
NewTransferNotFoundResponseBody builds the HTTP response body from the result of the "transfer" endpoint of the "station" service.
type TransferUnauthorizedResponseBody ¶
type TransferUnauthorizedResponseBody 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
TransferUnauthorizedResponseBody is the type of the "station" service "transfer" endpoint HTTP response body for the "unauthorized" error.
func NewTransferUnauthorizedResponseBody ¶
func NewTransferUnauthorizedResponseBody(res *goa.ServiceError) *TransferUnauthorizedResponseBody
NewTransferUnauthorizedResponseBody builds the HTTP response body from the result of the "transfer" endpoint of the "station" service.
type UpdateBadRequestResponseBody ¶
type UpdateBadRequestResponseBody 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"` }
UpdateBadRequestResponseBody is the type of the "station" service "update" endpoint HTTP response body for the "bad-request" error.
func NewUpdateBadRequestResponseBody ¶
func NewUpdateBadRequestResponseBody(res *goa.ServiceError) *UpdateBadRequestResponseBody
NewUpdateBadRequestResponseBody builds the HTTP response body from the result of the "update" endpoint of the "station" service.
type UpdateForbiddenResponseBody ¶
type UpdateForbiddenResponseBody 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"` }
UpdateForbiddenResponseBody is the type of the "station" service "update" endpoint HTTP response body for the "forbidden" error.
func NewUpdateForbiddenResponseBody ¶
func NewUpdateForbiddenResponseBody(res *goa.ServiceError) *UpdateForbiddenResponseBody
NewUpdateForbiddenResponseBody builds the HTTP response body from the result of the "update" endpoint of the "station" service.
type UpdateModuleBadRequestResponseBody ¶
type UpdateModuleBadRequestResponseBody 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"` }
UpdateModuleBadRequestResponseBody is the type of the "station" service "update module" endpoint HTTP response body for the "bad-request" error.
func NewUpdateModuleBadRequestResponseBody ¶
func NewUpdateModuleBadRequestResponseBody(res *goa.ServiceError) *UpdateModuleBadRequestResponseBody
NewUpdateModuleBadRequestResponseBody builds the HTTP response body from the result of the "update module" endpoint of the "station" service.
type UpdateModuleForbiddenResponseBody ¶
type UpdateModuleForbiddenResponseBody 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"` }
UpdateModuleForbiddenResponseBody is the type of the "station" service "update module" endpoint HTTP response body for the "forbidden" error.
func NewUpdateModuleForbiddenResponseBody ¶
func NewUpdateModuleForbiddenResponseBody(res *goa.ServiceError) *UpdateModuleForbiddenResponseBody
NewUpdateModuleForbiddenResponseBody builds the HTTP response body from the result of the "update module" endpoint of the "station" service.
type UpdateModuleNotFoundResponseBody ¶
type UpdateModuleNotFoundResponseBody 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"` }
UpdateModuleNotFoundResponseBody is the type of the "station" service "update module" endpoint HTTP response body for the "not-found" error.
func NewUpdateModuleNotFoundResponseBody ¶
func NewUpdateModuleNotFoundResponseBody(res *goa.ServiceError) *UpdateModuleNotFoundResponseBody
NewUpdateModuleNotFoundResponseBody builds the HTTP response body from the result of the "update module" endpoint of the "station" service.
type UpdateModuleRequestBody ¶
type UpdateModuleRequestBody struct {
Label *string `form:"label,omitempty" json:"label,omitempty" xml:"label,omitempty"`
}
UpdateModuleRequestBody is the type of the "station" service "update module" endpoint HTTP request body.
type UpdateModuleResponseBody ¶
type UpdateModuleResponseBody struct { ID int32 `form:"id" json:"id" xml:"id"` Name string `form:"name" json:"name" xml:"name"` Model *StationFullModelResponseBody `form:"model" json:"model" xml:"model"` Owner *StationOwnerResponseBody `form:"owner" json:"owner" xml:"owner"` DeviceID string `form:"deviceId" json:"deviceId" xml:"deviceId"` Interestingness *StationInterestingnessResponseBody `form:"interestingness" json:"interestingness" xml:"interestingness"` Attributes *StationProjectAttributesResponseBody `form:"attributes" json:"attributes" xml:"attributes"` Uploads []*StationUploadResponseBody `form:"uploads" json:"uploads" xml:"uploads"` Photos *StationPhotosResponseBody `form:"photos" json:"photos" xml:"photos"` ReadOnly bool `form:"readOnly" json:"readOnly" xml:"readOnly"` Hidden *bool `form:"hidden,omitempty" json:"hidden,omitempty" xml:"hidden,omitempty"` Description *string `form:"description,omitempty" json:"description,omitempty" xml:"description,omitempty"` Status *string `form:"status,omitempty" json:"status,omitempty" xml:"status,omitempty"` Battery *float32 `form:"battery,omitempty" json:"battery,omitempty" xml:"battery,omitempty"` RecordingStartedAt *int64 `form:"recordingStartedAt,omitempty" json:"recordingStartedAt,omitempty" xml:"recordingStartedAt,omitempty"` MemoryUsed *int32 `form:"memoryUsed,omitempty" json:"memoryUsed,omitempty" xml:"memoryUsed,omitempty"` MemoryAvailable *int32 `form:"memoryAvailable,omitempty" json:"memoryAvailable,omitempty" xml:"memoryAvailable,omitempty"` FirmwareNumber *int32 `form:"firmwareNumber,omitempty" json:"firmwareNumber,omitempty" xml:"firmwareNumber,omitempty"` FirmwareTime *int64 `form:"firmwareTime,omitempty" json:"firmwareTime,omitempty" xml:"firmwareTime,omitempty"` Configurations *StationConfigurationsResponseBody `form:"configurations" json:"configurations" xml:"configurations"` UpdatedAt int64 `form:"updatedAt" json:"updatedAt" xml:"updatedAt"` LastReadingAt *int64 `form:"lastReadingAt,omitempty" json:"lastReadingAt,omitempty" xml:"lastReadingAt,omitempty"` Location *StationLocationResponseBody `form:"location,omitempty" json:"location,omitempty" xml:"location,omitempty"` LocationName *string `form:"locationName,omitempty" json:"locationName,omitempty" xml:"locationName,omitempty"` PlaceNameOther *string `form:"placeNameOther,omitempty" json:"placeNameOther,omitempty" xml:"placeNameOther,omitempty"` PlaceNameNative *string `form:"placeNameNative,omitempty" json:"placeNameNative,omitempty" xml:"placeNameNative,omitempty"` SyncedAt *int64 `form:"syncedAt,omitempty" json:"syncedAt,omitempty" xml:"syncedAt,omitempty"` IngestionAt *int64 `form:"ingestionAt,omitempty" json:"ingestionAt,omitempty" xml:"ingestionAt,omitempty"` Data *StationDataSummaryResponseBody `form:"data,omitempty" json:"data,omitempty" xml:"data,omitempty"` }
UpdateModuleResponseBody is the type of the "station" service "update module" endpoint HTTP response body.
func NewUpdateModuleResponseBody ¶
func NewUpdateModuleResponseBody(res *stationviews.StationFullView) *UpdateModuleResponseBody
NewUpdateModuleResponseBody builds the HTTP response body from the result of the "update module" endpoint of the "station" service.
type UpdateModuleUnauthorizedResponseBody ¶
type UpdateModuleUnauthorizedResponseBody 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
UpdateModuleUnauthorizedResponseBody is the type of the "station" service "update module" endpoint HTTP response body for the "unauthorized" error.
func NewUpdateModuleUnauthorizedResponseBody ¶
func NewUpdateModuleUnauthorizedResponseBody(res *goa.ServiceError) *UpdateModuleUnauthorizedResponseBody
NewUpdateModuleUnauthorizedResponseBody builds the HTTP response body from the result of the "update module" endpoint of the "station" service.
type UpdateNotFoundResponseBody ¶
type UpdateNotFoundResponseBody 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"` }
UpdateNotFoundResponseBody is the type of the "station" service "update" endpoint HTTP response body for the "not-found" error.
func NewUpdateNotFoundResponseBody ¶
func NewUpdateNotFoundResponseBody(res *goa.ServiceError) *UpdateNotFoundResponseBody
NewUpdateNotFoundResponseBody builds the HTTP response body from the result of the "update" endpoint of the "station" service.
type UpdateRequestBody ¶
type UpdateRequestBody struct { Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` LocationName *string `form:"locationName,omitempty" json:"locationName,omitempty" xml:"locationName,omitempty"` StatusPb *string `form:"statusPb,omitempty" json:"statusPb,omitempty" xml:"statusPb,omitempty"` Description *string `form:"description,omitempty" json:"description,omitempty" xml:"description,omitempty"` }
UpdateRequestBody is the type of the "station" service "update" endpoint HTTP request body.
type UpdateResponseBody ¶
type UpdateResponseBody struct { ID int32 `form:"id" json:"id" xml:"id"` Name string `form:"name" json:"name" xml:"name"` Model *StationFullModelResponseBody `form:"model" json:"model" xml:"model"` Owner *StationOwnerResponseBody `form:"owner" json:"owner" xml:"owner"` DeviceID string `form:"deviceId" json:"deviceId" xml:"deviceId"` Interestingness *StationInterestingnessResponseBody `form:"interestingness" json:"interestingness" xml:"interestingness"` Attributes *StationProjectAttributesResponseBody `form:"attributes" json:"attributes" xml:"attributes"` Uploads []*StationUploadResponseBody `form:"uploads" json:"uploads" xml:"uploads"` Photos *StationPhotosResponseBody `form:"photos" json:"photos" xml:"photos"` ReadOnly bool `form:"readOnly" json:"readOnly" xml:"readOnly"` Hidden *bool `form:"hidden,omitempty" json:"hidden,omitempty" xml:"hidden,omitempty"` Description *string `form:"description,omitempty" json:"description,omitempty" xml:"description,omitempty"` Status *string `form:"status,omitempty" json:"status,omitempty" xml:"status,omitempty"` Battery *float32 `form:"battery,omitempty" json:"battery,omitempty" xml:"battery,omitempty"` RecordingStartedAt *int64 `form:"recordingStartedAt,omitempty" json:"recordingStartedAt,omitempty" xml:"recordingStartedAt,omitempty"` MemoryUsed *int32 `form:"memoryUsed,omitempty" json:"memoryUsed,omitempty" xml:"memoryUsed,omitempty"` MemoryAvailable *int32 `form:"memoryAvailable,omitempty" json:"memoryAvailable,omitempty" xml:"memoryAvailable,omitempty"` FirmwareNumber *int32 `form:"firmwareNumber,omitempty" json:"firmwareNumber,omitempty" xml:"firmwareNumber,omitempty"` FirmwareTime *int64 `form:"firmwareTime,omitempty" json:"firmwareTime,omitempty" xml:"firmwareTime,omitempty"` Configurations *StationConfigurationsResponseBody `form:"configurations" json:"configurations" xml:"configurations"` UpdatedAt int64 `form:"updatedAt" json:"updatedAt" xml:"updatedAt"` LastReadingAt *int64 `form:"lastReadingAt,omitempty" json:"lastReadingAt,omitempty" xml:"lastReadingAt,omitempty"` Location *StationLocationResponseBody `form:"location,omitempty" json:"location,omitempty" xml:"location,omitempty"` LocationName *string `form:"locationName,omitempty" json:"locationName,omitempty" xml:"locationName,omitempty"` PlaceNameOther *string `form:"placeNameOther,omitempty" json:"placeNameOther,omitempty" xml:"placeNameOther,omitempty"` PlaceNameNative *string `form:"placeNameNative,omitempty" json:"placeNameNative,omitempty" xml:"placeNameNative,omitempty"` SyncedAt *int64 `form:"syncedAt,omitempty" json:"syncedAt,omitempty" xml:"syncedAt,omitempty"` IngestionAt *int64 `form:"ingestionAt,omitempty" json:"ingestionAt,omitempty" xml:"ingestionAt,omitempty"` Data *StationDataSummaryResponseBody `form:"data,omitempty" json:"data,omitempty" xml:"data,omitempty"` }
UpdateResponseBody is the type of the "station" service "update" endpoint HTTP response body.
func NewUpdateResponseBody ¶
func NewUpdateResponseBody(res *stationviews.StationFullView) *UpdateResponseBody
NewUpdateResponseBody builds the HTTP response body from the result of the "update" endpoint of the "station" service.
type UpdateUnauthorizedResponseBody ¶
type UpdateUnauthorizedResponseBody 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
UpdateUnauthorizedResponseBody is the type of the "station" service "update" endpoint HTTP response body for the "unauthorized" error.
func NewUpdateUnauthorizedResponseBody ¶
func NewUpdateUnauthorizedResponseBody(res *goa.ServiceError) *UpdateUnauthorizedResponseBody
NewUpdateUnauthorizedResponseBody builds the HTTP response body from the result of the "update" endpoint of the "station" service.
type UserPhotoResponseBody ¶
type UserPhotoResponseBody struct {
URL *string `form:"url,omitempty" json:"url,omitempty" xml:"url,omitempty"`
}
UserPhotoResponseBody is used to define fields on response body types.